Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

fix(abi): a component field changed without the digest that names it

esengine507f6225a587
diff --git a/src/esengine/aot/EngineDigest.generated.h b/src/esengine/aot/EngineDigest.generated.h
index a9fc1ab24..9293d59f8 100644
--- a/src/esengine/aot/EngineDigest.generated.h
+++ b/src/esengine/aot/EngineDigest.generated.h
@@ -6,7 +6,7 @@
/* One per address width, because the width is IN the digest: a host that
took the other one would refuse every module built for it. */
-#define ES_ENGINE_ABI_DIGEST_32 0x4752a18a08ad86b8ULL
-#define ES_ENGINE_ABI_DIGEST_64 0x8b1250b915a86114ULL
+#define ES_ENGINE_ABI_DIGEST_32 0xfddcefb604178b7fULL
+#define ES_ENGINE_ABI_DIGEST_64 0xcfe06bb8128f6f6bULL
#define ES_ENGINE_ABI_DIGEST \
(sizeof(es_addr_t) == 8 ? ES_ENGINE_ABI_DIGEST_64 : ES_ENGINE_ABI_DIGEST_32)
diff --git a/tests/aot/generated/move_system_decl.c b/tests/aot/generated/move_system_decl.c
index 79972b87d..04a97338b 100644
--- a/tests/aot/generated/move_system_decl.c
+++ b/tests/aot/generated/move_system_decl.c
@@ -10,7 +10,7 @@
answer, it is a read of a different field. The address width belongs
to the MACHINE, so it mixes in here rather than in the compiler and a
32-bit artifact cannot load into a 64-bit host. */
-#define ES_ABI_ENGINE_DIGEST 0x8b1250b915a86114ULL
+#define ES_ABI_ENGINE_DIGEST 0xcfe06bb8128f6f6bULL
ES_EXPORT const uint64_t es_abi_hash =
ES_ABI_ENGINE_DIGEST ^ (0x9e3779b97f4a7c15ULL * (uint64_t)sizeof(es_addr_t));
diff --git a/tests/aot/generated/move_system_hash.h b/tests/aot/generated/move_system_hash.h
index 5440789f3..f1be0a0e7 100644
--- a/tests/aot/generated/move_system_hash.h
+++ b/tests/aot/generated/move_system_hash.h
@@ -1,6 +1,6 @@
/* GENERATED by @estella/compiler — do not edit. */
/* The contract half of the handshake. The width half is the harness. */
-#define ES_EXPECTED_CONTRACT_HASH 0x8b1250b915a86114ULL
+#define ES_EXPECTED_CONTRACT_HASH 0xcfe06bb8128f6f6bULL
/* And which BUILD the artifact beside this one is, which the sidecar
written with it has to carry too. */
#define ES_EXPECTED_MODULE_CONTRACT 0x10bf77bb714ea1e3ULL
diff --git a/tools/gates.mjs b/tools/gates.mjs
index 23dc4690f..b34ba6986 100644
--- a/tools/gates.mjs
+++ b/tools/gates.mjs
@@ -121,7 +121,10 @@ export const GATES = [
// with any C compiler, and as wasm where emsdk is unpacked. Without either it
// still passes and PRINTS that the differential did not run — read the log.
{ id: 'compiler-tests', run: 'pnpm --filter @estella/compiler test', covers: ['compiler/tests'],
- owns: ['compiler'] },
+ // Components too: EngineDigest.generated.h is a digest over every one of their
+ // fields, written by a compiler test, and a field added without it leaves a
+ // packaged native game refusing its own AOT module.
+ owns: ['compiler', 'src/esengine/ecs/components'] },
// The plugins we ship prove the public API only if they are held to it.
{ id: 'plugin-boundary', run: 'node tools/check-plugin-boundary.mjs' },
// Same shape of rule, other direction: what builds a project may not need the