internal/rosa/llvm: optionally writable source tree
All checks were successful
Test / Create distribution (push) Successful in 51s
Test / Sandbox (push) Successful in 2m39s
Test / Hakurei (push) Successful in 4m1s
Test / ShareFS (push) Successful in 4m0s
Test / Hpkg (push) Successful in 4m36s
Test / Sandbox (race detector) (push) Successful in 5m3s
Test / Hakurei (race detector) (push) Successful in 6m10s
Test / Flake checks (push) Successful in 1m42s

This is required by the unit and regression tests.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-01-21 07:36:39 +09:00
parent 641942a4e3
commit 9e63a7dbe3

View File

@@ -27,6 +27,9 @@ type llvmAttr struct {
script string
// Passed through to CMakeAttr.Prefix.
prefix *check.Absolute
// Passed through to CMakeAttr.Writable.
writable bool
}
const (
@@ -188,6 +191,8 @@ cp -r /system/include /usr/include && rm -rf /system/include
"ROSA_LLVM_RUNTIMES=" + strings.Join(runtimes, ";"),
}, attr.env),
ScriptEarly: scriptEarly, Script: script + attr.script,
Writable: attr.writable,
})
}