Fix lib.h falling back to TARGET_LINUX during wasm_module and c module compilation

This commit is contained in:
2026-07-26 13:31:13 +02:00
parent 822b59d70e
commit 9baf6605ed
18 changed files with 62 additions and 36 deletions
+3 -3
View File
@@ -17,7 +17,7 @@ static void naive_vote(void) {
} else if (YC == ZC) {
vote_res = YC;
} else {
HOST_PRINT("all replicas differ.\n");
PRINT("all replicas differ.\n");
fail_marker_detected();
}
}
@@ -50,11 +50,11 @@ extern "C" EXPORT("wasm_module") int wasm_module(void) {
fail_stop_trace();
if (vote_res == 5) {
HOST_PRINT("vote success.\n");
PRINT("vote success.\n");
fail_marker_positive();
return 0;
} else {
HOST_PRINT("undetected error.\n");
PRINT("undetected error.\n");
fail_marker_negative();
return 1;
}