fix(loader): pass `cc::Tool::args()`
Certain targets, such as `aarch64-apple-*`, require additional compiler
flags to cross-compile for the intended target.
commitf6f054ae5b091a608233b1e3d105e1032a8d676b
authoryvt <i@yvt.jp>
dateThu 23 Jun 2022, 23:04 (4 years ago)
parent4461090
helix-loader/src/grammar.rs+1
@@ -318,6 +318,7 @@ fn build_tree_sitter_library(src_path: &Path, grammar: GrammarConfiguration) ->
318318 for (key, value) in compiler.env() {
319319 command.env(key, value);
320320 }
321+ command.args(compiler.args());
321322
322323 if cfg!(all(windows, target_env = "msvc")) {
323324 command