summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kjäll <alexander.kjall@gmail.com>2024-03-09 14:28:44 +0100
committerAlexander Kjäll <alexander.kjall@gmail.com>2024-03-09 14:28:44 +0100
commit6bd939f5915ed885312222598b2eb104a1461293 (patch)
treebe28342234c57ac66397ab2c9605ec80b8639215
parent02bf980e2283b64a51ba2e290bf58fda54bbd4a7 (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.rs4
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();
}