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;
@@ -11717,7 +11717,12 @@ function contents(node) {
11717
11717
  }))
11718
11718
  ];
11719
11719
  }
11720
- function caseInsensitiveHeaderOverlay(directory2, roots, listed) {
11720
+ function clearCaseInsensitiveHeaderOverlayCache(rootPrefix) {
11721
+ const prefix = `${rootPrefix}${import_node_path16.default.sep}`;
11722
+ for (const key2 of scans.keys())
11723
+ if (key2 === rootPrefix || key2.startsWith(prefix)) scans.delete(key2);
11724
+ }
11725
+ function caseInsensitiveHeaderOverlay(directory2, roots, listed, fixedName) {
11721
11726
  let known = scans;
11722
11727
  if (listed) {
11723
11728
  known = listedScans.get(listed) ?? /* @__PURE__ */ new Map();
@@ -11738,7 +11743,7 @@ function caseInsensitiveHeaderOverlay(directory2, roots, listed) {
11738
11743
  const text7 = JSON.stringify({ "case-sensitive": "false", roots: roots_, version: 0 });
11739
11744
  const file = import_node_path16.default.join(
11740
11745
  directory2,
11741
- `case-insensitive-${(0, import_node_crypto11.createHash)("sha256").update(text7).digest("hex").slice(0, 16)}.yaml`
11746
+ fixedName ?? `case-insensitive-${(0, import_node_crypto11.createHash)("sha256").update(text7).digest("hex").slice(0, 16)}.yaml`
11742
11747
  );
11743
11748
  writeBuildFile(file, text7);
11744
11749
  return file;
@@ -14343,15 +14348,17 @@ function materializeObjcSdk(cacheDir6) {
14343
14348
  }
14344
14349
  return sdk2;
14345
14350
  }
14346
- function objcSdkIntakeFlags(headers, toolchainBin, minimum) {
14351
+ function objcSdkIntakeFlags(headers, toolchainBin, minimum, overlayDirectory) {
14347
14352
  const caseOverlay = caseInsensitiveHeaderOverlay(
14348
- import_node_path20.default.join(swiftCacheDir(), "swift-header-case"),
14353
+ overlayDirectory ?? import_node_path20.default.join(swiftCacheDir(), "swift-header-case"),
14349
14354
  [
14350
14355
  import_node_path20.default.join(headers, "System/Library/Frameworks"),
14351
14356
  import_node_path20.default.join(headers, "wasm/include"),
14352
14357
  import_node_path20.default.join(headers, "wasm/intrinsics"),
14353
14358
  import_node_path20.default.join(headers, "usr/include")
14354
- ]
14359
+ ],
14360
+ void 0,
14361
+ overlayDirectory ? SWIFT_SDK_HEADER_CASE_OVERLAY : void 0
14355
14362
  );
14356
14363
  return [
14357
14364
  ...swiftObjCPlatformFlags(toolchainBin, minimum),
@@ -15428,7 +15435,7 @@ function constantValue(node) {
15428
15435
  }
15429
15436
  return null;
15430
15437
  }
15431
- var import_node_child_process10, import_node_crypto12, import_node_fs20, import_node_path20, 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;
15438
+ var import_node_child_process10, import_node_crypto12, import_node_fs20, import_node_path20, 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;
15432
15439
  var init_swift_objc_standin = __esm({
15433
15440
  "src/swift-objc-standin.ts"() {
15434
15441
  "use strict";
@@ -15469,6 +15476,7 @@ var init_swift_objc_standin = __esm({
15469
15476
  };
15470
15477
  NATIVE_GRAPH_ID = (0, import_node_crypto12.createHash)("sha256").update(JSON.stringify(NATIVE_GRAPH_INPUTS)).digest("hex");
15471
15478
  ROUNDS = 12;
15479
+ SWIFT_SDK_HEADER_CASE_OVERLAY = "sdk-header-case.yaml";
15472
15480
  headerFiles2 = (dir) => import_node_fs20.default.readdirSync(dir, { recursive: true, encoding: "utf8" }).filter((file) => file.endsWith(".h") || file.endsWith(".hh")).sort();
15473
15481
  MISSING_IMPORT = "#import <PeachMissing/PeachMissing.h>\n";
15474
15482
  FRAMEWORK_HEADER = /^System\/Library\/Frameworks\/([^/]+)\.framework\/Headers\/(.+)$/;
@@ -19571,7 +19579,7 @@ var init_react_native_core_digest = __esm({
19571
19579
 
19572
19580
  // src/swift-compiler-digest.ts
19573
19581
  function swiftArchiveCompilerDigestValue() {
19574
- return true ? "7033c5c50ea9c70f62e6bfc9f9dd743e535c08d86f7136060a0e872f238d0d33" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
19582
+ return true ? "6b03f57a8a907c059091275e079f41e5ba083b43a70989a634347e73ff6f548e" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
19575
19583
  }
19576
19584
  var import_node_crypto16, import_node_fs32, import_node_path31, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
19577
19585
  var init_swift_compiler_digest = __esm({
@@ -19717,13 +19725,13 @@ var init_swift_standin_digest = __esm({
19717
19725
  ];
19718
19726
  RUNTIME_IMPORT = /(?:^|[;\n])[ \t]*(?:import|export)\s+(?!type(?:\s|\{))([\s\S]*?)\s+from\s*['"]([^'"]+)['"]|(?:^|[;\n])[ \t]*import\s+['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
19719
19727
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS, STANDIN_DIGEST_EXCLUDED_FILES);
19720
- STANDIN_SOURCE_DIGEST = true ? "a17a387bf80ef3648c26193901ee6a7cb9abc691b99809c6a8bf9ad4617836af" : standinSourceDigest();
19728
+ STANDIN_SOURCE_DIGEST = true ? "46bd6373b813f44d3e812af83162f521ce032cba6bade9039bbb107120481dc5" : standinSourceDigest();
19721
19729
  }
19722
19730
  });
19723
19731
 
19724
19732
  // src/expo-native-compiler-digest.ts
19725
19733
  function expoNativeCompilerDigestValue() {
19726
- return true ? "867bb716444e6da99acd8ca9dd4860c523197b0261ea2c03eb0d3bf8c5f9d793" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
19734
+ return true ? "20b00f2698ace1deda2b18448f2606eb47a5eaae0195083595ede81758eafc7c" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
19727
19735
  }
19728
19736
  var import_node_crypto18;
19729
19737
  var init_expo_native_compiler_digest = __esm({
@@ -23910,9 +23918,179 @@ function syncSwiftDistributionMirror(root, source, manifest) {
23910
23918
  const partial = `${record5}.${(0, import_node_crypto24.randomUUID)()}`;
23911
23919
  (0, import_node_fs42.writeFileSync)(partial, JSON.stringify(manifest.files));
23912
23920
  (0, import_node_fs42.renameSync)(partial, record5);
23921
+ if ([...changed, ...removed].some(
23922
+ (file) => !file.startsWith("lib/") && !file.startsWith("modules/")
23923
+ )) {
23924
+ clearCaseInsensitiveHeaderOverlayCache(mirror);
23925
+ clearCaseInsensitiveHeaderOverlayCache(import_node_path40.default.join(root, SWIFT_SDK_MIRROR));
23926
+ }
23913
23927
  }
23914
23928
  return mirror;
23915
23929
  }
23930
+ function syncSwiftSdkMirror(root, frameworkRoot, toolchainBin, sourceSdkId) {
23931
+ const viewOptions = swiftSharedSdkViewOptions(
23932
+ frameworkRoot,
23933
+ true,
23934
+ toolchainBin,
23935
+ sourceSdkId
23936
+ );
23937
+ const sourceView = viewOptions[1];
23938
+ return syncSwiftSdkMirrorFromView(root, frameworkRoot, sourceView, sourceSdkId);
23939
+ }
23940
+ function syncSwiftSdkMirrorFromView(root, frameworkRoot, sourceView, sourceSdkId) {
23941
+ const mirror = import_node_path40.default.join(root, SWIFT_SDK_MIRROR);
23942
+ const bundle = import_node_path40.default.join(mirror, SWIFT_SDK_MIRROR_BUNDLE);
23943
+ const destTriple = import_node_path40.default.join(bundle, "sdk", SWIFT_WASM_TRIPLE);
23944
+ const bundleInfo = import_node_path40.default.join(bundle, "info.json");
23945
+ const recordFile = import_node_path40.default.join(mirror, SWIFT_SDK_MIRROR_RECORD);
23946
+ const syncingMarker = import_node_path40.default.join(mirror, SWIFT_SDK_MIRROR_SYNCING);
23947
+ const options2 = ["--swift-sdks-path", mirror];
23948
+ const interrupted = (0, import_node_fs42.existsSync)(syncingMarker);
23949
+ const previous = interrupted ? null : readSdkRecord(recordFile);
23950
+ if (previous && previous.sourceView === sourceView && previous.sourceSdkId === sourceSdkId && (0, import_node_fs42.existsSync)(bundleInfo) && (0, import_node_fs42.existsSync)(import_node_path40.default.join(destTriple, "swift-sdk.json"))) {
23951
+ return { id: SWIFT_SDK_MIRROR_ID, options: options2, toolsetChanged: false };
23952
+ }
23953
+ const sourceTriple = resolveSdkViewTripleDir(sourceView, sourceSdkId);
23954
+ if (!previous) {
23955
+ if (!interrupted) (0, import_node_fs42.rmSync)(mirror, { recursive: true, force: true });
23956
+ (0, import_node_fs42.rmSync)(import_node_path40.default.join(root, ".build"), { recursive: true, force: true });
23957
+ }
23958
+ (0, import_node_fs42.mkdirSync)(mirror, { recursive: true });
23959
+ (0, import_node_fs42.writeFileSync)(syncingMarker, "1\n");
23960
+ const changed = [];
23961
+ const removed = [];
23962
+ const distributionPrefix = `${frameworkRoot}${import_node_path40.default.sep}`;
23963
+ syncSdkTree(sourceTriple, destTriple, "", distributionPrefix, changed, removed);
23964
+ const infoText = JSON.stringify(
23965
+ {
23966
+ artifacts: {
23967
+ [SWIFT_SDK_MIRROR_ID]: {
23968
+ type: "swiftSDK",
23969
+ variants: [{ path: `sdk/${SWIFT_WASM_TRIPLE}/swift-sdk.json` }],
23970
+ version: "0.0.1"
23971
+ }
23972
+ },
23973
+ schemaVersion: "1.0"
23974
+ },
23975
+ null,
23976
+ 2
23977
+ ) + "\n";
23978
+ if (!(0, import_node_fs42.existsSync)(bundleInfo) || (0, import_node_fs42.readFileSync)(bundleInfo, "utf8") !== infoText) {
23979
+ (0, import_node_fs42.mkdirSync)(bundle, { recursive: true });
23980
+ const partial = `${bundleInfo}.${(0, import_node_crypto24.randomUUID)()}`;
23981
+ (0, import_node_fs42.writeFileSync)(partial, infoText);
23982
+ (0, import_node_fs42.renameSync)(partial, bundleInfo);
23983
+ }
23984
+ const touched = [...changed, ...removed];
23985
+ const toolsetChanged = !previous || touched.some(
23986
+ (file) => file === "toolset.json" || file === "swift-sdk.json" || file.startsWith("swift.xctoolchain/usr/bin/")
23987
+ );
23988
+ if (previous) {
23989
+ if (toolsetChanged) {
23990
+ (0, import_node_fs42.rmSync)(import_node_path40.default.join(root, ".build"), { recursive: true, force: true });
23991
+ } else {
23992
+ const compileTouched = touched.filter(
23993
+ (file) => !file.endsWith(".a") && !file.endsWith(".o") && !file.startsWith("rust/") && file !== "runtime-products.json"
23994
+ );
23995
+ const headersChanged = compileTouched.some(
23996
+ (file) => !file.endsWith(".swiftmodule") && !file.endsWith(".swiftdoc") && !file.endsWith(".swiftsourceinfo") && !file.endsWith(".abi.json")
23997
+ );
23998
+ if (compileTouched.length > 0) {
23999
+ invalidateBuildDependents(
24000
+ root,
24001
+ [[Buffer.from(`${escapeDepPath(destTriple)}/`), ""]],
24002
+ new Set(compileTouched),
24003
+ headersChanged
24004
+ );
24005
+ }
24006
+ if (headersChanged) clearCaseInsensitiveHeaderOverlayCache(mirror);
24007
+ }
24008
+ } else {
24009
+ clearCaseInsensitiveHeaderOverlayCache(mirror);
24010
+ }
24011
+ const partialRecord = `${recordFile}.${(0, import_node_crypto24.randomUUID)()}`;
24012
+ (0, import_node_fs42.writeFileSync)(partialRecord, JSON.stringify({ version: 1, sourceView, sourceSdkId }));
24013
+ (0, import_node_fs42.renameSync)(partialRecord, recordFile);
24014
+ (0, import_node_fs42.rmSync)(syncingMarker, { force: true });
24015
+ return { id: SWIFT_SDK_MIRROR_ID, options: options2, toolsetChanged };
24016
+ }
24017
+ function readSdkRecord(file) {
24018
+ if (!(0, import_node_fs42.existsSync)(file)) return null;
24019
+ const value = JSON.parse((0, import_node_fs42.readFileSync)(file, "utf8"));
24020
+ if (!isRecord(value) || value.version !== 1 || typeof value.sourceView !== "string" || typeof value.sourceSdkId !== "string")
24021
+ return null;
24022
+ return {
24023
+ version: value.version,
24024
+ sourceView: value.sourceView,
24025
+ sourceSdkId: value.sourceSdkId
24026
+ };
24027
+ }
24028
+ function resolveSdkViewTripleDir(sourceView, sourceSdkId) {
24029
+ for (const entry of (0, import_node_fs42.readdirSync)(sourceView, { withFileTypes: true })) {
24030
+ if (!entry.name.endsWith(".artifactbundle")) continue;
24031
+ const bundleDir = import_node_path40.default.join(sourceView, entry.name);
24032
+ const infoPath = import_node_path40.default.join(bundleDir, "info.json");
24033
+ if (!(0, import_node_fs42.existsSync)(infoPath)) continue;
24034
+ const info = JSON.parse((0, import_node_fs42.readFileSync)(infoPath, "utf8"));
24035
+ if (!isRecord(info) || !isRecord(info.artifacts)) continue;
24036
+ const artifact = info.artifacts[sourceSdkId];
24037
+ if (!isRecord(artifact) || !Array.isArray(artifact.variants)) continue;
24038
+ const first = artifact.variants[0];
24039
+ if (!isRecord(first) || typeof first.path !== "string") continue;
24040
+ return import_node_path40.default.dirname(import_node_path40.default.join(bundleDir, first.path));
24041
+ }
24042
+ throw new Error(`Swift SDK ${sourceSdkId} not found in view ${sourceView}`);
24043
+ }
24044
+ function collectRemovedFiles(dir, prefix, out) {
24045
+ for (const entry of (0, import_node_fs42.readdirSync)(dir, { withFileTypes: true })) {
24046
+ const rel = prefix ? `${prefix}/${entry.name}` : entry.name;
24047
+ const full = import_node_path40.default.join(dir, entry.name);
24048
+ if (entry.isDirectory()) collectRemovedFiles(full, rel, out);
24049
+ else out.push(rel);
24050
+ }
24051
+ }
24052
+ function syncSdkTree(sourceDir, destDir, prefix, distributionPrefix, changed, removed) {
24053
+ (0, import_node_fs42.mkdirSync)(destDir, { recursive: true });
24054
+ const wanted = /* @__PURE__ */ new Set();
24055
+ for (const entry of (0, import_node_fs42.readdirSync)(sourceDir, { withFileTypes: true })) {
24056
+ wanted.add(entry.name);
24057
+ const rel = prefix ? `${prefix}/${entry.name}` : entry.name;
24058
+ const src = import_node_path40.default.join(sourceDir, entry.name);
24059
+ const dest = import_node_path40.default.join(destDir, entry.name);
24060
+ const destLstat = (0, import_node_fs42.lstatSync)(dest, { throwIfNoEntry: false });
24061
+ if (entry.isSymbolicLink()) {
24062
+ const target = (0, import_node_fs42.readlinkSync)(src);
24063
+ if (target.startsWith(distributionPrefix)) {
24064
+ if (destLstat?.isSymbolicLink() && (0, import_node_fs42.readlinkSync)(dest) === target) continue;
24065
+ if (destLstat) (0, import_node_fs42.rmSync)(dest, { recursive: true, force: true });
24066
+ (0, import_node_fs42.symlinkSync)(target, dest);
24067
+ changed.push(rel);
24068
+ continue;
24069
+ }
24070
+ }
24071
+ const srcStat = (0, import_node_fs42.statSync)(src, { throwIfNoEntry: false });
24072
+ if (!srcStat) continue;
24073
+ if (srcStat.isDirectory()) {
24074
+ if (destLstat && (!destLstat.isDirectory() || destLstat.isSymbolicLink()))
24075
+ (0, import_node_fs42.rmSync)(dest, { recursive: true, force: true });
24076
+ syncSdkTree(src, dest, rel, distributionPrefix, changed, removed);
24077
+ continue;
24078
+ }
24079
+ if (destLstat?.isFile() && !destLstat.isSymbolicLink() && destLstat.size === srcStat.size && (0, import_node_fs42.readFileSync)(src).equals((0, import_node_fs42.readFileSync)(dest)))
24080
+ continue;
24081
+ if (destLstat?.isDirectory()) (0, import_node_fs42.rmSync)(dest, { recursive: true, force: true });
24082
+ place(src, dest, (srcStat.mode & 73) !== 0 ? srcStat.mode & 511 : void 0);
24083
+ changed.push(rel);
24084
+ }
24085
+ for (const entry of (0, import_node_fs42.readdirSync)(destDir, { withFileTypes: true })) {
24086
+ if (wanted.has(entry.name)) continue;
24087
+ const rel = prefix ? `${prefix}/${entry.name}` : entry.name;
24088
+ const dest = import_node_path40.default.join(destDir, entry.name);
24089
+ if (entry.isDirectory()) collectRemovedFiles(dest, rel, removed);
24090
+ else removed.push(rel);
24091
+ (0, import_node_fs42.rmSync)(dest, { recursive: true, force: true });
24092
+ }
24093
+ }
23916
24094
  function readRecord(file) {
23917
24095
  if (!(0, import_node_fs42.existsSync)(file)) return null;
23918
24096
  const value = JSON.parse((0, import_node_fs42.readFileSync)(file, "utf8"));
@@ -23924,24 +24102,33 @@ function readRecord(file) {
23924
24102
  }
23925
24103
  return files2;
23926
24104
  }
23927
- function place(from, to) {
24105
+ function place(from, to, mode) {
23928
24106
  (0, import_node_fs42.mkdirSync)(import_node_path40.default.dirname(to), { recursive: true });
23929
24107
  const partial = `${to}.${(0, import_node_crypto24.randomUUID)()}`;
23930
24108
  (0, import_node_fs42.copyFileSync)(from, partial, import_node_fs42.constants.COPYFILE_FICLONE);
24109
+ if (mode !== void 0) (0, import_node_fs42.chmodSync)(partial, mode);
23931
24110
  (0, import_node_fs42.renameSync)(partial, to);
23932
24111
  }
23933
- function invalidateDependents(root, mirror, files2) {
23934
- const read = new Set(files2.filter((file) => !file.startsWith("lib/")));
23935
- if (read.size === 0) return;
23936
- const escapedMirror = mirror.replace(
24112
+ function escapeDepPath(directory2) {
24113
+ return directory2.replace(
23937
24114
  /[\\ #$]/g,
23938
24115
  (character) => character === "$" ? "$$" : `\\${character}`
23939
24116
  );
24117
+ }
24118
+ function invalidateDependents(root, mirror, files2) {
24119
+ const read = new Set(files2.filter((file) => !file.startsWith("lib/")));
24120
+ if (read.size === 0) return;
23940
24121
  const spellings = [
23941
- [Buffer.from(`${escapedMirror}/`), ""]
24122
+ [Buffer.from(`${escapeDepPath(mirror)}/`), ""]
23942
24123
  ];
23943
24124
  if (files2.some((file) => file.startsWith("sdk/ios/")))
23944
24125
  spellings.push([Buffer.from("/darwin/"), "sdk/ios/"]);
24126
+ const headersChanged = files2.some(
24127
+ (file) => !file.startsWith("lib/") && !file.startsWith("modules/")
24128
+ );
24129
+ invalidateBuildDependents(root, spellings, read, headersChanged);
24130
+ }
24131
+ function invalidateBuildDependents(root, spellings, read, headersChanged) {
23945
24132
  const names = (text7) => spellings.some(([prefix, base]) => {
23946
24133
  let end = 0;
23947
24134
  for (let at = text7.indexOf(prefix); at !== -1; at = text7.indexOf(prefix, end)) {
@@ -23956,9 +24143,6 @@ function invalidateDependents(root, mirror, files2) {
23956
24143
  });
23957
24144
  const scratch2 = import_node_path40.default.join(root, ".build");
23958
24145
  if (!(0, import_node_fs42.existsSync)(scratch2)) return;
23959
- const headersChanged = files2.some(
23960
- (file) => !file.startsWith("lib/") && !file.startsWith("modules/")
23961
- );
23962
24146
  for (const triple of (0, import_node_fs42.readdirSync)(scratch2, { withFileTypes: true })) {
23963
24147
  const products = import_node_path40.default.join(scratch2, triple.name, "release");
23964
24148
  if (!triple.isDirectory() || !(0, import_node_fs42.existsSync)(products)) continue;
@@ -23998,18 +24182,25 @@ function invalidateDependents(root, mirror, files2) {
23998
24182
  if (headersChanged)
23999
24183
  (0, import_node_fs42.rmSync)(import_node_path40.default.join(scratch2, "ModuleCache"), { recursive: true, force: true });
24000
24184
  }
24001
- var import_node_crypto24, import_node_fs42, import_node_path40, SWIFT_DISTRIBUTION_MIRROR;
24185
+ var import_node_crypto24, import_node_fs42, import_node_path40, SWIFT_DISTRIBUTION_MIRROR, SWIFT_SDK_MIRROR, SWIFT_SDK_MIRROR_ID, SWIFT_SDK_MIRROR_RECORD, SWIFT_SDK_MIRROR_SYNCING, SWIFT_SDK_MIRROR_BUNDLE;
24002
24186
  var init_swift_distribution_mirror = __esm({
24003
24187
  "src/swift-distribution-mirror.ts"() {
24004
24188
  "use strict";
24005
24189
  import_node_crypto24 = require("node:crypto");
24006
24190
  import_node_fs42 = require("node:fs");
24007
24191
  import_node_path40 = __toESM(require("node:path"), 1);
24192
+ init_case_insensitive_header_overlay();
24008
24193
  init_is_record();
24009
24194
  init_swift_distribution_contract();
24010
24195
  init_swift_shared_sdk();
24011
24196
  init_swiftContract();
24197
+ init_swiftTargetContract();
24012
24198
  SWIFT_DISTRIBUTION_MIRROR = ".peach-distribution";
24199
+ SWIFT_SDK_MIRROR = ".peach-sdk";
24200
+ SWIFT_SDK_MIRROR_ID = "peach-wasm-sdk";
24201
+ SWIFT_SDK_MIRROR_RECORD = ".peach-sdk-mirror.json";
24202
+ SWIFT_SDK_MIRROR_SYNCING = ".peach-sdk-syncing";
24203
+ SWIFT_SDK_MIRROR_BUNDLE = "peach-wasm.artifactbundle";
24013
24204
  }
24014
24205
  });
24015
24206
 
@@ -37617,8 +37808,10 @@ function swiftPeachModules(moduleRoot) {
37617
37808
  (0, import_node_fs55.readFileSync)(import_node_path53.default.join(moduleRoot, "Package.swift"), "utf8")
37618
37809
  ).filter((target) => !target.executable && !target.path.startsWith("fixtures/")).map((target) => target.name);
37619
37810
  }
37620
- function swiftSdkPaths(moduleRoot, toolchainBin, options2 = swiftCompileSdkOptions(moduleRoot, toolchainBin)) {
37621
- const sdk2 = swiftModuleSdk(moduleRoot).wasmSdkId;
37811
+ function clearSwiftSdkPathsCache(sdkDir) {
37812
+ for (const key2 of sdkPaths.keys()) if (key2.includes(sdkDir)) sdkPaths.delete(key2);
37813
+ }
37814
+ function swiftSdkPaths(moduleRoot, toolchainBin, options2 = swiftCompileSdkOptions(moduleRoot, toolchainBin), sdk2 = swiftModuleSdk(moduleRoot).wasmSdkId) {
37622
37815
  const key2 = JSON.stringify([toolchainBin, sdk2, options2]);
37623
37816
  const cached2 = sdkPaths.get(key2);
37624
37817
  if (cached2) return cached2;
@@ -41005,7 +41198,10 @@ function finishSwiftAppModuleFile(file) {
41005
41198
  (0, import_node_fs61.appendFileSync)(file, Buffer.concat([header, nameBytes, thunks]));
41006
41199
  }
41007
41200
  function swiftAppModuleInputs(tokens2, buildRoot, sdkLibraries) {
41008
- const owned = (token) => import_node_path59.default.resolve(token).startsWith(`${buildRoot}/`) && (!token.includes("/.peach-pruned-objs/") || token.endsWith("/swiftrt-patched.o"));
41201
+ const owned = (token) => {
41202
+ const resolved = import_node_path59.default.resolve(token);
41203
+ 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"));
41204
+ };
41009
41205
  const inputs2 = [];
41010
41206
  for (const [index, token] of tokens2.entries()) {
41011
41207
  if (token === "--start-lib") inputs2.push(token);
@@ -42460,6 +42656,7 @@ var init_swift_sdk_app_module = __esm({
42460
42656
  import_node_zlib4 = require("node:zlib");
42461
42657
  init_nativeSdkBindingContract();
42462
42658
  init_nativeWasmContract();
42659
+ init_swift_distribution_mirror();
42463
42660
  init_swift_guest_dyld_functions();
42464
42661
  init_swift_guest_linked_spans();
42465
42662
  init_swift_project_user();
@@ -43935,7 +44132,9 @@ var init_swift_objc_prebuilt = __esm({
43935
44132
  init_internal_child_contract();
43936
44133
  init_self_invocation();
43937
44134
  init_native_prebuilt();
44135
+ init_swift_distribution_mirror();
43938
44136
  init_swift_objc_prebuilt_catalog();
44137
+ init_swift_objc_standin();
43939
44138
  init_swift_toolchain();
43940
44139
  quote2 = (value) => "'" + value.replaceAll("'", "'\\''") + "'";
43941
44140
  }
@@ -45516,7 +45715,7 @@ function syncSwiftTree(base, files2, alreadySynced) {
45516
45715
  const full = import_node_path70.default.join(dir, entry.name);
45517
45716
  if (dir === base && (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
45518
45717
  // must not remove them.
45519
- entry.name === CLANG_DISTRIBUTION_MODULES || entry.name === SWIFT_DISTRIBUTION_MIRROR || entry.name === SWIFT_LINK_STAMP || entry.name === SWIFT_BUILD_ROOT_SHAPE))
45718
+ 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))
45520
45719
  continue;
45521
45720
  if (entry.isDirectory()) walk4(full);
45522
45721
  else if (!files2.has(full) && (!kept || !kept.has((0, import_node_fs70.lstatSync)(full).ino)))
@@ -46150,7 +46349,7 @@ function needsNativeToolset(input, prebuilt) {
46150
46349
  input.packageFiles || prebuilt || Object.keys(input.files).some(isSwiftNativeTranslationUnit)
46151
46350
  );
46152
46351
  }
46153
- function writeSwiftProject(layout2, input, moduleRoot, prebuilt, allowHeaderCompiler = false, objcPrebuiltStage) {
46352
+ function writeSwiftProject(layout2, input, moduleRoot, prebuilt, allowHeaderCompiler = false, objcPrebuiltStage, compileSdk) {
46154
46353
  const nativeToolset = needsNativeToolset(input, prebuilt);
46155
46354
  if (input.headerAliases !== void 0 && !isSwiftHeaderAliases(input.headerAliases))
46156
46355
  throw new Error("swift compile input has invalid original header aliases");
@@ -46279,6 +46478,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
46279
46478
  checkedToolchain = swiftToolchain(pin2.release, swiftModuleSdk(moduleRoot));
46280
46479
  return checkedToolchain;
46281
46480
  };
46481
+ const resolvedSdkPaths = (toolchainBin) => swiftSdkPaths(moduleRoot, toolchainBin, compileSdk?.options, compileSdk?.id);
46282
46482
  const targetStagedFiles = /* @__PURE__ */ new Map();
46283
46483
  const stageTargetFile = (target, file, contents2, options2) => {
46284
46484
  const relative3 = import_node_path70.default.relative(layout2.root, file).split(import_node_path70.default.sep).join(import_node_path70.default.posix.sep);
@@ -46405,9 +46605,25 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
46405
46605
  files2.set(destination, contents2);
46406
46606
  }
46407
46607
  }
46608
+ const binaryTreePrefix = `${SWIFT_BINARY_TREES_DIR}/`;
46609
+ const binaryTreeSegment = `/${SWIFT_BINARY_TREES_DIR}/`;
46610
+ const isBinaryTreeFile = (file) => file.startsWith(binaryTreePrefix) || file.includes(binaryTreeSegment);
46611
+ const stageBinaryTreeFile = (file, contents2) => {
46612
+ const destination = import_node_path70.default.join(layout2.root, file);
46613
+ if (files2.has(destination)) return;
46614
+ writeBuildFile(destination, contents2);
46615
+ alreadySynced.set(destination, contents2);
46616
+ files2.set(destination, contents2);
46617
+ };
46618
+ for (const [file, contents2] of Object.entries(input.files))
46619
+ if (isBinaryTreeFile(file)) stageBinaryTreeFile(file, contents2);
46620
+ for (const [file, bytes] of Object.entries(input.packageFiles ?? {}))
46621
+ if (isBinaryTreeFile(file) && !file.endsWith(".swift"))
46622
+ stageBinaryTreeFile(file, Buffer.from(bytes, "base64"));
46623
+ for (const [file, bytes] of Object.entries(input.projectFiles ?? {}))
46624
+ if (isBinaryTreeFile(file)) stageBinaryTreeFile(file, Buffer.from(bytes, "base64"));
46408
46625
  const fromInputRoot = (file) => file.startsWith(`${SWIFT_NATIVE_INPUT_ROOT}/`) ? import_node_path70.default.join(layout2.root, file.slice(SWIFT_NATIVE_INPUT_ROOT.length + 1)) : file;
46409
46626
  const inRoot = `${layout2.root}${import_node_path70.default.sep}`;
46410
- const binaryTree = `${import_node_path70.default.sep}${SWIFT_BINARY_TREES_DIR}${import_node_path70.default.sep}`;
46411
46627
  const headerSearch = writeXcodeHeaderSearch(
46412
46628
  import_node_path70.default.join(layout2.root, ".build", "peach-xcode-headers"),
46413
46629
  nativeTargets2.map((settings) => {
@@ -46459,7 +46675,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
46459
46675
  import_node_path70.default.join(layout2.root, file)
46460
46676
  ])
46461
46677
  ),
46462
- (file) => !file.startsWith(inRoot) || files2.has(file) || file.includes(binaryTree)
46678
+ (file) => !file.startsWith(inRoot) || files2.has(file)
46463
46679
  );
46464
46680
  const importModuleMaps = /* @__PURE__ */ new Map();
46465
46681
  const sourceModuleMaps = /* @__PURE__ */ new Map();
@@ -46602,7 +46818,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
46602
46818
  ];
46603
46819
  })();
46604
46820
  const sdkInclude = import_node_path70.default.join(
46605
- swiftSdkPaths(moduleRoot, toolchainBin).sysroot,
46821
+ resolvedSdkPaths(toolchainBin).sysroot,
46606
46822
  "darwin/usr/include"
46607
46823
  );
46608
46824
  const dependencyModuleMaps = clangImportModuleMapFlags(
@@ -47349,7 +47565,8 @@ ${entry}`);
47349
47565
  );
47350
47566
  if (nativeFlags) {
47351
47567
  const toolchainBin = nativeToolchain();
47352
- const headers = import_node_path70.default.join(swiftSdkPaths(moduleRoot, toolchainBin).sysroot, "darwin");
47568
+ const headers = import_node_path70.default.join(resolvedSdkPaths(toolchainBin).sysroot, "darwin");
47569
+ const sdkOverlayDirectory = compileSdk?.id === SWIFT_SDK_MIRROR_ID ? import_node_path70.default.join(layout2.root, SWIFT_SDK_MIRROR) : void 0;
47353
47570
  const dependencies2 = swiftTargetDependencies(input.files, targets);
47354
47571
  const reachesNative = (name3, seen = /* @__PURE__ */ new Set()) => {
47355
47572
  if (native.has(name3)) return true;
@@ -47367,7 +47584,12 @@ ${entry}`);
47367
47584
  throw new Error(
47368
47585
  target.name + ": missing or unsupported declared iOS deployment target " + JSON.stringify(version2)
47369
47586
  );
47370
- const sdkIntake = objcSdkIntakeFlags(headers, toolchainBin, minimum);
47587
+ const sdkIntake = objcSdkIntakeFlags(
47588
+ headers,
47589
+ toolchainBin,
47590
+ minimum,
47591
+ sdkOverlayDirectory
47592
+ );
47371
47593
  const sdkOverlay = sdkIntake.indexOf("-ivfsoverlay");
47372
47594
  if (sdkOverlay >= 0) generatedOverlays.add(sdkIntake[sdkOverlay + 1]);
47373
47595
  const intake = [
@@ -47589,7 +47811,7 @@ ${entry}`);
47589
47811
  distribution: distribution ?? void 0,
47590
47812
  moduleExcludes,
47591
47813
  deferDarwinOverlay: native.size > 0 && toolsetOrdersLibcxxBeforeDarwinOverlay(
47592
- swiftSdkPaths(moduleRoot, nativeToolchain()).cFlags
47814
+ resolvedSdkPaths(nativeToolchain()).cFlags
47593
47815
  ),
47594
47816
  ...reachesFrameworks ? {
47595
47817
  distributionLink: {
@@ -47632,7 +47854,7 @@ ${entry}`);
47632
47854
  ...headerAliasFlags,
47633
47855
  ...native.size > 0 ? [
47634
47856
  "-fmodule-map-file=" + import_node_path70.default.join(
47635
- swiftSdkPaths(moduleRoot, nativeToolchain()).sysroot,
47857
+ resolvedSdkPaths(nativeToolchain()).sysroot,
47636
47858
  "darwin/wasm/include/module.modulemap"
47637
47859
  )
47638
47860
  ] : []
@@ -47642,7 +47864,7 @@ ${entry}`);
47642
47864
  const prebuiltCompiler = distribution && objcPrebuiltStage !== false ? swiftObjCPrebuiltCompiler(
47643
47865
  clang,
47644
47866
  layout2.root,
47645
- swiftSdkPaths(moduleRoot, nativeToolchain()).sysroot,
47867
+ resolvedSdkPaths(nativeToolchain()).sysroot,
47646
47868
  distribution.id,
47647
47869
  [...native.keys()],
47648
47870
  objcPrebuiltStage
@@ -47900,12 +48122,55 @@ package.targets += [.target(name: ${JSON.stringify(name3)}, dependencies: ${JSON
47900
48122
  `;
47901
48123
  return name3;
47902
48124
  };
47903
- const headerBuilds = headerCompiler ? [
47904
- {
47905
- target: buildProduct(SWIFT_HEADER_PRODUCTS_TARGET, orderedProducers),
47906
- producers: orderedProducers
48125
+ const producerUnitCount = /* @__PURE__ */ new Map();
48126
+ for (const target of targets) {
48127
+ if (!producerSet.has(target.name)) continue;
48128
+ producerUnitCount.set(
48129
+ target.name,
48130
+ Math.max(
48131
+ 1,
48132
+ targetEntries(target).filter(([file]) => file.endsWith(".swift")).length
48133
+ )
48134
+ );
48135
+ }
48136
+ const MAX_HEADER_STAGE_TARGETS = 100;
48137
+ const MAX_HEADER_STAGE_UNITS = 400;
48138
+ const chunkHeaderProducers = (producers2) => {
48139
+ const levelOrdered = [...producers2].sort(
48140
+ (left, right) => depths.get(left) - depths.get(right)
48141
+ );
48142
+ const totalUnits = levelOrdered.reduce(
48143
+ (sum, name3) => sum + (producerUnitCount.get(name3) ?? 1),
48144
+ 0
48145
+ );
48146
+ if (levelOrdered.length <= 1 || levelOrdered.length <= MAX_HEADER_STAGE_TARGETS && totalUnits <= MAX_HEADER_STAGE_UNITS) {
48147
+ return [
48148
+ {
48149
+ target: buildProduct(SWIFT_HEADER_PRODUCTS_TARGET, levelOrdered),
48150
+ producers: levelOrdered
48151
+ }
48152
+ ];
47907
48153
  }
47908
- ] : [...stages].sort(([left], [right]) => left - right).map(([level, producers2]) => ({
48154
+ const chunks = [];
48155
+ let current2 = [];
48156
+ let units = 0;
48157
+ for (const name3 of levelOrdered) {
48158
+ const size2 = producerUnitCount.get(name3) ?? 1;
48159
+ if (current2.length > 0 && (current2.length >= MAX_HEADER_STAGE_TARGETS || units + size2 > MAX_HEADER_STAGE_UNITS)) {
48160
+ chunks.push(current2);
48161
+ current2 = [];
48162
+ units = 0;
48163
+ }
48164
+ current2.push(name3);
48165
+ units += size2;
48166
+ }
48167
+ if (current2.length > 0) chunks.push(current2);
48168
+ return chunks.map((members2, index) => ({
48169
+ target: buildProduct(`${SWIFT_HEADER_PRODUCTS_TARGET}${index + 1}`, members2),
48170
+ producers: members2
48171
+ }));
48172
+ };
48173
+ const headerBuilds = headerCompiler ? chunkHeaderProducers(orderedProducers) : [...stages].sort(([left], [right]) => left - right).map(([level, producers2]) => ({
47909
48174
  target: buildProduct(`${SWIFT_HEADER_PRODUCTS_TARGET}${level}`, producers2),
47910
48175
  producers: producers2
47911
48176
  }));
@@ -49432,8 +49697,15 @@ ${compatShape}` : "";
49432
49697
  frameworkLease
49433
49698
  );
49434
49699
  const compileFrameworkRoot2 = distribution ? swiftDistributionCompileView(frameworkRoot2, distribution) : frameworkRoot2;
49435
- const sdk3 = swiftModuleSdk(frameworkRoot2).wasmSdkId;
49436
- const icu2 = options2.linkOnly ? null : swiftIcuAsset(options2.toolchainBin, sdk3);
49700
+ const sdk2 = swiftModuleSdk(frameworkRoot2).wasmSdkId;
49701
+ const compileSdk2 = mirrorDistribution ? syncSwiftSdkMirror(root2, frameworkRoot2, options2.toolchainBin, sdk2) : {
49702
+ id: sdk2,
49703
+ options: swiftCompileSdkOptions(frameworkRoot2, options2.toolchainBin),
49704
+ toolsetChanged: false
49705
+ };
49706
+ if (mirrorDistribution && compileSdk2.toolsetChanged)
49707
+ clearSwiftSdkPathsCache(import_node_path70.default.join(root2, SWIFT_SDK_MIRROR));
49708
+ const icu2 = options2.linkOnly ? null : swiftIcuAsset(options2.toolchainBin, sdk2);
49437
49709
  let prebuilt2;
49438
49710
  if (!distribution) {
49439
49711
  if (allowWrite) stage("compiling framework products");
@@ -49444,7 +49716,7 @@ ${compatShape}` : "";
49444
49716
  frameworkKey,
49445
49717
  input,
49446
49718
  swift,
49447
- sdk: sdk3,
49719
+ sdk: sdk2,
49448
49720
  toolchainBin: options2.toolchainBin,
49449
49721
  plugins: macroPlugins2,
49450
49722
  buildOptions: {
@@ -49469,7 +49741,8 @@ ${compatShape}` : "";
49469
49741
  frameworkRoot: frameworkRoot2,
49470
49742
  compileFrameworkRoot: compileFrameworkRoot2,
49471
49743
  macroPlugins: macroPlugins2,
49472
- sdk: sdk3,
49744
+ sdk: sdk2,
49745
+ compileSdk: compileSdk2,
49473
49746
  icu: icu2,
49474
49747
  prebuilt: prebuilt2,
49475
49748
  readHold: readHold2
@@ -49490,7 +49763,7 @@ ${compatShape}` : "";
49490
49763
  frameworkRoot,
49491
49764
  compileFrameworkRoot,
49492
49765
  macroPlugins,
49493
- sdk: sdk2,
49766
+ compileSdk,
49494
49767
  icu,
49495
49768
  prebuilt
49496
49769
  } = frameworks;
@@ -49508,13 +49781,13 @@ ${compatShape}` : "";
49508
49781
  if (retireStaleSwiftLink(
49509
49782
  root2,
49510
49783
  swiftLinkStamp({
49511
- frameworkKey: `${options2.release}\0${Boolean(distribution)}\0${swiftModuleSdk(frameworkRoot).wasmSdkId}`,
49784
+ frameworkKey: mirrorDistribution ? `${options2.release}\0mirror` : `${options2.release}\0${Boolean(distribution)}\0${swiftModuleSdk(frameworkRoot).wasmSdkId}`,
49512
49785
  packageHostMacros
49513
49786
  }),
49514
49787
  swiftLinkStamp({
49515
- // a distribution's objects reach only the deferred link, and
49516
- // the root's mirror keeps its compile inputs at fixed paths
49517
- frameworkKey: distribution ? `${options2.release}\0${distribution.wasmSdkChecksum}` : frameworkKey,
49788
+ // mirrored distributions and their WASI SDK mirror invalidate
49789
+ // dependents per changed file instead of wiping every Clang object.
49790
+ frameworkKey: mirrorDistribution ? `${options2.release}\0mirror` : distribution ? `${options2.release}\0${distribution.wasmSdkChecksum}` : frameworkKey,
49518
49791
  prebuilt,
49519
49792
  packageHostMacros
49520
49793
  }),
@@ -49528,7 +49801,8 @@ ${compatShape}` : "";
49528
49801
  frameworkRoot,
49529
49802
  prebuilt,
49530
49803
  !options2.project,
49531
- options2.project ? false : options2.objcPrebuiltStage ?? (options2.intermediates ? false : void 0)
49804
+ options2.project ? false : options2.objcPrebuiltStage ?? (options2.intermediates ? false : void 0),
49805
+ compileSdk
49532
49806
  );
49533
49807
  const productFile = import_node_path70.default.join(frameworkRoot, SWIFT_FRAMEWORK_PRODUCT_FILE);
49534
49808
  writeSwiftAutolinkLinker(
@@ -49604,6 +49878,7 @@ ${compatShape}` : "";
49604
49878
  const jobs = swiftCompilerJobs();
49605
49879
  const incrementalPreview = sdkImage !== void 0 && !guestGraph && !options2.project && !input.optimize && !input.unoptimized;
49606
49880
  const perFile = input.unoptimized || incrementalPreview;
49881
+ const reproducibleFrameworkRoot = mirrorDistribution ? frameworkRoot : compileFrameworkRoot;
49607
49882
  const buildArgs = [
49608
49883
  "build",
49609
49884
  ...projectProcess?.cacheOptions ?? swiftPackageCacheOptions(),
@@ -49613,10 +49888,10 @@ ${compatShape}` : "";
49613
49888
  String(jobs),
49614
49889
  "--package-path",
49615
49890
  root2,
49616
- ...swiftCompileSdkOptions(frameworkRoot, options2.toolchainBin),
49891
+ ...compileSdk.options,
49617
49892
  ...swiftObjCSelectorOptions(frameworkRoot),
49618
49893
  "--swift-sdk",
49619
- sdk2,
49894
+ compileSdk.id,
49620
49895
  ...preparation.targetToolset ? ["--toolset", import_node_path70.default.join(root2, ".peach-target-toolset.json")] : [],
49621
49896
  "-c",
49622
49897
  "release",
@@ -49651,7 +49926,7 @@ ${compatShape}` : "";
49651
49926
  ],
49652
49927
  ...swiftReproducibleBuildFlags([
49653
49928
  [import_node_path70.default.dirname(options2.toolchainBin), "toolchain"],
49654
- [compileFrameworkRoot, "framework"],
49929
+ [reproducibleFrameworkRoot, "framework"],
49655
49930
  [root2, "build"],
49656
49931
  ...forwarders
49657
49932
  ]).flatMap((flag, index, flags) => {
@@ -49661,8 +49936,8 @@ ${compatShape}` : "";
49661
49936
  let mapped = flag;
49662
49937
  for (const [dir, target] of [
49663
49938
  [root2, "/peach/build"],
49664
- [compileFrameworkRoot, "/peach/framework"],
49665
- [(0, import_node_fs70.realpathSync)(compileFrameworkRoot), "/peach/framework"],
49939
+ [reproducibleFrameworkRoot, "/peach/framework"],
49940
+ [(0, import_node_fs70.realpathSync)(reproducibleFrameworkRoot), "/peach/framework"],
49666
49941
  [toolchainDir, "/peach/toolchain"],
49667
49942
  [(0, import_node_fs70.realpathSync)(toolchainDir), "/peach/toolchain"]
49668
49943
  ]) {
@@ -49691,8 +49966,14 @@ ${compatShape}` : "";
49691
49966
  (0, import_node_fs70.rmSync)(linked, { force: true });
49692
49967
  stage("compiling and linking Swift modules");
49693
49968
  const frameworkInterfaces = /* @__PURE__ */ new Map();
49969
+ const compileSdkPaths = swiftSdkPaths(
49970
+ frameworkRoot,
49971
+ options2.toolchainBin,
49972
+ compileSdk.options,
49973
+ compileSdk.id
49974
+ );
49694
49975
  const sdkFrameworks = import_node_path70.default.join(
49695
- swiftSdkPaths(frameworkRoot, options2.toolchainBin).darwin,
49976
+ compileSdkPaths.darwin,
49696
49977
  "System/Library/Frameworks"
49697
49978
  );
49698
49979
  const generatedInterface = (source) => withoutImportedSdkEnumForwards(
@@ -49896,7 +50177,7 @@ ${compatShape}` : "";
49896
50177
  options2.toolchainBin,
49897
50178
  recipe2,
49898
50179
  new Map(
49899
- preparation.headerBuilds[0].producers.map((producer) => {
50180
+ preparation.headerBuilds.flatMap((stage2) => stage2.producers).map((producer) => {
49900
50181
  const paths = headerPaths(producer);
49901
50182
  return [
49902
50183
  swiftTargetModuleName(producer),
@@ -49990,7 +50271,7 @@ ${compatShape}` : "";
49990
50271
  moduleRoot: frameworkRoot,
49991
50272
  toolchainBin: options2.toolchainBin,
49992
50273
  swiftCompiler: preparation.headerCompiler ? import_node_path70.default.join(root2, SWIFT_HEADER_COMPILER_WRAPPER) : compiler.SWIFT_EXEC ?? import_node_path70.default.join(options2.toolchainBin, "swiftc"),
49993
- sysroot: swiftSdkPaths(frameworkRoot, options2.toolchainBin).sysroot,
50274
+ sysroot: compileSdkPaths.sysroot,
49994
50275
  sdk: swiftModuleSdk(frameworkRoot),
49995
50276
  sdkImage,
49996
50277
  compilerDigest: compilerSourceDigest,
@@ -50020,9 +50301,7 @@ ${compatShape}` : "";
50020
50301
  project: options2.project && {
50021
50302
  ...options2.project,
50022
50303
  env: { ...options2.project.env, ...projectProcess?.env },
50023
- sdkRoot: import_node_path70.default.dirname(
50024
- swiftSdkPaths(frameworkRoot, options2.toolchainBin).sysroot
50025
- ),
50304
+ sdkRoot: import_node_path70.default.dirname(compileSdkPaths.sysroot),
50026
50305
  linked: output
50027
50306
  }
50028
50307
  });
@@ -50283,7 +50562,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
50283
50562
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
50284
50563
  MULTI_MANIFEST_VERSION = 76;
50285
50564
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
50286
- compilerSourceDigest = true ? "e28f3765de44ea471f6097cb0ae6ead762595ae2bb24b4e38d4210f32b9434c1" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
50565
+ compilerSourceDigest = true ? "a0b547d433e1045fc952acc099a7aa9b05cde3376f8d2dd002afbf6d4593e5ba" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
50287
50566
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
50288
50567
  MODULE_MAP_RESPONSE_FILE_RUN = 16;
50289
50568
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
@@ -78811,112 +79090,112 @@ var init_native_static_libraries = __esm({
78811
79090
  name: "skia",
78812
79091
  nativeSha256: "5312f2b194b1f6b6721388028bf919e56400278245b039f47136aa98f0582333",
78813
79092
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
78814
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
79093
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
78815
79094
  archive: "libskia.a"
78816
79095
  },
78817
79096
  {
78818
79097
  name: "skia_svg",
78819
79098
  nativeSha256: "77adc498cff85db7850fb713c306681c6337f9b4ec42991b3764c8f3eff9d8d0",
78820
79099
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
78821
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
79100
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
78822
79101
  archive: "libsvg.a"
78823
79102
  },
78824
79103
  {
78825
79104
  name: "skia_skshaper",
78826
79105
  nativeSha256: "830bcf260bd24fd79ee5d323e26ec667638795e3a0e555f1093371b8342c345c",
78827
79106
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
78828
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
79107
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
78829
79108
  archive: "libskshaper.a"
78830
79109
  },
78831
79110
  {
78832
79111
  name: "skia_skparagraph",
78833
79112
  nativeSha256: "26afd4e5b11d46b0820a2cd7fd9918eb5a041946e1a1c0d4b91a5d54877e9dda",
78834
79113
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
78835
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
79114
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
78836
79115
  archive: "libskparagraph.a"
78837
79116
  },
78838
79117
  {
78839
79118
  name: "skia_skunicode_core",
78840
79119
  nativeSha256: "629f58c4e81157d42e353b2b255bebb2fd94d1f31d8f8157e982fa4367710526",
78841
79120
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
78842
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
79121
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
78843
79122
  archive: "libskunicode_core.a"
78844
79123
  },
78845
79124
  {
78846
79125
  name: "skia_skunicode_libgrapheme",
78847
79126
  nativeSha256: "047bd82306ba688453a3ff9dc02e203cdf16f2084551cca54f5d2b099baf1895",
78848
79127
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
78849
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
79128
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
78850
79129
  archive: "libskunicode_libgrapheme.a"
78851
79130
  },
78852
79131
  {
78853
79132
  name: "skia_skottie",
78854
79133
  nativeSha256: "75c0dfd82a256e761cddc45475b8109ed8c9a442767cf3a8bf8720eef0dd4af7",
78855
79134
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
78856
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
79135
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
78857
79136
  archive: "libskottie.a"
78858
79137
  },
78859
79138
  {
78860
79139
  name: "skia_sksg",
78861
79140
  nativeSha256: "df9652a46505d3c5c74d55b52295ef39218d2b5856e074117461fa2348312c8d",
78862
79141
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
78863
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
79142
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
78864
79143
  archive: "libsksg.a"
78865
79144
  },
78866
79145
  {
78867
79146
  name: "skia",
78868
79147
  nativeSha256: "c9b007c4da16f66d84b2f108af719b424ef91ee0759e58df0b76930bc6f82e31",
78869
79148
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
78870
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
79149
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
78871
79150
  archive: "libskia.a"
78872
79151
  },
78873
79152
  {
78874
79153
  name: "skia_svg",
78875
79154
  nativeSha256: "159705737769610b60216b114a28ba833840aa1df7833424df99edec4405b86f",
78876
79155
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
78877
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
79156
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
78878
79157
  archive: "libsvg.a"
78879
79158
  },
78880
79159
  {
78881
79160
  name: "skia_skshaper",
78882
79161
  nativeSha256: "934f3dbf3f38bca87b463b664a17c1588840f86ec89cf6961fb2a89b6336b35b",
78883
79162
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
78884
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
79163
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
78885
79164
  archive: "libskshaper.a"
78886
79165
  },
78887
79166
  {
78888
79167
  name: "skia_skparagraph",
78889
79168
  nativeSha256: "29a48349fc9b75c252b22fc6ca5ade90636900f82beec58780f03fd66ab345b3",
78890
79169
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
78891
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
79170
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
78892
79171
  archive: "libskparagraph.a"
78893
79172
  },
78894
79173
  {
78895
79174
  name: "skia_skunicode_core",
78896
79175
  nativeSha256: "096e5139c4de528dbba5a9605895f4c725853e48225503bdfa9c1d70241e5f58",
78897
79176
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
78898
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
79177
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
78899
79178
  archive: "libskunicode_core.a"
78900
79179
  },
78901
79180
  {
78902
79181
  name: "skia_skunicode_libgrapheme",
78903
79182
  nativeSha256: "d1ec3c2d5ad6889eb4fbf4a6bab74f39946739501d40de903f7d8cb2181ac37d",
78904
79183
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
78905
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
79184
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
78906
79185
  archive: "libskunicode_libgrapheme.a"
78907
79186
  },
78908
79187
  {
78909
79188
  name: "skia_skottie",
78910
79189
  nativeSha256: "52ea2e046f45f51df6027d783e923864e8c4ef94a1fe4fc5971e436574d8ae57",
78911
79190
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
78912
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
79191
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
78913
79192
  archive: "libskottie.a"
78914
79193
  },
78915
79194
  {
78916
79195
  name: "skia_sksg",
78917
79196
  nativeSha256: "541a74d8f83dc411efe8eeac377486a5054fab4c7710afe406a20a27efe8f627",
78918
79197
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
78919
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
79198
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
78920
79199
  archive: "libsksg.a"
78921
79200
  },
78922
79201
  {
@@ -105669,7 +105948,7 @@ var init_nitro_superset = __esm({
105669
105948
  init_nitroContract();
105670
105949
  init_swift_standin_digest();
105671
105950
  NITRO_SUPERSET_ENTRY_NAME = "superset";
105672
- NITRO_COMPILER_DIGEST = true ? "aca2d73a3cdd76c01dbd1472a1e4d5627ce318c93718f056b05fd770039280cf" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
105951
+ NITRO_COMPILER_DIGEST = true ? "80dd47cc4f53f23aef7d6066173498f39993357bb08490b172789693f63a072f" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
105673
105952
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
105674
105953
  nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
105675
105954
  published2 = /* @__PURE__ */ new Map();