aboutsummaryrefslogtreecommitdiff
path: root/helix-loader/src
diff options
context:
space:
mode:
authoryvt2022-06-23 14:04:32 +0000
committerBlaž Hrastnik2022-08-02 03:04:09 +0000
commitf6f054ae5b091a608233b1e3d105e1032a8d676b (patch)
treed735b7b6fa9cd3294a259f420a281f854e3b4d25 /helix-loader/src
parent4461090c3dfb94e74d9d6327988c3b0f70219ae5 (diff)
fix(loader): pass `cc::Tool::args()`
Certain targets, such as `aarch64-apple-*`, require additional compiler flags to cross-compile for the intended target.
Diffstat (limited to 'helix-loader/src')
-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