From f6f054ae5b091a608233b1e3d105e1032a8d676b Mon Sep 17 00:00:00 2001
From: yvt <i@yvt.jp>
Date: Thu, 23 Jun 2022 23:04:32 +0900
Subject: [PATCH] fix(loader): pass `cc::Tool::args()`

Certain targets, such as `aarch64-apple-*`, require additional compiler
flags to cross-compile for the intended target.
---
 helix-loader/src/grammar.rs | 1 +
 1 file changed, 1 insertion(+)

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