fix(loader): pass cc::Tool::args()
Certain targets, such as `aarch64-apple-*`, require additional compiler flags to cross-compile for the intended target.
This commit is contained in:
parent
4461090c3d
commit
f6f054ae5b
1 changed files with 1 additions and 0 deletions
|
@ -318,6 +318,7 @@ fn build_tree_sitter_library(src_path: &Path, grammar: GrammarConfiguration) ->
|
||||||
for (key, value) in compiler.env() {
|
for (key, value) in compiler.env() {
|
||||||
command.env(key, value);
|
command.env(key, value);
|
||||||
}
|
}
|
||||||
|
command.args(compiler.args());
|
||||||
|
|
||||||
if cfg!(all(windows, target_env = "msvc")) {
|
if cfg!(all(windows, target_env = "msvc")) {
|
||||||
command
|
command
|
||||||
|
|
Loading…
Add table
Reference in a new issue