fix: revert macosArm64 target (blocked by negentropy-kmp), add K/N toolchain to session hook
macosArm64 target cannot be enabled until negentropy-kmp publishes a macosArm64 artifact — commented out with explanation. Reverted run_all.sh back to Linux-only for K/Native benchmark. Added Kotlin/Native toolchain dependencies (GCC sysroot, LLDB, LLVM, libffi) to session-start.sh so K/N compilation works in Claude Code remote environments where Gradle's own downloader fails through the proxy. https://claude.ai/code/session_01WSNE6QKiYM2ZutQD2UihCW
This commit is contained in:
@@ -82,26 +82,25 @@ fi
|
||||
echo ""
|
||||
|
||||
# ============================================================================
|
||||
# 2. Kotlin/Native benchmark (Linux and macOS)
|
||||
# 2. Kotlin/Native benchmark
|
||||
# ============================================================================
|
||||
echo "=== Running Kotlin/Native benchmark ==="
|
||||
case "$OS_NAME" in
|
||||
Linux)
|
||||
KN_TARGET="linuxX64Test"
|
||||
;;
|
||||
Darwin)
|
||||
KN_TARGET="macosArm64Test"
|
||||
;;
|
||||
esac
|
||||
# macosArm64 target is blocked until negentropy-kmp publishes a macosArm64
|
||||
# artifact. Once unblocked, add: Darwin) KN_TARGET="macosArm64Test" ;;
|
||||
if [ "$OS_NAME" = "Linux" ]; then
|
||||
echo "=== Running Kotlin/Native benchmark ==="
|
||||
KN_TARGET="linuxX64Test"
|
||||
|
||||
"$ROOT/gradlew" -p "$ROOT" ":quartz:$KN_TARGET" --tests "*.Secp256k1NativeBenchmark" \
|
||||
2>/dev/null || true
|
||||
"$ROOT/gradlew" -p "$ROOT" ":quartz:$KN_TARGET" --tests "*.Secp256k1NativeBenchmark" \
|
||||
2>/dev/null || true
|
||||
|
||||
KN_XML="$ROOT/quartz/build/test-results/$KN_TARGET/TEST-${KN_TARGET}.com.vitorpamplona.quartz.utils.secp256k1.Secp256k1NativeBenchmark.xml"
|
||||
if [ -f "$KN_XML" ]; then
|
||||
sed -n '/<!\[CDATA\[/,/\]\]>/p' "$KN_XML" | grep -v 'CDATA\|]]>'
|
||||
KN_XML="$ROOT/quartz/build/test-results/$KN_TARGET/TEST-${KN_TARGET}.com.vitorpamplona.quartz.utils.secp256k1.Secp256k1NativeBenchmark.xml"
|
||||
if [ -f "$KN_XML" ]; then
|
||||
sed -n '/<!\[CDATA\[/,/\]\]>/p' "$KN_XML" | grep -v 'CDATA\|]]>'
|
||||
else
|
||||
echo "K/Native benchmark XML not found."
|
||||
fi
|
||||
else
|
||||
echo "K/Native benchmark XML not found."
|
||||
echo "=== Skipping Kotlin/Native benchmark (only linuxX64 target available) ==="
|
||||
fi
|
||||
echo ""
|
||||
|
||||
|
||||
+3
-18
@@ -87,7 +87,7 @@ kotlin {
|
||||
|
||||
linuxX64()
|
||||
|
||||
macosArm64()
|
||||
// macosArm64() — blocked until negentropy-kmp publishes a macosArm64 artifact
|
||||
|
||||
// This makes sure that the resource file directory is visible for iOS tests.
|
||||
val rootDir = "${rootProject.rootDir.path}/quartz/src/commonTest/resources"
|
||||
@@ -299,23 +299,8 @@ kotlin {
|
||||
dependsOn(iosTest.get())
|
||||
}
|
||||
|
||||
val macosMain =
|
||||
create("macosMain") {
|
||||
dependsOn(appleMain)
|
||||
}
|
||||
|
||||
val macosTest =
|
||||
create("macosTest") {
|
||||
dependsOn(appleTest)
|
||||
}
|
||||
|
||||
val macosArm64Main by getting {
|
||||
dependsOn(macosMain)
|
||||
}
|
||||
|
||||
val macosArm64Test by getting {
|
||||
dependsOn(macosTest)
|
||||
}
|
||||
// macosMain/macosTest source sets exist but are not wired until
|
||||
// negentropy-kmp publishes a macosArm64 artifact.
|
||||
|
||||
val linuxMain =
|
||||
create("linuxMain") {
|
||||
|
||||
Reference in New Issue
Block a user