aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/cmake.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-19 22:51:34 +0900
committerOphestra <cat@gensokyo.uk>2026-01-19 22:51:34 +0900
commit3ec15bcdf1e33a93f052cb6ad692de58c05f09b7 (patch)
treefa69339c1a4c4836fb9c2524797025bc46ebb5c9 /internal/rosa/cmake.go
parentd933234784bf3bd511869d55fb145dc1d9601ce1 (diff)
internal/rosa/cmake: use hardcoded build directory
This eliminates some nondeterminism. Still getting 3-stage non-determinism in runtimes and clang, though. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/cmake.go')
-rw-r--r--internal/rosa/cmake.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/rosa/cmake.go b/internal/rosa/cmake.go
index b586fea4..08fc02a3 100644
--- a/internal/rosa/cmake.go
+++ b/internal/rosa/cmake.go
@@ -109,7 +109,7 @@ chmod -R +w "${ROSA_CMAKE_SOURCE}"
"ROSA_CMAKE_SOURCE=" + sourcePath.Append(attr.Append...).String(),
"ROSA_INSTALL_PREFIX=/work" + prefix.String(),
}, attr.Env), scriptEarly+`
-cd "$(mktemp -d)"
+mkdir /cure && cd /cure
cmake -G Ninja \
-DCMAKE_C_COMPILER_TARGET="${ROSA_TRIPLE}" \
-DCMAKE_CXX_COMPILER_TARGET="${ROSA_TRIPLE}" \