on master help sign in
Fix non-msvc grammar compile on Windows (#3190)
b7fa9babootra
helix-loader/src/grammar.rs+1−1
@@ -319,7 +319,7 @@ fn build_tree_sitter_library(src_path: &Path, grammar: GrammarConfiguration) ->
319 command.env(key, value);
319 command.env(key, value);
320 }
320 }
321
321
322− if cfg!(windows) {
322+ if cfg!(all(windows, target_env = "msvc")) {
323 command
323 command
324 .args(&["/nologo", "/LD", "/I"])
324 .args(&["/nologo", "/LD", "/I"])
325 .arg(header_path)
325 .arg(header_path)