Unnamed repository; edit this file 'description' to name the repository.
fix(loader): pass `cc::Tool::args()`
Certain targets, such as `aarch64-apple-*`, require additional compiler flags to cross-compile for the intended target.
yvt 2022-08-02
parent 4461090 · commit f6f054a
-rw-r--r--helix-loader/src/grammar.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-loader/src/grammar.rs b/helix-loader/src/grammar.rs
index 3a8a4918..8ff1ebe8 100644
--- a/helix-loader/src/grammar.rs
+++ b/helix-loader/src/grammar.rs
@@ -318,6 +318,7 @@ fn build_tree_sitter_library(src_path: &Path, grammar: GrammarConfiguration) ->
for (key, value) in compiler.env() {
command.env(key, value);
}
+ command.args(compiler.args());
if cfg!(all(windows, target_env = "msvc")) {
command