From 3b182f7ce13ed29415ac3d663b9f69d39861d329 Mon Sep 17 00:00:00 2001 From: Waozi Date: Sat, 7 Nov 2026 11:59:13 -0300 Subject: [PATCH] Keep the apps test fakes on every call with the new Ziran Ziran now copies small public procedures into module headers, so the ld --wrap fake for PackageRevisionFor missed every call and the node reload and cached reload revision checks failed. The test builds with ZIRAN_NO_HEADER_INLINE from the bumped toolchain. --- tests/apps_zi_test.sh | 3 ++- ziran.lock | 4 ++-- ziran.toml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/apps_zi_test.sh b/tests/apps_zi_test.sh index c67c48b1c..963ae75d1 100755 --- a/tests/apps_zi_test.sh +++ b/tests/apps_zi_test.sh @@ -60,7 +60,8 @@ cp "$bundles/apps/habits.zx" "$bundles/apps/practices.zx" "$work/invalid-nested/ --module-path "$root/build/packages/kryon/src/backend" --module-path "$root/build/packages/game2d/src" \ --module-path "$root/build/packages/ziran/std" --module-path "$root/build/packages/daochi-client" \ -o "$work/generated" "$root/tests/apps_behavior.zi" "$root/tests/sync_test_host.zi" -"${CC:-cc}" -D_GNU_SOURCE -std=c11 -O0 -ffunction-sections -fdata-sections \ +# The --wrap fakes below must see every call, not header inline copies. +"${CC:-cc}" -D_GNU_SOURCE -DZIRAN_NO_HEADER_INLINE -std=c11 -O0 -ffunction-sections -fdata-sections \ -I"$root/build/packages/ziran/include" -iquote "$work/generated" -iquote "$work/generated/apps" \ -I"$root/build/packages/monocypher/src" -I"$root/build/packages/monocypher/src/optional" \ -I"$root/vendor-builds/sqlite" -I"$root/vendor-builds/linux/x86_64/inbe-liboqs/include" \ diff --git a/ziran.lock b/ziran.lock index b962802a0..a712bf612 100644 --- a/ziran.lock +++ b/ziran.lock @@ -328,8 +328,8 @@ "name": "Inbe" }, "toolchain": { - "commit": "38710d1fd95b9b0e5253df57820f1c5fafe37295", - "ref": "38710d1fd95b9b0e5253df57820f1c5fafe37295", + "commit": "0e91eb43bd665f02db86eb9b9cdd875b5436a066", + "ref": "0e91eb43bd665f02db86eb9b9cdd875b5436a066", "url": "https://github.com/ziranlang/ziran.git" } } diff --git a/ziran.toml b/ziran.toml index ed4e4e40e..ee446bf6f 100644 --- a/ziran.toml +++ b/ziran.toml @@ -5,7 +5,7 @@ module_roots = ["src", "src/apps", "src/app", "src/core", "src/habits", "src/pra [toolchain] git = "https://github.com/ziranlang/ziran.git" -ref = "38710d1fd95b9b0e5253df57820f1c5fafe37295" +ref = "0e91eb43bd665f02db86eb9b9cdd875b5436a066" [dependencies.kryon] git = "https://github.com/kryonlabs/kryon.git"