@geastack/core 0.1.46 → 0.1.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geastack/core",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
4
4
  "description": "GeaStack app API, reactivity headers, runtime sources, and type declarations.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -246,6 +246,15 @@ parts.push('#include <cstring>')
246
246
  if (bundle) parts.push('#include "platform/asset_bundle.h"')
247
247
  parts.push('')
248
248
 
249
+ // gea_app_entry.cpp declares gea_embedded_assets_prepare weak and calls it only
250
+ // when defined. A file-backed bundle defines it below; every other app needs
251
+ // this fallback, for the same reason as gea_embedded_asset_lookup's: Apple's ld
252
+ // rejects an undefined weak symbol that GCC/Xtensa would resolve to null.
253
+ if (!bundle || assets.length === 0) {
254
+ parts.push('extern "C" __attribute__((weak)) bool gea_embedded_assets_prepare() { return true; }')
255
+ parts.push('')
256
+ }
257
+
249
258
  if (assets.length === 0) {
250
259
  parts.push('// No embedded assets for this app.')
251
260
  // Still define gea_embedded_asset_lookup (always false): host/image.cpp declares