aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-21 07:26:36 +0900
committerOphestra <cat@gensokyo.uk>2026-01-21 07:26:36 +0900
commit641942a4e3373559b69592918040320461684cc0 (patch)
tree62c087c2f2cca727ec13da092c1ba08ed08bfe98
parentb6a66acfe4c39d7f258a38f181a2233c3e103766 (diff)
internal/rosa/cmake: chmod entire source tree
This works around builds that traverse out of the appended pathname. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--internal/rosa/cmake.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/rosa/cmake.go b/internal/rosa/cmake.go
index 08fc02a3..b299e59f 100644
--- a/internal/rosa/cmake.go
+++ b/internal/rosa/cmake.go
@@ -92,7 +92,7 @@ func (t Toolchain) NewViaCMake(
scriptEarly := attr.ScriptEarly
if attr.Writable {
scriptEarly = `
-chmod -R +w "${ROSA_CMAKE_SOURCE}"
+chmod -R +w "${ROSA_SOURCE}"
` + scriptEarly
}
@@ -106,6 +106,7 @@ chmod -R +w "${ROSA_CMAKE_SOURCE}"
attr.Extra,
cmakeExtras,
), nil, slices.Concat([]string{
+ "ROSA_SOURCE=" + sourcePath.String(),
"ROSA_CMAKE_SOURCE=" + sourcePath.Append(attr.Append...).String(),
"ROSA_INSTALL_PREFIX=/work" + prefix.String(),
}, attr.Env), scriptEarly+`