Skip to content

Commit

Permalink
cp jq/src/lexer.c
Browse files Browse the repository at this point in the history
  • Loading branch information
ynqa committed Mar 20, 2024
1 parent 12b6080 commit dcfb843
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions j9-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ fn main() -> anyhow::Result<()> {
}
}

// It seems that modifying the timestamp of the lexer.c file by copying
// it to the target directory is necessary to circumvent an error that goes something like:
// cc1: fatal error: src/lexer.c: No such file or directory compilation terminated.
let lexer_src = src_dir.join("src/lexer.c");
let lexer_target = build_dir.join("src/lexer.c");
fs::copy(lexer_src, lexer_target)?;

// See https://github.com/jqlang/jq/tree/jq-1.7.1?#instructions
autotools::Config::new(&build_dir)
.reconf("-i")
Expand Down

0 comments on commit dcfb843

Please sign in to comment.