Skip to content

Commit

Permalink
Fix non-msvc grammar compile on Windows (helix-editor#3190)
Browse files Browse the repository at this point in the history
  • Loading branch information
bootradev authored and thomasskk committed Sep 9, 2022
1 parent a7e2065 commit 1157dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-loader/src/grammar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1157dae

Please sign in to comment.