aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/llvm.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-29 18:30:37 +0900
committerOphestra <cat@gensokyo.uk>2026-01-29 18:30:37 +0900
commit6c90e879da14cf7542668da13ee6be22178e3b9b (patch)
tree797b64e34be46dd32a29825ab40c0fd04648b343 /internal/rosa/llvm.go
parentd1b404dc3a257a8063cb7d69b60c17c0c59c48a2 (diff)
internal/rosa/llvm: enable asan
This is required by test suite of latest toybox. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/llvm.go')
-rw-r--r--internal/rosa/llvm.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/rosa/llvm.go b/internal/rosa/llvm.go
index fd3430f6..90210c6d 100644
--- a/internal/rosa/llvm.go
+++ b/internal/rosa/llvm.go
@@ -187,6 +187,7 @@ cp -r /system/include /usr/include && rm -rf /system/include
t.Load(Diffutils),
t.Load(Bash),
t.Load(Coreutils),
+ t.Load(Findutils),
t.Load(KernelHeaders),
),
@@ -231,6 +232,7 @@ func (t Toolchain) newLLVM() (musl, compilerRT, runtimes, clang pkg.Artifact) {
{"COMPILER_RT_BUILD_BUILTINS", "ON"},
{"COMPILER_RT_DEFAULT_TARGET_ONLY", "ON"},
+ {"COMPILER_RT_SANITIZERS_TO_BUILD", "asan"},
{"LLVM_ENABLE_PER_TARGET_RUNTIME_DIR", "ON"},
// does not work without libunwind
@@ -238,7 +240,6 @@ func (t Toolchain) newLLVM() (musl, compilerRT, runtimes, clang pkg.Artifact) {
{"COMPILER_RT_BUILD_LIBFUZZER", "OFF"},
{"COMPILER_RT_BUILD_MEMPROF", "OFF"},
{"COMPILER_RT_BUILD_PROFILE", "OFF"},
- {"COMPILER_RT_BUILD_SANITIZERS", "OFF"},
{"COMPILER_RT_BUILD_XRAY", "OFF"},
},
append: []string{"compiler-rt"},