on master help sign in
Build each grammar in it's own src dir

Windows places temporary files in the current dir, so compiling in parallel caused conflicts.

commite6bf6a8f285f4d11eb7be0b745b70d37e1dd6dfa authorBlaž Hrastnik <blaz@mxxn.io> dateMon 12 Jul 2021, 17:48 (5 years ago) parenta7fa562
1 file changed+1−2
helix-syntax/build.rs+1−2
helix-syntax/build.rs+1−2
@@ -55,14 +55,13 @@ fn build_library(src_path: &Path, language: &str) -> Result<()> {
5555 if !recompile {
5656 return Ok(());
5757 }
58− let build_dir = std::env::var("OUT_DIR").unwrap();
5958 let mut config = cc::Build::new();
6059 config.cpp(true).opt_level(2).cargo_metadata(false);
6160 // .target(BUILD_TARGET)
6261 // .host(BUILD_TARGET);
6362 let compiler = config.get_compiler();
6463 let mut command = Command::new(compiler.path());
65− command.current_dir(build_dir);
64+ command.current_dir(src_path);
6665 for (key, value) in compiler.env() {
6766 command.env(key, value);
6867 }