Skip to content

Commit

Permalink
Fix non-msvc grammar compile on Windows (#3190)
Browse files Browse the repository at this point in the history
  • Loading branch information
bootradev authored Jul 26, 2022
1 parent 73a308c commit b7fa9ba
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 b7fa9ba

Please sign in to comment.