From b7fa9ba6014f3253ec4ed56dd35d6ee29af36638 Mon Sep 17 00:00:00 2001 From: bootra Date: Mon, 25 Jul 2022 20:33:53 -0400 Subject: Fix non-msvc grammar compile on Windows (#3190) --- helix-loader/src/grammar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-loader') diff --git a/helix-loader/src/grammar.rs b/helix-loader/src/grammar.rs index 7aa9bc83..3a8a4918 100644 --- a/helix-loader/src/grammar.rs +++ b/helix-loader/src/grammar.rs @@ -319,7 +319,7 @@ fn build_tree_sitter_library(src_path: &Path, grammar: GrammarConfiguration) -> command.env(key, value); } - if cfg!(windows) { + if cfg!(all(windows, target_env = "msvc")) { command .args(&["/nologo", "/LD", "/I"]) .arg(header_path) -- cgit v1.2.3-70-g09d2