summaryrefslogtreecommitdiff
path: root/dhall
diff options
context:
space:
mode:
authorNadrieril2020-05-30 14:01:42 +0100
committerNadrieril2020-05-30 14:17:03 +0100
commite4544626c5a701dfb596652265a93e410b8f3d2a (patch)
tree42e3cc24e6bbae34dfa5084f88da19d8745fb66a /dhall
parentf554164014a85b8d4d7248a8bdfa6dbcd2009988 (diff)
Use dhall.abnf directly instead of via symlink
Because windows doesn't support symlinks properly
Diffstat (limited to 'dhall')
-rw-r--r--dhall/build.rs4
l---------dhall/src/syntax/text/dhall.abnf1
2 files changed, 2 insertions, 3 deletions
diff --git a/dhall/build.rs b/dhall/build.rs
index 7ca4f21..71c634b 100644
--- a/dhall/build.rs
+++ b/dhall/build.rs
@@ -157,7 +157,7 @@ fn make_test_module(
}
fn generate_tests() -> std::io::Result<()> {
- // To force regeneration of the test list, `touch dhall-lang/standard/dhall.abnf`
+ // To force regeneration of the test list, `touch dhall/build.rs`
let out_dir = env::var("OUT_DIR").unwrap();
let parser_tests_path = Path::new(&out_dir).join("spec_tests.rs");
@@ -348,7 +348,7 @@ fn generate_tests() -> std::io::Result<()> {
fn convert_abnf_to_pest() -> std::io::Result<()> {
let out_dir = env::var("OUT_DIR").unwrap();
- let abnf_path = "src/syntax/text/dhall.abnf";
+ let abnf_path = "../dhall-lang/standard/dhall.abnf";
let visibility_path = "src/syntax/text/dhall.pest.visibility";
let grammar_path = Path::new(&out_dir).join("dhall.pest");
println!("cargo:rerun-if-changed={}", abnf_path);
diff --git a/dhall/src/syntax/text/dhall.abnf b/dhall/src/syntax/text/dhall.abnf
deleted file mode 120000
index 4a95034..0000000
--- a/dhall/src/syntax/text/dhall.abnf
+++ /dev/null
@@ -1 +0,0 @@
-../../../../dhall-lang/standard/dhall.abnf \ No newline at end of file