From 16e429200b2f2e98050330ed73048e78933902e1 Mon Sep 17 00:00:00 2001 From: Shafkath Shuhan Date: Wed, 14 Jul 2021 20:55:07 -0400 Subject: [PATCH] fix --- helix-syntax/build.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/helix-syntax/build.rs b/helix-syntax/build.rs index 2b12af616def7..e076e6ca5fd9f 100644 --- a/helix-syntax/build.rs +++ b/helix-syntax/build.rs @@ -64,12 +64,11 @@ fn build_library(src_path: &Path, language: &str) -> Result<()> { if !recompile { return Ok(()); } - let build_dir = std::env::var("OUT_DIR").unwrap(); let mut config = cc::Build::new(); config.cpp(true).opt_level(2).cargo_metadata(false); let compiler = config.get_compiler(); let mut command = Command::new(compiler.path()); - command.current_dir(Path::new(&build_dir).join(src_path)); + command.current_dir(src_path); for (key, value) in compiler.env() { command.env(key, value); } @@ -199,4 +198,4 @@ fn main() { build_dir("tree-sitter-typescript/tsx", "tsx"); build_dir("tree-sitter-typescript/typescript", "typescript"); -} +} \ No newline at end of file