peachsim 0.1.2768 → 0.1.2770

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.
Files changed (132) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +2 -2
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +5 -5
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +3 -3
  13. package/dist-lib/bundle-channel.cjs +356 -77
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +3 -3
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +3 -3
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +2 -2
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +7 -7
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +5 -5
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/esm-chunks/{acorn-4DR5UGFN.mjs → acorn-A3J4BCR3.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-P4QFEMNW.mjs → chunk-25CEOCB7.mjs} +1 -1
  28. package/dist-lib/esm-chunks/{chunk-TNCPRFBQ.mjs → chunk-4IOWCCHS.mjs} +1 -1
  29. package/dist-lib/esm-chunks/{chunk-LMELFNFT.mjs → chunk-4LHY3IKU.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-76RJVPS6.mjs → chunk-5YKVWHMS.mjs} +4 -4
  31. package/dist-lib/esm-chunks/{chunk-SBIBHVCU.mjs → chunk-CFWWQTJ5.mjs} +26 -13
  32. package/dist-lib/esm-chunks/{chunk-OASENKSR.mjs → chunk-CQBPQSRE.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-LDBKSWMK.mjs → chunk-F3FQZ6SE.mjs} +1 -1
  34. package/dist-lib/esm-chunks/{chunk-NRFW2S2E.mjs → chunk-FBVGSJJE.mjs} +1 -1
  35. package/dist-lib/esm-chunks/{chunk-UP76RU63.mjs → chunk-FJZINSC2.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-LW6EFCKB.mjs → chunk-JGCIXB77.mjs} +1 -1
  37. package/dist-lib/esm-chunks/{chunk-FM4IQKZR.mjs → chunk-JN4WVMT4.mjs} +2 -2
  38. package/dist-lib/esm-chunks/{chunk-IA466TSB.mjs → chunk-KSVTJ3JI.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-IXCYOMAY.mjs → chunk-NJNU5MPO.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-QS3CSXQR.mjs → chunk-PT3YJZI2.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-K6H2SOFN.mjs → chunk-Q4BHHFX7.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-FY6GYFKM.mjs → chunk-RBNIOLS5.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-SZC5VUTW.mjs → chunk-RG5UROLK.mjs} +1 -1
  44. package/dist-lib/esm-chunks/{chunk-FSZC4K7L.mjs → chunk-RSRSOEDS.mjs} +5 -5
  45. package/dist-lib/esm-chunks/{chunk-CWLOVTXX.mjs → chunk-TTOBAW65.mjs} +3 -3
  46. package/dist-lib/esm-chunks/{chunk-PYVRYHRN.mjs → chunk-TXTIDFLT.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-NNHQMYXA.mjs → chunk-USSIX7QH.mjs} +377 -106
  48. package/dist-lib/esm-chunks/{chunk-EP3OX3CJ.mjs → chunk-W4ZOHLQE.mjs} +6 -6
  49. package/dist-lib/esm-chunks/{chunk-MC3T7WXI.mjs → chunk-Y4DWEUO2.mjs} +1 -1
  50. package/dist-lib/esm-chunks/{chunk-6FVNWSDJ.mjs → chunk-YGXQSWWR.mjs} +1 -1
  51. package/dist-lib/esm-chunks/{metro-layout-parser-4TX56S4G.mjs → metro-layout-parser-QXJ7SU7Z.mjs} +3 -3
  52. package/dist-lib/esm-chunks/{swift-package-prebuilt-7PIYWUST.mjs → swift-package-prebuilt-3YL3XSX3.mjs} +12 -12
  53. package/dist-lib/esm-chunks/{swift-sdk-app-module-7NOBYKIE.mjs → swift-sdk-app-module-QSLP6GQS.mjs} +22 -17
  54. package/dist-lib/esm-chunks/{swift-sdk-image-FTSV6Y6Y.mjs → swift-sdk-image-XJV6ZFNG.mjs} +16 -16
  55. package/dist-lib/esm-chunks/{swift-sdk-image-producer-TDBFULDN.mjs → swift-sdk-image-producer-NFE2G4PN.mjs} +5 -5
  56. package/dist-lib/expo-swift-bundle.cjs +356 -77
  57. package/dist-lib/expo-swift-metadata.cjs +1 -1
  58. package/dist-lib/expo-swift-metadata.mjs +7 -7
  59. package/dist-lib/home-paths.cjs +1 -1
  60. package/dist-lib/host/bridge-host.cjs +356 -77
  61. package/dist-lib/host/fetch-proxy-handler.cjs +24 -20
  62. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  63. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  64. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  65. package/dist-lib/host/websocket-proxy.cjs +1 -1
  66. package/dist-lib/index.cjs +1 -1
  67. package/dist-lib/kotlin-host.cjs +1 -1
  68. package/dist-lib/menu.cjs +1 -1
  69. package/dist-lib/menu.mjs +3 -3
  70. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  71. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  72. package/dist-lib/metro-production-bundle.cjs +1 -1
  73. package/dist-lib/metro-production-bundle.mjs +4 -4
  74. package/dist-lib/native-app-identity-project.cjs +1 -1
  75. package/dist-lib/native-app-identity-project.mjs +15 -15
  76. package/dist-lib/native-app-identity.cjs +1 -1
  77. package/dist-lib/native-app-identity.mjs +6 -6
  78. package/dist-lib/native-firebase-metadata.cjs +1 -1
  79. package/dist-lib/native-firebase-metadata.mjs +3 -3
  80. package/dist-lib/pdfium-raster.cjs +1 -1
  81. package/dist-lib/pdfium-raster.mjs +2 -2
  82. package/dist-lib/plist.cjs +1 -1
  83. package/dist-lib/plist.mjs +3 -3
  84. package/dist-lib/profiles.cjs +1 -1
  85. package/dist-lib/public-brand.cjs +1 -1
  86. package/dist-lib/public-origins-lib-esm.json +85 -85
  87. package/dist-lib/public-origins-lib.json +64 -64
  88. package/dist-lib/react-native-host-modules.cjs +1 -1
  89. package/dist-lib/react-native-host-modules.mjs +2 -2
  90. package/dist-lib/reap-browser.cjs +1 -1
  91. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  92. package/dist-lib/sdk.cjs +1 -1
  93. package/dist-lib/sdk.mjs +8 -8
  94. package/dist-lib/skills.cjs +356 -77
  95. package/dist-lib/swift-compile.cjs +336 -57
  96. package/dist-lib/swift-compile.mjs +12 -12
  97. package/dist-lib/swift-package.cjs +1 -1
  98. package/dist-lib/swift-package.mjs +3 -3
  99. package/dist-lib/swift-submit.cjs +1 -1
  100. package/dist-lib/swift-submit.mjs +6 -6
  101. package/dist-lib/swift-svg-raster.cjs +1 -1
  102. package/dist-lib/swift-svg-raster.mjs +2 -2
  103. package/dist-lib/swift-toolchain.cjs +1 -1
  104. package/dist-lib/swift.cjs +1 -1
  105. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  106. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  107. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  108. package/dist-lib/vendor/acorn.cjs +1 -1
  109. package/dist-lib/vendor/magic-string.cjs +1 -1
  110. package/dist-lib/vendor/stream-json.cjs +1 -1
  111. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  112. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  113. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase.cjs +1 -1
  116. package/dist-lib/vendor/terser.cjs +1 -1
  117. package/dist-lib/vendor/valibot.cjs +1 -1
  118. package/dist-lib/vendor/ws.cjs +1 -1
  119. package/dist-lib/vendor/zod.cjs +1 -1
  120. package/dist-lib/worklet-executable.cjs +1 -1
  121. package/dist-lib/worklet-executable.mjs +3 -3
  122. package/dist-types/packages/peach-engine/src/render-worker/aux-pointer-native.d.ts +4 -0
  123. package/dist-types/packages/peach-engine/src/render-worker/auxPointerContract.d.ts +4 -0
  124. package/package.json +1 -1
  125. package/src/case-insensitive-header-overlay.ts +9 -1
  126. package/src/native-static-libraries.ts +16 -16
  127. package/src/swift-compile.ts +158 -42
  128. package/src/swift-distribution-mirror.ts +280 -10
  129. package/src/swift-objc-prebuilt.ts +10 -1
  130. package/src/swift-objc-standin.ts +6 -1
  131. package/src/swift-sdk-app-module.ts +10 -3
  132. package/src/swift-sdk-surface.ts +5 -1
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2768 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2770 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -36021,7 +36021,7 @@ var init_swift_objc_sdk_tree = __esm({
36021
36021
 
36022
36022
  // src/swift-compiler-digest.ts
36023
36023
  function swiftArchiveCompilerDigestValue() {
36024
- return true ? "7033c5c50ea9c70f62e6bfc9f9dd743e535c08d86f7136060a0e872f238d0d33" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
36024
+ return true ? "6b03f57a8a907c059091275e079f41e5ba083b43a70989a634347e73ff6f548e" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
36025
36025
  }
36026
36026
  var import_node_crypto11, import_node_fs27, import_node_path25, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
36027
36027
  var init_swift_compiler_digest = __esm({
@@ -36167,13 +36167,13 @@ var init_swift_standin_digest = __esm({
36167
36167
  ];
36168
36168
  RUNTIME_IMPORT = /(?:^|[;\n])[ \t]*(?:import|export)\s+(?!type(?:\s|\{))([\s\S]*?)\s+from\s*['"]([^'"]+)['"]|(?:^|[;\n])[ \t]*import\s+['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
36169
36169
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS, STANDIN_DIGEST_EXCLUDED_FILES);
36170
- STANDIN_SOURCE_DIGEST = true ? "a17a387bf80ef3648c26193901ee6a7cb9abc691b99809c6a8bf9ad4617836af" : standinSourceDigest();
36170
+ STANDIN_SOURCE_DIGEST = true ? "46bd6373b813f44d3e812af83162f521ce032cba6bade9039bbb107120481dc5" : standinSourceDigest();
36171
36171
  }
36172
36172
  });
36173
36173
 
36174
36174
  // src/expo-native-compiler-digest.ts
36175
36175
  function expoNativeCompilerDigestValue() {
36176
- return true ? "867bb716444e6da99acd8ca9dd4860c523197b0261ea2c03eb0d3bf8c5f9d793" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
36176
+ return true ? "20b00f2698ace1deda2b18448f2606eb47a5eaae0195083595ede81758eafc7c" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
36177
36177
  }
36178
36178
  var import_node_crypto13;
36179
36179
  var init_expo_native_compiler_digest = __esm({
@@ -46362,7 +46362,12 @@ function contents(node) {
46362
46362
  }))
46363
46363
  ];
46364
46364
  }
46365
- function caseInsensitiveHeaderOverlay(directory2, roots, listed) {
46365
+ function clearCaseInsensitiveHeaderOverlayCache(rootPrefix) {
46366
+ const prefix = `${rootPrefix}${import_node_path37.default.sep}`;
46367
+ for (const key2 of scans.keys())
46368
+ if (key2 === rootPrefix || key2.startsWith(prefix)) scans.delete(key2);
46369
+ }
46370
+ function caseInsensitiveHeaderOverlay(directory2, roots, listed, fixedName) {
46366
46371
  let known = scans;
46367
46372
  if (listed) {
46368
46373
  known = listedScans.get(listed) ?? /* @__PURE__ */ new Map();
@@ -46383,7 +46388,7 @@ function caseInsensitiveHeaderOverlay(directory2, roots, listed) {
46383
46388
  const text7 = JSON.stringify({ "case-sensitive": "false", roots: roots_, version: 0 });
46384
46389
  const file = import_node_path37.default.join(
46385
46390
  directory2,
46386
- `case-insensitive-${(0, import_node_crypto22.createHash)("sha256").update(text7).digest("hex").slice(0, 16)}.yaml`
46391
+ fixedName ?? `case-insensitive-${(0, import_node_crypto22.createHash)("sha256").update(text7).digest("hex").slice(0, 16)}.yaml`
46387
46392
  );
46388
46393
  writeBuildFile(file, text7);
46389
46394
  return file;
@@ -48969,15 +48974,17 @@ function materializeObjcSdk(cacheDir6) {
48969
48974
  }
48970
48975
  return sdk2;
48971
48976
  }
48972
- function objcSdkIntakeFlags(headers, toolchainBin, minimum) {
48977
+ function objcSdkIntakeFlags(headers, toolchainBin, minimum, overlayDirectory) {
48973
48978
  const caseOverlay = caseInsensitiveHeaderOverlay(
48974
- import_node_path40.default.join(swiftCacheDir(), "swift-header-case"),
48979
+ overlayDirectory ?? import_node_path40.default.join(swiftCacheDir(), "swift-header-case"),
48975
48980
  [
48976
48981
  import_node_path40.default.join(headers, "System/Library/Frameworks"),
48977
48982
  import_node_path40.default.join(headers, "wasm/include"),
48978
48983
  import_node_path40.default.join(headers, "wasm/intrinsics"),
48979
48984
  import_node_path40.default.join(headers, "usr/include")
48980
- ]
48985
+ ],
48986
+ void 0,
48987
+ overlayDirectory ? SWIFT_SDK_HEADER_CASE_OVERLAY : void 0
48981
48988
  );
48982
48989
  return [
48983
48990
  ...swiftObjCPlatformFlags(toolchainBin, minimum),
@@ -50054,7 +50061,7 @@ function constantValue(node) {
50054
50061
  }
50055
50062
  return null;
50056
50063
  }
50057
- var import_node_child_process17, import_node_crypto23, import_node_fs41, import_node_path40, REFINED_CONSTANT_TYPES, NATIVE_GRAPH_SDK_VERSION, WASI_EMULATION, WASI_EMULATION_FLAGS, NATIVE_GRAPH_INPUTS, NATIVE_GRAPH_ID, resolvedPinnedSdk, ROUNDS, sdkId, headerFiles2, MISSING_IMPORT, FRAMEWORK_HEADER, FRAMEWORK_MODULEMAP, sdkDeclarations;
50064
+ var import_node_child_process17, import_node_crypto23, import_node_fs41, import_node_path40, REFINED_CONSTANT_TYPES, NATIVE_GRAPH_SDK_VERSION, WASI_EMULATION, WASI_EMULATION_FLAGS, NATIVE_GRAPH_INPUTS, NATIVE_GRAPH_ID, resolvedPinnedSdk, ROUNDS, sdkId, SWIFT_SDK_HEADER_CASE_OVERLAY, headerFiles2, MISSING_IMPORT, FRAMEWORK_HEADER, FRAMEWORK_MODULEMAP, sdkDeclarations;
50058
50065
  var init_swift_objc_standin = __esm({
50059
50066
  "src/swift-objc-standin.ts"() {
50060
50067
  "use strict";
@@ -50095,6 +50102,7 @@ var init_swift_objc_standin = __esm({
50095
50102
  };
50096
50103
  NATIVE_GRAPH_ID = (0, import_node_crypto23.createHash)("sha256").update(JSON.stringify(NATIVE_GRAPH_INPUTS)).digest("hex");
50097
50104
  ROUNDS = 12;
50105
+ SWIFT_SDK_HEADER_CASE_OVERLAY = "sdk-header-case.yaml";
50098
50106
  headerFiles2 = (dir) => import_node_fs41.default.readdirSync(dir, { recursive: true, encoding: "utf8" }).filter((file) => file.endsWith(".h") || file.endsWith(".hh")).sort();
50099
50107
  MISSING_IMPORT = "#import <PeachMissing/PeachMissing.h>\n";
50100
50108
  FRAMEWORK_HEADER = /^System\/Library\/Frameworks\/([^/]+)\.framework\/Headers\/(.+)$/;
@@ -58175,9 +58183,179 @@ function syncSwiftDistributionMirror(root, source, manifest) {
58175
58183
  const partial = `${record6}.${(0, import_node_crypto30.randomUUID)()}`;
58176
58184
  (0, import_node_fs57.writeFileSync)(partial, JSON.stringify(manifest.files));
58177
58185
  (0, import_node_fs57.renameSync)(partial, record6);
58186
+ if ([...changed2, ...removed].some(
58187
+ (file) => !file.startsWith("lib/") && !file.startsWith("modules/")
58188
+ )) {
58189
+ clearCaseInsensitiveHeaderOverlayCache(mirror);
58190
+ clearCaseInsensitiveHeaderOverlayCache(import_node_path55.default.join(root, SWIFT_SDK_MIRROR));
58191
+ }
58178
58192
  }
58179
58193
  return mirror;
58180
58194
  }
58195
+ function syncSwiftSdkMirror(root, frameworkRoot, toolchainBin, sourceSdkId) {
58196
+ const viewOptions = swiftSharedSdkViewOptions(
58197
+ frameworkRoot,
58198
+ true,
58199
+ toolchainBin,
58200
+ sourceSdkId
58201
+ );
58202
+ const sourceView = viewOptions[1];
58203
+ return syncSwiftSdkMirrorFromView(root, frameworkRoot, sourceView, sourceSdkId);
58204
+ }
58205
+ function syncSwiftSdkMirrorFromView(root, frameworkRoot, sourceView, sourceSdkId) {
58206
+ const mirror = import_node_path55.default.join(root, SWIFT_SDK_MIRROR);
58207
+ const bundle = import_node_path55.default.join(mirror, SWIFT_SDK_MIRROR_BUNDLE);
58208
+ const destTriple = import_node_path55.default.join(bundle, "sdk", SWIFT_WASM_TRIPLE);
58209
+ const bundleInfo = import_node_path55.default.join(bundle, "info.json");
58210
+ const recordFile = import_node_path55.default.join(mirror, SWIFT_SDK_MIRROR_RECORD);
58211
+ const syncingMarker = import_node_path55.default.join(mirror, SWIFT_SDK_MIRROR_SYNCING);
58212
+ const options2 = ["--swift-sdks-path", mirror];
58213
+ const interrupted = (0, import_node_fs57.existsSync)(syncingMarker);
58214
+ const previous = interrupted ? null : readSdkRecord(recordFile);
58215
+ if (previous && previous.sourceView === sourceView && previous.sourceSdkId === sourceSdkId && (0, import_node_fs57.existsSync)(bundleInfo) && (0, import_node_fs57.existsSync)(import_node_path55.default.join(destTriple, "swift-sdk.json"))) {
58216
+ return { id: SWIFT_SDK_MIRROR_ID, options: options2, toolsetChanged: false };
58217
+ }
58218
+ const sourceTriple = resolveSdkViewTripleDir(sourceView, sourceSdkId);
58219
+ if (!previous) {
58220
+ if (!interrupted) (0, import_node_fs57.rmSync)(mirror, { recursive: true, force: true });
58221
+ (0, import_node_fs57.rmSync)(import_node_path55.default.join(root, ".build"), { recursive: true, force: true });
58222
+ }
58223
+ (0, import_node_fs57.mkdirSync)(mirror, { recursive: true });
58224
+ (0, import_node_fs57.writeFileSync)(syncingMarker, "1\n");
58225
+ const changed2 = [];
58226
+ const removed = [];
58227
+ const distributionPrefix = `${frameworkRoot}${import_node_path55.default.sep}`;
58228
+ syncSdkTree(sourceTriple, destTriple, "", distributionPrefix, changed2, removed);
58229
+ const infoText = JSON.stringify(
58230
+ {
58231
+ artifacts: {
58232
+ [SWIFT_SDK_MIRROR_ID]: {
58233
+ type: "swiftSDK",
58234
+ variants: [{ path: `sdk/${SWIFT_WASM_TRIPLE}/swift-sdk.json` }],
58235
+ version: "0.0.1"
58236
+ }
58237
+ },
58238
+ schemaVersion: "1.0"
58239
+ },
58240
+ null,
58241
+ 2
58242
+ ) + "\n";
58243
+ if (!(0, import_node_fs57.existsSync)(bundleInfo) || (0, import_node_fs57.readFileSync)(bundleInfo, "utf8") !== infoText) {
58244
+ (0, import_node_fs57.mkdirSync)(bundle, { recursive: true });
58245
+ const partial = `${bundleInfo}.${(0, import_node_crypto30.randomUUID)()}`;
58246
+ (0, import_node_fs57.writeFileSync)(partial, infoText);
58247
+ (0, import_node_fs57.renameSync)(partial, bundleInfo);
58248
+ }
58249
+ const touched = [...changed2, ...removed];
58250
+ const toolsetChanged = !previous || touched.some(
58251
+ (file) => file === "toolset.json" || file === "swift-sdk.json" || file.startsWith("swift.xctoolchain/usr/bin/")
58252
+ );
58253
+ if (previous) {
58254
+ if (toolsetChanged) {
58255
+ (0, import_node_fs57.rmSync)(import_node_path55.default.join(root, ".build"), { recursive: true, force: true });
58256
+ } else {
58257
+ const compileTouched = touched.filter(
58258
+ (file) => !file.endsWith(".a") && !file.endsWith(".o") && !file.startsWith("rust/") && file !== "runtime-products.json"
58259
+ );
58260
+ const headersChanged = compileTouched.some(
58261
+ (file) => !file.endsWith(".swiftmodule") && !file.endsWith(".swiftdoc") && !file.endsWith(".swiftsourceinfo") && !file.endsWith(".abi.json")
58262
+ );
58263
+ if (compileTouched.length > 0) {
58264
+ invalidateBuildDependents(
58265
+ root,
58266
+ [[Buffer.from(`${escapeDepPath(destTriple)}/`), ""]],
58267
+ new Set(compileTouched),
58268
+ headersChanged
58269
+ );
58270
+ }
58271
+ if (headersChanged) clearCaseInsensitiveHeaderOverlayCache(mirror);
58272
+ }
58273
+ } else {
58274
+ clearCaseInsensitiveHeaderOverlayCache(mirror);
58275
+ }
58276
+ const partialRecord = `${recordFile}.${(0, import_node_crypto30.randomUUID)()}`;
58277
+ (0, import_node_fs57.writeFileSync)(partialRecord, JSON.stringify({ version: 1, sourceView, sourceSdkId }));
58278
+ (0, import_node_fs57.renameSync)(partialRecord, recordFile);
58279
+ (0, import_node_fs57.rmSync)(syncingMarker, { force: true });
58280
+ return { id: SWIFT_SDK_MIRROR_ID, options: options2, toolsetChanged };
58281
+ }
58282
+ function readSdkRecord(file) {
58283
+ if (!(0, import_node_fs57.existsSync)(file)) return null;
58284
+ const value = JSON.parse((0, import_node_fs57.readFileSync)(file, "utf8"));
58285
+ if (!isRecord(value) || value.version !== 1 || typeof value.sourceView !== "string" || typeof value.sourceSdkId !== "string")
58286
+ return null;
58287
+ return {
58288
+ version: value.version,
58289
+ sourceView: value.sourceView,
58290
+ sourceSdkId: value.sourceSdkId
58291
+ };
58292
+ }
58293
+ function resolveSdkViewTripleDir(sourceView, sourceSdkId) {
58294
+ for (const entry of (0, import_node_fs57.readdirSync)(sourceView, { withFileTypes: true })) {
58295
+ if (!entry.name.endsWith(".artifactbundle")) continue;
58296
+ const bundleDir = import_node_path55.default.join(sourceView, entry.name);
58297
+ const infoPath = import_node_path55.default.join(bundleDir, "info.json");
58298
+ if (!(0, import_node_fs57.existsSync)(infoPath)) continue;
58299
+ const info = JSON.parse((0, import_node_fs57.readFileSync)(infoPath, "utf8"));
58300
+ if (!isRecord(info) || !isRecord(info.artifacts)) continue;
58301
+ const artifact = info.artifacts[sourceSdkId];
58302
+ if (!isRecord(artifact) || !Array.isArray(artifact.variants)) continue;
58303
+ const first = artifact.variants[0];
58304
+ if (!isRecord(first) || typeof first.path !== "string") continue;
58305
+ return import_node_path55.default.dirname(import_node_path55.default.join(bundleDir, first.path));
58306
+ }
58307
+ throw new Error(`Swift SDK ${sourceSdkId} not found in view ${sourceView}`);
58308
+ }
58309
+ function collectRemovedFiles(dir, prefix, out) {
58310
+ for (const entry of (0, import_node_fs57.readdirSync)(dir, { withFileTypes: true })) {
58311
+ const rel = prefix ? `${prefix}/${entry.name}` : entry.name;
58312
+ const full = import_node_path55.default.join(dir, entry.name);
58313
+ if (entry.isDirectory()) collectRemovedFiles(full, rel, out);
58314
+ else out.push(rel);
58315
+ }
58316
+ }
58317
+ function syncSdkTree(sourceDir, destDir, prefix, distributionPrefix, changed2, removed) {
58318
+ (0, import_node_fs57.mkdirSync)(destDir, { recursive: true });
58319
+ const wanted = /* @__PURE__ */ new Set();
58320
+ for (const entry of (0, import_node_fs57.readdirSync)(sourceDir, { withFileTypes: true })) {
58321
+ wanted.add(entry.name);
58322
+ const rel = prefix ? `${prefix}/${entry.name}` : entry.name;
58323
+ const src = import_node_path55.default.join(sourceDir, entry.name);
58324
+ const dest = import_node_path55.default.join(destDir, entry.name);
58325
+ const destLstat = (0, import_node_fs57.lstatSync)(dest, { throwIfNoEntry: false });
58326
+ if (entry.isSymbolicLink()) {
58327
+ const target = (0, import_node_fs57.readlinkSync)(src);
58328
+ if (target.startsWith(distributionPrefix)) {
58329
+ if (destLstat?.isSymbolicLink() && (0, import_node_fs57.readlinkSync)(dest) === target) continue;
58330
+ if (destLstat) (0, import_node_fs57.rmSync)(dest, { recursive: true, force: true });
58331
+ (0, import_node_fs57.symlinkSync)(target, dest);
58332
+ changed2.push(rel);
58333
+ continue;
58334
+ }
58335
+ }
58336
+ const srcStat = (0, import_node_fs57.statSync)(src, { throwIfNoEntry: false });
58337
+ if (!srcStat) continue;
58338
+ if (srcStat.isDirectory()) {
58339
+ if (destLstat && (!destLstat.isDirectory() || destLstat.isSymbolicLink()))
58340
+ (0, import_node_fs57.rmSync)(dest, { recursive: true, force: true });
58341
+ syncSdkTree(src, dest, rel, distributionPrefix, changed2, removed);
58342
+ continue;
58343
+ }
58344
+ if (destLstat?.isFile() && !destLstat.isSymbolicLink() && destLstat.size === srcStat.size && (0, import_node_fs57.readFileSync)(src).equals((0, import_node_fs57.readFileSync)(dest)))
58345
+ continue;
58346
+ if (destLstat?.isDirectory()) (0, import_node_fs57.rmSync)(dest, { recursive: true, force: true });
58347
+ place(src, dest, (srcStat.mode & 73) !== 0 ? srcStat.mode & 511 : void 0);
58348
+ changed2.push(rel);
58349
+ }
58350
+ for (const entry of (0, import_node_fs57.readdirSync)(destDir, { withFileTypes: true })) {
58351
+ if (wanted.has(entry.name)) continue;
58352
+ const rel = prefix ? `${prefix}/${entry.name}` : entry.name;
58353
+ const dest = import_node_path55.default.join(destDir, entry.name);
58354
+ if (entry.isDirectory()) collectRemovedFiles(dest, rel, removed);
58355
+ else removed.push(rel);
58356
+ (0, import_node_fs57.rmSync)(dest, { recursive: true, force: true });
58357
+ }
58358
+ }
58181
58359
  function readRecord(file) {
58182
58360
  if (!(0, import_node_fs57.existsSync)(file)) return null;
58183
58361
  const value = JSON.parse((0, import_node_fs57.readFileSync)(file, "utf8"));
@@ -58189,24 +58367,33 @@ function readRecord(file) {
58189
58367
  }
58190
58368
  return files2;
58191
58369
  }
58192
- function place(from, to) {
58370
+ function place(from, to, mode) {
58193
58371
  (0, import_node_fs57.mkdirSync)(import_node_path55.default.dirname(to), { recursive: true });
58194
58372
  const partial = `${to}.${(0, import_node_crypto30.randomUUID)()}`;
58195
58373
  (0, import_node_fs57.copyFileSync)(from, partial, import_node_fs57.constants.COPYFILE_FICLONE);
58374
+ if (mode !== void 0) (0, import_node_fs57.chmodSync)(partial, mode);
58196
58375
  (0, import_node_fs57.renameSync)(partial, to);
58197
58376
  }
58198
- function invalidateDependents(root, mirror, files2) {
58199
- const read2 = new Set(files2.filter((file) => !file.startsWith("lib/")));
58200
- if (read2.size === 0) return;
58201
- const escapedMirror = mirror.replace(
58377
+ function escapeDepPath(directory2) {
58378
+ return directory2.replace(
58202
58379
  /[\\ #$]/g,
58203
58380
  (character) => character === "$" ? "$$" : `\\${character}`
58204
58381
  );
58382
+ }
58383
+ function invalidateDependents(root, mirror, files2) {
58384
+ const read2 = new Set(files2.filter((file) => !file.startsWith("lib/")));
58385
+ if (read2.size === 0) return;
58205
58386
  const spellings = [
58206
- [Buffer.from(`${escapedMirror}/`), ""]
58387
+ [Buffer.from(`${escapeDepPath(mirror)}/`), ""]
58207
58388
  ];
58208
58389
  if (files2.some((file) => file.startsWith("sdk/ios/")))
58209
58390
  spellings.push([Buffer.from("/darwin/"), "sdk/ios/"]);
58391
+ const headersChanged = files2.some(
58392
+ (file) => !file.startsWith("lib/") && !file.startsWith("modules/")
58393
+ );
58394
+ invalidateBuildDependents(root, spellings, read2, headersChanged);
58395
+ }
58396
+ function invalidateBuildDependents(root, spellings, read2, headersChanged) {
58210
58397
  const names = (text7) => spellings.some(([prefix, base2]) => {
58211
58398
  let end = 0;
58212
58399
  for (let at = text7.indexOf(prefix); at !== -1; at = text7.indexOf(prefix, end)) {
@@ -58221,9 +58408,6 @@ function invalidateDependents(root, mirror, files2) {
58221
58408
  });
58222
58409
  const scratch2 = import_node_path55.default.join(root, ".build");
58223
58410
  if (!(0, import_node_fs57.existsSync)(scratch2)) return;
58224
- const headersChanged = files2.some(
58225
- (file) => !file.startsWith("lib/") && !file.startsWith("modules/")
58226
- );
58227
58411
  for (const triple of (0, import_node_fs57.readdirSync)(scratch2, { withFileTypes: true })) {
58228
58412
  const products = import_node_path55.default.join(scratch2, triple.name, "release");
58229
58413
  if (!triple.isDirectory() || !(0, import_node_fs57.existsSync)(products)) continue;
@@ -58263,18 +58447,25 @@ function invalidateDependents(root, mirror, files2) {
58263
58447
  if (headersChanged)
58264
58448
  (0, import_node_fs57.rmSync)(import_node_path55.default.join(scratch2, "ModuleCache"), { recursive: true, force: true });
58265
58449
  }
58266
- var import_node_crypto30, import_node_fs57, import_node_path55, SWIFT_DISTRIBUTION_MIRROR;
58450
+ var import_node_crypto30, import_node_fs57, import_node_path55, SWIFT_DISTRIBUTION_MIRROR, SWIFT_SDK_MIRROR, SWIFT_SDK_MIRROR_ID, SWIFT_SDK_MIRROR_RECORD, SWIFT_SDK_MIRROR_SYNCING, SWIFT_SDK_MIRROR_BUNDLE;
58267
58451
  var init_swift_distribution_mirror = __esm({
58268
58452
  "src/swift-distribution-mirror.ts"() {
58269
58453
  "use strict";
58270
58454
  import_node_crypto30 = require("node:crypto");
58271
58455
  import_node_fs57 = require("node:fs");
58272
58456
  import_node_path55 = __toESM(require("node:path"), 1);
58457
+ init_case_insensitive_header_overlay();
58273
58458
  init_is_record();
58274
58459
  init_swift_distribution_contract();
58275
58460
  init_swift_shared_sdk();
58276
58461
  init_swiftContract();
58462
+ init_swiftTargetContract();
58277
58463
  SWIFT_DISTRIBUTION_MIRROR = ".peach-distribution";
58464
+ SWIFT_SDK_MIRROR = ".peach-sdk";
58465
+ SWIFT_SDK_MIRROR_ID = "peach-wasm-sdk";
58466
+ SWIFT_SDK_MIRROR_RECORD = ".peach-sdk-mirror.json";
58467
+ SWIFT_SDK_MIRROR_SYNCING = ".peach-sdk-syncing";
58468
+ SWIFT_SDK_MIRROR_BUNDLE = "peach-wasm.artifactbundle";
58278
58469
  }
58279
58470
  });
58280
58471
 
@@ -72185,8 +72376,10 @@ function swiftPeachModules(moduleRoot) {
72185
72376
  (0, import_node_fs70.readFileSync)(import_node_path68.default.join(moduleRoot, "Package.swift"), "utf8")
72186
72377
  ).filter((target) => !target.executable && !target.path.startsWith("fixtures/")).map((target) => target.name);
72187
72378
  }
72188
- function swiftSdkPaths(moduleRoot, toolchainBin, options2 = swiftCompileSdkOptions(moduleRoot, toolchainBin)) {
72189
- const sdk2 = swiftModuleSdk(moduleRoot).wasmSdkId;
72379
+ function clearSwiftSdkPathsCache(sdkDir) {
72380
+ for (const key2 of sdkPaths.keys()) if (key2.includes(sdkDir)) sdkPaths.delete(key2);
72381
+ }
72382
+ function swiftSdkPaths(moduleRoot, toolchainBin, options2 = swiftCompileSdkOptions(moduleRoot, toolchainBin), sdk2 = swiftModuleSdk(moduleRoot).wasmSdkId) {
72190
72383
  const key2 = JSON.stringify([toolchainBin, sdk2, options2]);
72191
72384
  const cached5 = sdkPaths.get(key2);
72192
72385
  if (cached5) return cached5;
@@ -75591,7 +75784,10 @@ function finishSwiftAppModuleFile(file) {
75591
75784
  (0, import_node_fs76.appendFileSync)(file, Buffer.concat([header, nameBytes, thunks]));
75592
75785
  }
75593
75786
  function swiftAppModuleInputs(tokens3, buildRoot, sdkLibraries) {
75594
- const owned = (token) => import_node_path74.default.resolve(token).startsWith(`${buildRoot}/`) && (!token.includes("/.peach-pruned-objs/") || token.endsWith("/swiftrt-patched.o"));
75787
+ const owned = (token) => {
75788
+ const resolved = import_node_path74.default.resolve(token);
75789
+ return resolved.startsWith(`${buildRoot}/`) && !resolved.startsWith(`${buildRoot}/${SWIFT_DISTRIBUTION_MIRROR}/`) && !resolved.startsWith(`${buildRoot}/${SWIFT_SDK_MIRROR}/`) && (!token.includes("/.peach-pruned-objs/") || token.endsWith("/swiftrt-patched.o"));
75790
+ };
75595
75791
  const inputs2 = [];
75596
75792
  for (const [index, token] of tokens3.entries()) {
75597
75793
  if (token === "--start-lib") inputs2.push(token);
@@ -77046,6 +77242,7 @@ var init_swift_sdk_app_module = __esm({
77046
77242
  import_node_zlib5 = require("node:zlib");
77047
77243
  init_nativeSdkBindingContract();
77048
77244
  init_nativeWasmContract();
77245
+ init_swift_distribution_mirror();
77049
77246
  init_swift_guest_dyld_functions();
77050
77247
  init_swift_guest_linked_spans();
77051
77248
  init_swift_project_user();
@@ -78509,7 +78706,9 @@ var init_swift_objc_prebuilt = __esm({
78509
78706
  init_internal_child_contract();
78510
78707
  init_self_invocation();
78511
78708
  init_native_prebuilt();
78709
+ init_swift_distribution_mirror();
78512
78710
  init_swift_objc_prebuilt_catalog();
78711
+ init_swift_objc_standin();
78513
78712
  init_swift_toolchain();
78514
78713
  quote2 = (value) => "'" + value.replaceAll("'", "'\\''") + "'";
78515
78714
  }
@@ -80090,7 +80289,7 @@ function syncSwiftTree(base2, files2, alreadySynced) {
80090
80289
  const full = import_node_path84.default.join(dir, entry.name);
80091
80290
  if (dir === base2 && (entry.name === ".build" || entry.name === SWIFT_CACHE_HOLD_MARKER || entry.name.startsWith(".peach-modules-") || // distribution clang maps are written beside the project, so a sync
80092
80291
  // must not remove them.
80093
- entry.name === CLANG_DISTRIBUTION_MODULES || entry.name === SWIFT_DISTRIBUTION_MIRROR || entry.name === SWIFT_LINK_STAMP || entry.name === SWIFT_BUILD_ROOT_SHAPE))
80292
+ entry.name === CLANG_DISTRIBUTION_MODULES || entry.name === SWIFT_DISTRIBUTION_MIRROR || entry.name === SWIFT_SDK_MIRROR || entry.name === SWIFT_LINK_STAMP || entry.name === SWIFT_BUILD_ROOT_SHAPE))
80094
80293
  continue;
80095
80294
  if (entry.isDirectory()) walk4(full);
80096
80295
  else if (!files2.has(full) && (!kept || !kept.has((0, import_node_fs84.lstatSync)(full).ino)))
@@ -80724,7 +80923,7 @@ function needsNativeToolset(input, prebuilt) {
80724
80923
  input.packageFiles || prebuilt || Object.keys(input.files).some(isSwiftNativeTranslationUnit)
80725
80924
  );
80726
80925
  }
80727
- function writeSwiftProject(layout2, input, moduleRoot, prebuilt, allowHeaderCompiler = false, objcPrebuiltStage) {
80926
+ function writeSwiftProject(layout2, input, moduleRoot, prebuilt, allowHeaderCompiler = false, objcPrebuiltStage, compileSdk) {
80728
80927
  const nativeToolset = needsNativeToolset(input, prebuilt);
80729
80928
  if (input.headerAliases !== void 0 && !isSwiftHeaderAliases(input.headerAliases))
80730
80929
  throw new Error("swift compile input has invalid original header aliases");
@@ -80853,6 +81052,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
80853
81052
  checkedToolchain = swiftToolchain(pin2.release, swiftModuleSdk(moduleRoot));
80854
81053
  return checkedToolchain;
80855
81054
  };
81055
+ const resolvedSdkPaths = (toolchainBin) => swiftSdkPaths(moduleRoot, toolchainBin, compileSdk?.options, compileSdk?.id);
80856
81056
  const targetStagedFiles = /* @__PURE__ */ new Map();
80857
81057
  const stageTargetFile = (target, file, contents2, options2) => {
80858
81058
  const relative8 = import_node_path84.default.relative(layout2.root, file).split(import_node_path84.default.sep).join(import_node_path84.default.posix.sep);
@@ -80979,9 +81179,25 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
80979
81179
  files2.set(destination, contents2);
80980
81180
  }
80981
81181
  }
81182
+ const binaryTreePrefix = `${SWIFT_BINARY_TREES_DIR}/`;
81183
+ const binaryTreeSegment = `/${SWIFT_BINARY_TREES_DIR}/`;
81184
+ const isBinaryTreeFile = (file) => file.startsWith(binaryTreePrefix) || file.includes(binaryTreeSegment);
81185
+ const stageBinaryTreeFile = (file, contents2) => {
81186
+ const destination = import_node_path84.default.join(layout2.root, file);
81187
+ if (files2.has(destination)) return;
81188
+ writeBuildFile(destination, contents2);
81189
+ alreadySynced.set(destination, contents2);
81190
+ files2.set(destination, contents2);
81191
+ };
81192
+ for (const [file, contents2] of Object.entries(input.files))
81193
+ if (isBinaryTreeFile(file)) stageBinaryTreeFile(file, contents2);
81194
+ for (const [file, bytes] of Object.entries(input.packageFiles ?? {}))
81195
+ if (isBinaryTreeFile(file) && !file.endsWith(".swift"))
81196
+ stageBinaryTreeFile(file, Buffer.from(bytes, "base64"));
81197
+ for (const [file, bytes] of Object.entries(input.projectFiles ?? {}))
81198
+ if (isBinaryTreeFile(file)) stageBinaryTreeFile(file, Buffer.from(bytes, "base64"));
80982
81199
  const fromInputRoot = (file) => file.startsWith(`${SWIFT_NATIVE_INPUT_ROOT}/`) ? import_node_path84.default.join(layout2.root, file.slice(SWIFT_NATIVE_INPUT_ROOT.length + 1)) : file;
80983
81200
  const inRoot = `${layout2.root}${import_node_path84.default.sep}`;
80984
- const binaryTree = `${import_node_path84.default.sep}${SWIFT_BINARY_TREES_DIR}${import_node_path84.default.sep}`;
80985
81201
  const headerSearch = writeXcodeHeaderSearch(
80986
81202
  import_node_path84.default.join(layout2.root, ".build", "peach-xcode-headers"),
80987
81203
  nativeTargets2.map((settings) => {
@@ -81033,7 +81249,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
81033
81249
  import_node_path84.default.join(layout2.root, file)
81034
81250
  ])
81035
81251
  ),
81036
- (file) => !file.startsWith(inRoot) || files2.has(file) || file.includes(binaryTree)
81252
+ (file) => !file.startsWith(inRoot) || files2.has(file)
81037
81253
  );
81038
81254
  const importModuleMaps = /* @__PURE__ */ new Map();
81039
81255
  const sourceModuleMaps = /* @__PURE__ */ new Map();
@@ -81176,7 +81392,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
81176
81392
  ];
81177
81393
  })();
81178
81394
  const sdkInclude = import_node_path84.default.join(
81179
- swiftSdkPaths(moduleRoot, toolchainBin).sysroot,
81395
+ resolvedSdkPaths(toolchainBin).sysroot,
81180
81396
  "darwin/usr/include"
81181
81397
  );
81182
81398
  const dependencyModuleMaps = clangImportModuleMapFlags(
@@ -81923,7 +82139,8 @@ ${entry}`);
81923
82139
  );
81924
82140
  if (nativeFlags) {
81925
82141
  const toolchainBin = nativeToolchain();
81926
- const headers = import_node_path84.default.join(swiftSdkPaths(moduleRoot, toolchainBin).sysroot, "darwin");
82142
+ const headers = import_node_path84.default.join(resolvedSdkPaths(toolchainBin).sysroot, "darwin");
82143
+ const sdkOverlayDirectory = compileSdk?.id === SWIFT_SDK_MIRROR_ID ? import_node_path84.default.join(layout2.root, SWIFT_SDK_MIRROR) : void 0;
81927
82144
  const dependencies2 = swiftTargetDependencies(input.files, targets);
81928
82145
  const reachesNative = (name3, seen = /* @__PURE__ */ new Set()) => {
81929
82146
  if (native.has(name3)) return true;
@@ -81941,7 +82158,12 @@ ${entry}`);
81941
82158
  throw new Error(
81942
82159
  target.name + ": missing or unsupported declared iOS deployment target " + JSON.stringify(version2)
81943
82160
  );
81944
- const sdkIntake = objcSdkIntakeFlags(headers, toolchainBin, minimum);
82161
+ const sdkIntake = objcSdkIntakeFlags(
82162
+ headers,
82163
+ toolchainBin,
82164
+ minimum,
82165
+ sdkOverlayDirectory
82166
+ );
81945
82167
  const sdkOverlay = sdkIntake.indexOf("-ivfsoverlay");
81946
82168
  if (sdkOverlay >= 0) generatedOverlays.add(sdkIntake[sdkOverlay + 1]);
81947
82169
  const intake = [
@@ -82163,7 +82385,7 @@ ${entry}`);
82163
82385
  distribution: distribution ?? void 0,
82164
82386
  moduleExcludes,
82165
82387
  deferDarwinOverlay: native.size > 0 && toolsetOrdersLibcxxBeforeDarwinOverlay(
82166
- swiftSdkPaths(moduleRoot, nativeToolchain()).cFlags
82388
+ resolvedSdkPaths(nativeToolchain()).cFlags
82167
82389
  ),
82168
82390
  ...reachesFrameworks ? {
82169
82391
  distributionLink: {
@@ -82206,7 +82428,7 @@ ${entry}`);
82206
82428
  ...headerAliasFlags,
82207
82429
  ...native.size > 0 ? [
82208
82430
  "-fmodule-map-file=" + import_node_path84.default.join(
82209
- swiftSdkPaths(moduleRoot, nativeToolchain()).sysroot,
82431
+ resolvedSdkPaths(nativeToolchain()).sysroot,
82210
82432
  "darwin/wasm/include/module.modulemap"
82211
82433
  )
82212
82434
  ] : []
@@ -82216,7 +82438,7 @@ ${entry}`);
82216
82438
  const prebuiltCompiler = distribution && objcPrebuiltStage !== false ? swiftObjCPrebuiltCompiler(
82217
82439
  clang,
82218
82440
  layout2.root,
82219
- swiftSdkPaths(moduleRoot, nativeToolchain()).sysroot,
82441
+ resolvedSdkPaths(nativeToolchain()).sysroot,
82220
82442
  distribution.id,
82221
82443
  [...native.keys()],
82222
82444
  objcPrebuiltStage
@@ -82474,12 +82696,55 @@ package.targets += [.target(name: ${JSON.stringify(name3)}, dependencies: ${JSON
82474
82696
  `;
82475
82697
  return name3;
82476
82698
  };
82477
- const headerBuilds = headerCompiler ? [
82478
- {
82479
- target: buildProduct(SWIFT_HEADER_PRODUCTS_TARGET, orderedProducers),
82480
- producers: orderedProducers
82699
+ const producerUnitCount = /* @__PURE__ */ new Map();
82700
+ for (const target of targets) {
82701
+ if (!producerSet.has(target.name)) continue;
82702
+ producerUnitCount.set(
82703
+ target.name,
82704
+ Math.max(
82705
+ 1,
82706
+ targetEntries(target).filter(([file]) => file.endsWith(".swift")).length
82707
+ )
82708
+ );
82709
+ }
82710
+ const MAX_HEADER_STAGE_TARGETS = 100;
82711
+ const MAX_HEADER_STAGE_UNITS = 400;
82712
+ const chunkHeaderProducers = (producers2) => {
82713
+ const levelOrdered = [...producers2].sort(
82714
+ (left, right) => depths.get(left) - depths.get(right)
82715
+ );
82716
+ const totalUnits = levelOrdered.reduce(
82717
+ (sum, name3) => sum + (producerUnitCount.get(name3) ?? 1),
82718
+ 0
82719
+ );
82720
+ if (levelOrdered.length <= 1 || levelOrdered.length <= MAX_HEADER_STAGE_TARGETS && totalUnits <= MAX_HEADER_STAGE_UNITS) {
82721
+ return [
82722
+ {
82723
+ target: buildProduct(SWIFT_HEADER_PRODUCTS_TARGET, levelOrdered),
82724
+ producers: levelOrdered
82725
+ }
82726
+ ];
82481
82727
  }
82482
- ] : [...stages].sort(([left], [right]) => left - right).map(([level, producers2]) => ({
82728
+ const chunks = [];
82729
+ let current2 = [];
82730
+ let units = 0;
82731
+ for (const name3 of levelOrdered) {
82732
+ const size2 = producerUnitCount.get(name3) ?? 1;
82733
+ if (current2.length > 0 && (current2.length >= MAX_HEADER_STAGE_TARGETS || units + size2 > MAX_HEADER_STAGE_UNITS)) {
82734
+ chunks.push(current2);
82735
+ current2 = [];
82736
+ units = 0;
82737
+ }
82738
+ current2.push(name3);
82739
+ units += size2;
82740
+ }
82741
+ if (current2.length > 0) chunks.push(current2);
82742
+ return chunks.map((members2, index) => ({
82743
+ target: buildProduct(`${SWIFT_HEADER_PRODUCTS_TARGET}${index + 1}`, members2),
82744
+ producers: members2
82745
+ }));
82746
+ };
82747
+ const headerBuilds = headerCompiler ? chunkHeaderProducers(orderedProducers) : [...stages].sort(([left], [right]) => left - right).map(([level, producers2]) => ({
82483
82748
  target: buildProduct(`${SWIFT_HEADER_PRODUCTS_TARGET}${level}`, producers2),
82484
82749
  producers: producers2
82485
82750
  }));
@@ -84006,8 +84271,15 @@ ${compatShape}` : "";
84006
84271
  frameworkLease
84007
84272
  );
84008
84273
  const compileFrameworkRoot2 = distribution ? swiftDistributionCompileView(frameworkRoot2, distribution) : frameworkRoot2;
84009
- const sdk3 = swiftModuleSdk(frameworkRoot2).wasmSdkId;
84010
- const icu2 = options2.linkOnly ? null : swiftIcuAsset(options2.toolchainBin, sdk3);
84274
+ const sdk2 = swiftModuleSdk(frameworkRoot2).wasmSdkId;
84275
+ const compileSdk2 = mirrorDistribution ? syncSwiftSdkMirror(root2, frameworkRoot2, options2.toolchainBin, sdk2) : {
84276
+ id: sdk2,
84277
+ options: swiftCompileSdkOptions(frameworkRoot2, options2.toolchainBin),
84278
+ toolsetChanged: false
84279
+ };
84280
+ if (mirrorDistribution && compileSdk2.toolsetChanged)
84281
+ clearSwiftSdkPathsCache(import_node_path84.default.join(root2, SWIFT_SDK_MIRROR));
84282
+ const icu2 = options2.linkOnly ? null : swiftIcuAsset(options2.toolchainBin, sdk2);
84011
84283
  let prebuilt2;
84012
84284
  if (!distribution) {
84013
84285
  if (allowWrite) stage("compiling framework products");
@@ -84018,7 +84290,7 @@ ${compatShape}` : "";
84018
84290
  frameworkKey,
84019
84291
  input,
84020
84292
  swift,
84021
- sdk: sdk3,
84293
+ sdk: sdk2,
84022
84294
  toolchainBin: options2.toolchainBin,
84023
84295
  plugins: macroPlugins2,
84024
84296
  buildOptions: {
@@ -84043,7 +84315,8 @@ ${compatShape}` : "";
84043
84315
  frameworkRoot: frameworkRoot2,
84044
84316
  compileFrameworkRoot: compileFrameworkRoot2,
84045
84317
  macroPlugins: macroPlugins2,
84046
- sdk: sdk3,
84318
+ sdk: sdk2,
84319
+ compileSdk: compileSdk2,
84047
84320
  icu: icu2,
84048
84321
  prebuilt: prebuilt2,
84049
84322
  readHold: readHold2
@@ -84064,7 +84337,7 @@ ${compatShape}` : "";
84064
84337
  frameworkRoot,
84065
84338
  compileFrameworkRoot,
84066
84339
  macroPlugins,
84067
- sdk: sdk2,
84340
+ compileSdk,
84068
84341
  icu,
84069
84342
  prebuilt
84070
84343
  } = frameworks;
@@ -84082,13 +84355,13 @@ ${compatShape}` : "";
84082
84355
  if (retireStaleSwiftLink(
84083
84356
  root2,
84084
84357
  swiftLinkStamp({
84085
- frameworkKey: `${options2.release}\0${Boolean(distribution)}\0${swiftModuleSdk(frameworkRoot).wasmSdkId}`,
84358
+ frameworkKey: mirrorDistribution ? `${options2.release}\0mirror` : `${options2.release}\0${Boolean(distribution)}\0${swiftModuleSdk(frameworkRoot).wasmSdkId}`,
84086
84359
  packageHostMacros
84087
84360
  }),
84088
84361
  swiftLinkStamp({
84089
- // a distribution's objects reach only the deferred link, and
84090
- // the root's mirror keeps its compile inputs at fixed paths
84091
- frameworkKey: distribution ? `${options2.release}\0${distribution.wasmSdkChecksum}` : frameworkKey,
84362
+ // mirrored distributions and their WASI SDK mirror invalidate
84363
+ // dependents per changed file instead of wiping every Clang object.
84364
+ frameworkKey: mirrorDistribution ? `${options2.release}\0mirror` : distribution ? `${options2.release}\0${distribution.wasmSdkChecksum}` : frameworkKey,
84092
84365
  prebuilt,
84093
84366
  packageHostMacros
84094
84367
  }),
@@ -84102,7 +84375,8 @@ ${compatShape}` : "";
84102
84375
  frameworkRoot,
84103
84376
  prebuilt,
84104
84377
  !options2.project,
84105
- options2.project ? false : options2.objcPrebuiltStage ?? (options2.intermediates ? false : void 0)
84378
+ options2.project ? false : options2.objcPrebuiltStage ?? (options2.intermediates ? false : void 0),
84379
+ compileSdk
84106
84380
  );
84107
84381
  const productFile = import_node_path84.default.join(frameworkRoot, SWIFT_FRAMEWORK_PRODUCT_FILE);
84108
84382
  writeSwiftAutolinkLinker(
@@ -84178,6 +84452,7 @@ ${compatShape}` : "";
84178
84452
  const jobs = swiftCompilerJobs();
84179
84453
  const incrementalPreview = sdkImage !== void 0 && !guestGraph && !options2.project && !input.optimize && !input.unoptimized;
84180
84454
  const perFile = input.unoptimized || incrementalPreview;
84455
+ const reproducibleFrameworkRoot = mirrorDistribution ? frameworkRoot : compileFrameworkRoot;
84181
84456
  const buildArgs = [
84182
84457
  "build",
84183
84458
  ...projectProcess?.cacheOptions ?? swiftPackageCacheOptions(),
@@ -84187,10 +84462,10 @@ ${compatShape}` : "";
84187
84462
  String(jobs),
84188
84463
  "--package-path",
84189
84464
  root2,
84190
- ...swiftCompileSdkOptions(frameworkRoot, options2.toolchainBin),
84465
+ ...compileSdk.options,
84191
84466
  ...swiftObjCSelectorOptions(frameworkRoot),
84192
84467
  "--swift-sdk",
84193
- sdk2,
84468
+ compileSdk.id,
84194
84469
  ...preparation.targetToolset ? ["--toolset", import_node_path84.default.join(root2, ".peach-target-toolset.json")] : [],
84195
84470
  "-c",
84196
84471
  "release",
@@ -84225,7 +84500,7 @@ ${compatShape}` : "";
84225
84500
  ],
84226
84501
  ...swiftReproducibleBuildFlags([
84227
84502
  [import_node_path84.default.dirname(options2.toolchainBin), "toolchain"],
84228
- [compileFrameworkRoot, "framework"],
84503
+ [reproducibleFrameworkRoot, "framework"],
84229
84504
  [root2, "build"],
84230
84505
  ...forwarders
84231
84506
  ]).flatMap((flag, index, flags) => {
@@ -84235,8 +84510,8 @@ ${compatShape}` : "";
84235
84510
  let mapped = flag;
84236
84511
  for (const [dir, target] of [
84237
84512
  [root2, "/peach/build"],
84238
- [compileFrameworkRoot, "/peach/framework"],
84239
- [(0, import_node_fs84.realpathSync)(compileFrameworkRoot), "/peach/framework"],
84513
+ [reproducibleFrameworkRoot, "/peach/framework"],
84514
+ [(0, import_node_fs84.realpathSync)(reproducibleFrameworkRoot), "/peach/framework"],
84240
84515
  [toolchainDir, "/peach/toolchain"],
84241
84516
  [(0, import_node_fs84.realpathSync)(toolchainDir), "/peach/toolchain"]
84242
84517
  ]) {
@@ -84265,8 +84540,14 @@ ${compatShape}` : "";
84265
84540
  (0, import_node_fs84.rmSync)(linked, { force: true });
84266
84541
  stage("compiling and linking Swift modules");
84267
84542
  const frameworkInterfaces = /* @__PURE__ */ new Map();
84543
+ const compileSdkPaths = swiftSdkPaths(
84544
+ frameworkRoot,
84545
+ options2.toolchainBin,
84546
+ compileSdk.options,
84547
+ compileSdk.id
84548
+ );
84268
84549
  const sdkFrameworks = import_node_path84.default.join(
84269
- swiftSdkPaths(frameworkRoot, options2.toolchainBin).darwin,
84550
+ compileSdkPaths.darwin,
84270
84551
  "System/Library/Frameworks"
84271
84552
  );
84272
84553
  const generatedInterface = (source) => withoutImportedSdkEnumForwards(
@@ -84470,7 +84751,7 @@ ${compatShape}` : "";
84470
84751
  options2.toolchainBin,
84471
84752
  recipe2,
84472
84753
  new Map(
84473
- preparation.headerBuilds[0].producers.map((producer) => {
84754
+ preparation.headerBuilds.flatMap((stage2) => stage2.producers).map((producer) => {
84474
84755
  const paths = headerPaths(producer);
84475
84756
  return [
84476
84757
  swiftTargetModuleName(producer),
@@ -84564,7 +84845,7 @@ ${compatShape}` : "";
84564
84845
  moduleRoot: frameworkRoot,
84565
84846
  toolchainBin: options2.toolchainBin,
84566
84847
  swiftCompiler: preparation.headerCompiler ? import_node_path84.default.join(root2, SWIFT_HEADER_COMPILER_WRAPPER) : compiler.SWIFT_EXEC ?? import_node_path84.default.join(options2.toolchainBin, "swiftc"),
84567
- sysroot: swiftSdkPaths(frameworkRoot, options2.toolchainBin).sysroot,
84848
+ sysroot: compileSdkPaths.sysroot,
84568
84849
  sdk: swiftModuleSdk(frameworkRoot),
84569
84850
  sdkImage,
84570
84851
  compilerDigest: compilerSourceDigest,
@@ -84594,9 +84875,7 @@ ${compatShape}` : "";
84594
84875
  project: options2.project && {
84595
84876
  ...options2.project,
84596
84877
  env: { ...options2.project.env, ...projectProcess?.env },
84597
- sdkRoot: import_node_path84.default.dirname(
84598
- swiftSdkPaths(frameworkRoot, options2.toolchainBin).sysroot
84599
- ),
84878
+ sdkRoot: import_node_path84.default.dirname(compileSdkPaths.sysroot),
84600
84879
  linked: output
84601
84880
  }
84602
84881
  });
@@ -84857,7 +85136,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
84857
85136
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
84858
85137
  MULTI_MANIFEST_VERSION = 76;
84859
85138
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
84860
- compilerSourceDigest = true ? "e28f3765de44ea471f6097cb0ae6ead762595ae2bb24b4e38d4210f32b9434c1" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
85139
+ compilerSourceDigest = true ? "a0b547d433e1045fc952acc099a7aa9b05cde3376f8d2dd002afbf6d4593e5ba" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
84861
85140
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
84862
85141
  MODULE_MAP_RESPONSE_FILE_RUN = 16;
84863
85142
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
@@ -107373,112 +107652,112 @@ var init_native_static_libraries = __esm({
107373
107652
  name: "skia",
107374
107653
  nativeSha256: "5312f2b194b1f6b6721388028bf919e56400278245b039f47136aa98f0582333",
107375
107654
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
107376
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107655
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107377
107656
  archive: "libskia.a"
107378
107657
  },
107379
107658
  {
107380
107659
  name: "skia_svg",
107381
107660
  nativeSha256: "77adc498cff85db7850fb713c306681c6337f9b4ec42991b3764c8f3eff9d8d0",
107382
107661
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
107383
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107662
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107384
107663
  archive: "libsvg.a"
107385
107664
  },
107386
107665
  {
107387
107666
  name: "skia_skshaper",
107388
107667
  nativeSha256: "830bcf260bd24fd79ee5d323e26ec667638795e3a0e555f1093371b8342c345c",
107389
107668
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
107390
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107669
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107391
107670
  archive: "libskshaper.a"
107392
107671
  },
107393
107672
  {
107394
107673
  name: "skia_skparagraph",
107395
107674
  nativeSha256: "26afd4e5b11d46b0820a2cd7fd9918eb5a041946e1a1c0d4b91a5d54877e9dda",
107396
107675
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
107397
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107676
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107398
107677
  archive: "libskparagraph.a"
107399
107678
  },
107400
107679
  {
107401
107680
  name: "skia_skunicode_core",
107402
107681
  nativeSha256: "629f58c4e81157d42e353b2b255bebb2fd94d1f31d8f8157e982fa4367710526",
107403
107682
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
107404
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107683
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107405
107684
  archive: "libskunicode_core.a"
107406
107685
  },
107407
107686
  {
107408
107687
  name: "skia_skunicode_libgrapheme",
107409
107688
  nativeSha256: "047bd82306ba688453a3ff9dc02e203cdf16f2084551cca54f5d2b099baf1895",
107410
107689
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
107411
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107690
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107412
107691
  archive: "libskunicode_libgrapheme.a"
107413
107692
  },
107414
107693
  {
107415
107694
  name: "skia_skottie",
107416
107695
  nativeSha256: "75c0dfd82a256e761cddc45475b8109ed8c9a442767cf3a8bf8720eef0dd4af7",
107417
107696
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
107418
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107697
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107419
107698
  archive: "libskottie.a"
107420
107699
  },
107421
107700
  {
107422
107701
  name: "skia_sksg",
107423
107702
  nativeSha256: "df9652a46505d3c5c74d55b52295ef39218d2b5856e074117461fa2348312c8d",
107424
107703
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
107425
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107704
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107426
107705
  archive: "libsksg.a"
107427
107706
  },
107428
107707
  {
107429
107708
  name: "skia",
107430
107709
  nativeSha256: "c9b007c4da16f66d84b2f108af719b424ef91ee0759e58df0b76930bc6f82e31",
107431
107710
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
107432
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107711
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107433
107712
  archive: "libskia.a"
107434
107713
  },
107435
107714
  {
107436
107715
  name: "skia_svg",
107437
107716
  nativeSha256: "159705737769610b60216b114a28ba833840aa1df7833424df99edec4405b86f",
107438
107717
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
107439
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107718
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107440
107719
  archive: "libsvg.a"
107441
107720
  },
107442
107721
  {
107443
107722
  name: "skia_skshaper",
107444
107723
  nativeSha256: "934f3dbf3f38bca87b463b664a17c1588840f86ec89cf6961fb2a89b6336b35b",
107445
107724
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
107446
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107725
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107447
107726
  archive: "libskshaper.a"
107448
107727
  },
107449
107728
  {
107450
107729
  name: "skia_skparagraph",
107451
107730
  nativeSha256: "29a48349fc9b75c252b22fc6ca5ade90636900f82beec58780f03fd66ab345b3",
107452
107731
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
107453
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107732
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107454
107733
  archive: "libskparagraph.a"
107455
107734
  },
107456
107735
  {
107457
107736
  name: "skia_skunicode_core",
107458
107737
  nativeSha256: "096e5139c4de528dbba5a9605895f4c725853e48225503bdfa9c1d70241e5f58",
107459
107738
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
107460
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107739
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107461
107740
  archive: "libskunicode_core.a"
107462
107741
  },
107463
107742
  {
107464
107743
  name: "skia_skunicode_libgrapheme",
107465
107744
  nativeSha256: "d1ec3c2d5ad6889eb4fbf4a6bab74f39946739501d40de903f7d8cb2181ac37d",
107466
107745
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
107467
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107746
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107468
107747
  archive: "libskunicode_libgrapheme.a"
107469
107748
  },
107470
107749
  {
107471
107750
  name: "skia_skottie",
107472
107751
  nativeSha256: "52ea2e046f45f51df6027d783e923864e8c4ef94a1fe4fc5971e436574d8ae57",
107473
107752
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
107474
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107753
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107475
107754
  archive: "libskottie.a"
107476
107755
  },
107477
107756
  {
107478
107757
  name: "skia_sksg",
107479
107758
  nativeSha256: "541a74d8f83dc411efe8eeac377486a5054fab4c7710afe406a20a27efe8f627",
107480
107759
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
107481
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
107760
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
107482
107761
  archive: "libsksg.a"
107483
107762
  },
107484
107763
  {
@@ -154815,7 +155094,7 @@ var init_nitro_superset = __esm({
154815
155094
  init_nitroContract();
154816
155095
  init_swift_standin_digest();
154817
155096
  NITRO_SUPERSET_ENTRY_NAME = "superset";
154818
- NITRO_COMPILER_DIGEST = true ? "aca2d73a3cdd76c01dbd1472a1e4d5627ce318c93718f056b05fd770039280cf" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
155097
+ NITRO_COMPILER_DIGEST = true ? "80dd47cc4f53f23aef7d6066173498f39993357bb08490b172789693f63a072f" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
154819
155098
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
154820
155099
  nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
154821
155100
  published3 = /* @__PURE__ */ new Map();