From 9e63a7dbe3121662e5384b14fbbd5fd0d8d3d70b Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 21 Jan 2026 07:36:39 +0900 Subject: [PATCH] internal/rosa/llvm: optionally writable source tree This is required by the unit and regression tests. Signed-off-by: Ophestra --- internal/rosa/llvm.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/rosa/llvm.go b/internal/rosa/llvm.go index 15fcdc2..e508b88 100644 --- a/internal/rosa/llvm.go +++ b/internal/rosa/llvm.go @@ -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, }) }