aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/llvm.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-02-07 13:23:13 +0900
committerOphestra <cat@gensokyo.uk>2026-02-07 13:23:13 +0900
commit697c91e04d992f62b0439fd292f6d4721ec628eb (patch)
tree962eba9f1e546afbd2da3f95845b597273dbe8d4 /internal/rosa/llvm.go
parent3f7b8b43327805a674897ace49d738120232cc0b (diff)
internal/rosa/cmake: expose earlier build script
This allows for more flexible build setups. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/llvm.go')
-rw-r--r--internal/rosa/llvm.go16
1 files changed, 13 insertions, 3 deletions
diff --git a/internal/rosa/llvm.go b/internal/rosa/llvm.go
index 684672b6..a5e375f1 100644
--- a/internal/rosa/llvm.go
+++ b/internal/rosa/llvm.go
@@ -22,12 +22,18 @@ type llvmAttr struct {
cmake [][2]string
// Override CMakeAttr.Append.
append []string
- // Concatenated with default dependencies for CMakeAttr.Extra.
+ // Concatenated with default dependencies for Toolchain.NewViaCMake.
extra []pkg.Artifact
+ // Passed through to CMakeAttr.Paths.
+ paths []pkg.ExecPath
+ // Passed through to CMakeAttr.ScriptConfigured.
+ scriptConfigured string
// Concatenated with default fixup for CMakeAttr.Script.
script string
// Passed through to CMakeAttr.Prefix.
prefix *check.Absolute
+ // Passed through to CMakeAttr.Writable.
+ writable bool
// Patch name and body pairs.
patches [][2]string
@@ -186,9 +192,13 @@ cp -r /system/include /usr/include && rm -rf /system/include
"ROSA_LLVM_PROJECTS=" + strings.Join(projects, ";"),
"ROSA_LLVM_RUNTIMES=" + strings.Join(runtimes, ";"),
}, attr.env),
- ScriptEarly: scriptEarly, Script: script + attr.script,
+ ScriptEarly: scriptEarly,
+ ScriptConfigured: attr.scriptConfigured,
+ Script: script + attr.script,
+ Writable: attr.writable,
- Flag: TExclusive,
+ Paths: attr.paths,
+ Flag: TExclusive,
}, stage3Concat(t, attr.extra,
t.Load(Libffi),
t.Load(Python),