diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-20 20:49:05 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-20 21:11:16 +0900 |
| commit | b61421e9930f114c25f0af17ffbb07d1ca4189ac (patch) | |
| tree | 32e55058425f9b6790b4b4bc1cd89e1bc57928c6 /internal/rosa/llvm.go | |
| parent | d42b67f47f4779f86133087ee9bb26219e536de9 (diff) | |
internal/rosa: remove triple from environment
This is cleaner and prepares for cross-compilation support.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/llvm.go')
| -rw-r--r-- | internal/rosa/llvm.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/rosa/llvm.go b/internal/rosa/llvm.go index 08625fcf..d9ca83e1 100644 --- a/internal/rosa/llvm.go +++ b/internal/rosa/llvm.go @@ -73,6 +73,7 @@ func init() { early = _earlyRuntimes } + target := t.triple() cache := []KV{ {"ENABLE_LINKER_BUILD_ID", "ON"}, {"COMPILER_RT_USE_BUILTINS_LIBRARY", "ON"}, @@ -109,8 +110,7 @@ func init() { {"LIBUNWIND_ENABLE_ASSERTIONS", "OFF"}, {"LIBUNWIND_USE_COMPILER_RT", "ON"}, - {"LLVM_HOST_TRIPLE", `"${ROSA_TRIPLE}"`}, - {"LLVM_DEFAULT_TARGET_TRIPLE", `"${ROSA_TRIPLE}"`}, + {"LLVM_HOST_TRIPLE", "'" + target + "'"}, {"LLVM_ENABLE_PROJECTS", "'" + strings.Join([]string{ "clang", "lld", |
