Fix non-msvc grammar compile on Windows (#3190)

pull/3168/head^2
bootra 2 years ago committed by GitHub
parent 73a308c665
commit b7fa9ba601
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save