Skip to content

Commit f68dc00

Browse files
authored
fix: llvm 21.1.4 build
1 parent de49d1f commit f68dc00

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

xmake.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ package("llvm")
9494

9595
"-DLLVM_ENABLE_PROJECTS=clang;clang-tools-extra",
9696

97-
-- Only build native target
98-
"-DLLVM_TARGETS_TO_BUILD=Native"
97+
-- Build all targets, this will affect the builtin type generation.
98+
-- Users might use a cross-compiler, and to ensure clang works in
99+
-- that scenario, we have to build all targets.
100+
"-DLLVM_TARGETS_TO_BUILD=all"
99101
}
100102

101103
local build_type = {

0 commit comments

Comments
 (0)