diff options
author | Alexander Kjäll <alexander.kjall@gmail.com> | 2024-03-09 14:28:44 +0100 |
---|---|---|
committer | Alexander Kjäll <alexander.kjall@gmail.com> | 2024-03-09 14:28:44 +0100 |
commit | 6bd939f5915ed885312222598b2eb104a1461293 (patch) | |
tree | be28342234c57ac66397ab2c9605ec80b8639215 | |
parent | 02bf980e2283b64a51ba2e290bf58fda54bbd4a7 (diff) |
in order for lalrpop to not try to process files that it doesn't have write premissions to, specify the src/ dir explicitly
-rw-r--r-- | ipc/build.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ipc/build.rs b/ipc/build.rs index b8977c53..464b23f4 100644 --- a/ipc/build.rs +++ b/ipc/build.rs @@ -4,7 +4,9 @@ use std::io::{self, Write}; use std::path::PathBuf; fn main() { - lalrpop::process_root().unwrap(); + lalrpop::Configuration::new() + .process_dir(format!("{}/src/", env!("CARGO_MANIFEST_DIR"))) + .unwrap(); include_test_data().unwrap(); } |