From dcfb843d086249795b160d5e8415868f2cc9dbae Mon Sep 17 00:00:00 2001 From: ynqa Date: Wed, 20 Mar 2024 14:51:34 +0900 Subject: [PATCH] cp jq/src/lexer.c --- j9-sys/build.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/j9-sys/build.rs b/j9-sys/build.rs index 8341fde..bb6fedc 100644 --- a/j9-sys/build.rs +++ b/j9-sys/build.rs @@ -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")