Skip to content

Commit

Permalink
Use dhall.abnf directly instead of via symlink
Browse files Browse the repository at this point in the history
Because windows doesn't support symlinks properly
  • Loading branch information
Nadrieril committed May 30, 2020
1 parent 358fa8a commit 6aca5b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dhall/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion dhall/src/syntax/text/dhall.abnf

This file was deleted.

0 comments on commit 6aca5b6

Please sign in to comment.