peachsim 0.1.2590 → 0.1.2591

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 (130) 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 +323 -93
  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-65FNEARV.mjs → acorn-EMX4WZ72.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-NZY4GOG5.mjs → chunk-4QHHRGO4.mjs} +1 -1
  28. package/dist-lib/esm-chunks/{chunk-SRFKOU76.mjs → chunk-7627LKJK.mjs} +1 -1
  29. package/dist-lib/esm-chunks/{chunk-BZS5SIYK.mjs → chunk-AKKHSVJ4.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-WPDY5IAD.mjs → chunk-EGKH2L6J.mjs} +1 -1
  31. package/dist-lib/esm-chunks/{chunk-JG4AANWA.mjs → chunk-ILWFGZWW.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-SLPXTLBK.mjs → chunk-J676B57D.mjs} +5 -5
  33. package/dist-lib/esm-chunks/{chunk-ADKUIQXX.mjs → chunk-JHXDM3YU.mjs} +1 -1
  34. package/dist-lib/esm-chunks/{chunk-RGC2JNCL.mjs → chunk-MC6NMYWY.mjs} +1 -1
  35. package/dist-lib/esm-chunks/{chunk-HZTK7TP5.mjs → chunk-NX23AMX4.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-2GUB5OLB.mjs → chunk-Q4NA6PUR.mjs} +3 -3
  37. package/dist-lib/esm-chunks/{chunk-EFKDUMB5.mjs → chunk-QBMFX3J2.mjs} +1 -1
  38. package/dist-lib/esm-chunks/{chunk-462CWTWI.mjs → chunk-RKQZGWX2.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-5GNGHM5B.mjs → chunk-SOAYP72T.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-YPPH6F77.mjs → chunk-TFG4LZ5T.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-OZJ66CXY.mjs → chunk-UIVXVMS5.mjs} +2 -2
  42. package/dist-lib/esm-chunks/{chunk-X2EKFONU.mjs → chunk-UYJXLDCG.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-N2II5SRJ.mjs → chunk-VD27WNCT.mjs} +4 -4
  44. package/dist-lib/esm-chunks/{chunk-V5TTEXYO.mjs → chunk-VF5WVB3D.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-WYDRQRJL.mjs → chunk-VRVXRZI4.mjs} +5 -5
  46. package/dist-lib/esm-chunks/{chunk-4VCRUQ36.mjs → chunk-VYZ5DC3M.mjs} +194 -48
  47. package/dist-lib/esm-chunks/{chunk-GBD26EBV.mjs → chunk-YR6DNV76.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-XE3VHAU2.mjs → chunk-ZL5N6ENT.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{metro-layout-parser-CRI3GMCM.mjs → metro-layout-parser-ANKZARNW.mjs} +3 -3
  50. package/dist-lib/esm-chunks/{swift-package-prebuilt-5XDZ2HZZ.mjs → swift-package-prebuilt-4N5CXBOZ.mjs} +10 -10
  51. package/dist-lib/esm-chunks/{swift-sdk-app-module-6H3G6AXD.mjs → swift-sdk-app-module-5IUSRXYA.mjs} +151 -67
  52. package/dist-lib/esm-chunks/{swift-sdk-image-WAC7GG2R.mjs → swift-sdk-image-7T2LMQS5.mjs} +14 -14
  53. package/dist-lib/esm-chunks/{swift-sdk-image-producer-B3L27QTG.mjs → swift-sdk-image-producer-7QJ3BF6E.mjs} +4 -4
  54. package/dist-lib/expo-swift-bundle.cjs +322 -92
  55. package/dist-lib/expo-swift-metadata.cjs +1 -1
  56. package/dist-lib/expo-swift-metadata.mjs +7 -7
  57. package/dist-lib/home-paths.cjs +1 -1
  58. package/dist-lib/host/bridge-host.cjs +323 -93
  59. package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
  60. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  61. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  62. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  63. package/dist-lib/host/websocket-proxy.cjs +1 -1
  64. package/dist-lib/index.cjs +1 -1
  65. package/dist-lib/kotlin-host.cjs +1 -1
  66. package/dist-lib/menu.cjs +1 -1
  67. package/dist-lib/menu.mjs +3 -3
  68. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  69. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  70. package/dist-lib/metro-production-bundle.cjs +1 -1
  71. package/dist-lib/metro-production-bundle.mjs +4 -4
  72. package/dist-lib/native-app-identity-project.cjs +2 -2
  73. package/dist-lib/native-app-identity-project.mjs +16 -16
  74. package/dist-lib/native-app-identity.cjs +1 -1
  75. package/dist-lib/native-app-identity.mjs +6 -6
  76. package/dist-lib/native-firebase-metadata.cjs +1 -1
  77. package/dist-lib/native-firebase-metadata.mjs +3 -3
  78. package/dist-lib/pdfium-raster.cjs +1 -1
  79. package/dist-lib/pdfium-raster.mjs +2 -2
  80. package/dist-lib/plist.cjs +1 -1
  81. package/dist-lib/plist.mjs +3 -3
  82. package/dist-lib/profiles.cjs +1 -1
  83. package/dist-lib/public-brand.cjs +1 -1
  84. package/dist-lib/public-origins-lib-esm.json +81 -81
  85. package/dist-lib/public-origins-lib.json +69 -69
  86. package/dist-lib/react-native-host-modules.cjs +1 -1
  87. package/dist-lib/react-native-host-modules.mjs +2 -2
  88. package/dist-lib/reap-browser.cjs +1 -1
  89. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  90. package/dist-lib/sdk.cjs +1 -1
  91. package/dist-lib/sdk.mjs +8 -8
  92. package/dist-lib/skills.cjs +323 -93
  93. package/dist-lib/swift-compile.cjs +320 -90
  94. package/dist-lib/swift-compile.mjs +10 -10
  95. package/dist-lib/swift-package.cjs +1 -1
  96. package/dist-lib/swift-package.mjs +3 -3
  97. package/dist-lib/swift-submit.cjs +1 -1
  98. package/dist-lib/swift-submit.mjs +6 -6
  99. package/dist-lib/swift-svg-raster.cjs +1 -1
  100. package/dist-lib/swift-svg-raster.mjs +2 -2
  101. package/dist-lib/swift-toolchain.cjs +1 -1
  102. package/dist-lib/swift.cjs +1 -1
  103. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  104. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  105. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  106. package/dist-lib/vendor/@xmldom/xmldom.cjs +1 -1
  107. package/dist-lib/vendor/acorn.cjs +1 -1
  108. package/dist-lib/vendor/bplist-parser.cjs +1 -1
  109. package/dist-lib/vendor/ignore.cjs +1 -1
  110. package/dist-lib/vendor/magic-string.cjs +1 -1
  111. package/dist-lib/vendor/plist.cjs +1 -1
  112. package/dist-lib/vendor/smol-toml.cjs +1 -1
  113. package/dist-lib/vendor/stream-json.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  116. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  117. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  118. package/dist-lib/vendor/sucrase.cjs +1 -1
  119. package/dist-lib/vendor/terser.cjs +1 -1
  120. package/dist-lib/vendor/valibot.cjs +1 -1
  121. package/dist-lib/vendor/ws.cjs +1 -1
  122. package/dist-lib/vendor/zod.cjs +1 -1
  123. package/dist-lib/worklet-executable.cjs +1 -1
  124. package/dist-lib/worklet-executable.mjs +3 -3
  125. package/kotlin/sdk.tar.gz +0 -0
  126. package/package.json +1 -1
  127. package/src/swift-guest-compile.ts +41 -8
  128. package/src/swift-guest-link.ts +3 -0
  129. package/src/swift-guest-source-inputs.ts +158 -30
  130. package/src/swift-sdk-app-module.ts +146 -59
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2590 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2591 | (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;
@@ -5712,13 +5712,13 @@ var init_swift_standin_digest = __esm({
5712
5712
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
5713
5713
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
5714
5714
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
5715
- STANDIN_SOURCE_DIGEST = true ? "a3bcdfe9c9957355a59c2c26155470c89a2abb30907aeeaaf1de8463aa74fc8c" : standinSourceDigest();
5715
+ STANDIN_SOURCE_DIGEST = true ? "a8f701d93728e07278999e87ca0ce8629c73067b6c4382393bfa6705a275114b" : standinSourceDigest();
5716
5716
  }
5717
5717
  });
5718
5718
 
5719
5719
  // src/expo-native-compiler-digest.ts
5720
5720
  function expoNativeCompilerDigestValue() {
5721
- return true ? "a8b60651de79588c6c5143dd2545ccd8e3b858acd992f46b35ba3de883118ac5" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
5721
+ return true ? "fac25d497603de6d36f5104099d949e505b050f78be3ed12989ae494db25b470" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
5722
5722
  }
5723
5723
  var import_node_crypto11;
5724
5724
  var init_expo_native_compiler_digest = __esm({
@@ -44506,6 +44506,7 @@ function linkGuestImages(options2) {
44506
44506
  { stdio: "pipe" }
44507
44507
  );
44508
44508
  finalTrace = linkFinal(projectionObject, callerMap ? void 0 : layoutMap);
44509
+ if (sharedSdk) break;
44509
44510
  const wasm = import_node_fs61.default.readFileSync(finalOutput);
44510
44511
  const actual = guestProjectionRegionCounts(
44511
44512
  images.length,
@@ -45259,6 +45260,85 @@ function clangProducerStamp(file) {
45259
45260
  const stat2 = (0, import_node_fs62.statSync)(file, { bigint: true });
45260
45261
  return [stat2.dev, stat2.ino, stat2.size, stat2.mtimeNs, stat2.ctimeNs].join(":");
45261
45262
  }
45263
+ function clangBinaryStamp(file) {
45264
+ const stat2 = (0, import_node_fs62.statSync)(file, { bigint: true });
45265
+ return [file, stat2.size, stat2.mtimeNs].join(":");
45266
+ }
45267
+ function clangWrapperStamp(file) {
45268
+ return (0, import_node_crypto36.createHash)("sha256").update((0, import_node_fs62.readFileSync)(file)).digest("hex");
45269
+ }
45270
+ function clangArgsNeedCwd(args) {
45271
+ const pathFlags = /* @__PURE__ */ new Set([
45272
+ "-I",
45273
+ "-isystem",
45274
+ "-iquote",
45275
+ "-F",
45276
+ "-iframework",
45277
+ "-isysroot",
45278
+ "-o",
45279
+ "-MF"
45280
+ ]);
45281
+ const includeFlags = /* @__PURE__ */ new Set(["-include", "-imacros"]);
45282
+ const valueFlags = /* @__PURE__ */ new Set([
45283
+ "-x",
45284
+ "-target",
45285
+ "-MT",
45286
+ "-MQ",
45287
+ "-D",
45288
+ "-U",
45289
+ "-mllvm",
45290
+ "-Xclang",
45291
+ "-arch",
45292
+ "-std"
45293
+ ]);
45294
+ const prefixFlags = [
45295
+ "-I",
45296
+ "-F",
45297
+ "-isystem",
45298
+ "-iquote",
45299
+ "--sysroot=",
45300
+ "-fmodule-map-file=",
45301
+ "-fmodules-cache-path="
45302
+ ];
45303
+ const isRelativePath = (value) => value.length > 0 && !value.startsWith("/") && !value.startsWith("=/") && value !== "-";
45304
+ for (let i = 1; i < args.length; i++) {
45305
+ const arg = args[i];
45306
+ if (pathFlags.has(arg)) {
45307
+ if (isRelativePath(args[++i] ?? "")) return true;
45308
+ continue;
45309
+ }
45310
+ if (includeFlags.has(arg)) {
45311
+ const value = args[++i] ?? "";
45312
+ if (isRelativePath(value) && (value.includes("/") || (0, import_node_fs62.existsSync)(value))) return true;
45313
+ continue;
45314
+ }
45315
+ if (valueFlags.has(arg)) {
45316
+ i++;
45317
+ continue;
45318
+ }
45319
+ if (arg.startsWith("@")) {
45320
+ if (isRelativePath(arg.slice(1))) return true;
45321
+ continue;
45322
+ }
45323
+ if (arg.startsWith("-")) {
45324
+ if (arg.startsWith("-include") && arg.length > 8) {
45325
+ const value = arg.slice(8);
45326
+ if (isRelativePath(value) && (value.includes("/") || (0, import_node_fs62.existsSync)(value)))
45327
+ return true;
45328
+ continue;
45329
+ }
45330
+ for (const prefix of prefixFlags) {
45331
+ if (arg.startsWith(prefix) && arg.length > prefix.length) {
45332
+ if (isRelativePath(arg.slice(prefix.length))) return true;
45333
+ break;
45334
+ }
45335
+ }
45336
+ continue;
45337
+ }
45338
+ if (isRelativePath(arg)) return true;
45339
+ }
45340
+ return false;
45341
+ }
45262
45342
  function validateClangLinkOptions(flags) {
45263
45343
  for (let index = 0; index < flags.length; index++) {
45264
45344
  const flag = flags[index];
@@ -45338,7 +45418,7 @@ function sourceGuestClangLinkOptions(options2) {
45338
45418
  let clang;
45339
45419
  let clangStamp;
45340
45420
  let wrapperStamp;
45341
- for (const [index, file] of [...wanted].entries()) {
45421
+ for (const file of wanted) {
45342
45422
  const command = commands.get(file);
45343
45423
  if (!command) throw new Error(`missing source object producer ${file}`);
45344
45424
  if (command.tool === "shell") {
@@ -45352,12 +45432,12 @@ function sourceGuestClangLinkOptions(options2) {
45352
45432
  throw new Error(`unsupported source object producer ${file}`);
45353
45433
  const key2 = (0, import_node_crypto36.createHash)("sha256").update(
45354
45434
  JSON.stringify([
45355
- "clang-link-options/v1",
45356
- process.cwd(),
45435
+ "clang-link-options/v2",
45436
+ clangArgsNeedCwd(command.args) ? process.cwd() : null,
45357
45437
  driverEnvironment,
45358
45438
  command.args,
45359
- clangStamp ??= clangProducerStamp(clang),
45360
- compiler === clang ? null : wrapperStamp ??= clangProducerStamp(compiler),
45439
+ clangStamp ??= clangBinaryStamp(clang),
45440
+ compiler === clang ? null : wrapperStamp ??= clangWrapperStamp(compiler),
45361
45441
  clangProducerStamp(file)
45362
45442
  ])
45363
45443
  ).digest("hex");
@@ -45372,31 +45452,44 @@ function sourceGuestClangLinkOptions(options2) {
45372
45452
  continue;
45373
45453
  }
45374
45454
  result.set(file, []);
45375
- const args = command.args.slice(1).filter((arg) => arg !== "-c");
45376
45455
  const targetBuild = import_node_path62.default.relative(options2.buildDirectory, file).split(import_node_path62.default.sep).findLast((part) => part !== ".build" && part.endsWith(".build"));
45377
- const outputDirectory = import_node_path62.default.join(
45378
- options2.directory,
45379
- targetBuild ?? import_node_path62.default.basename(import_node_path62.default.dirname(file))
45380
- );
45381
- (0, import_node_fs62.mkdirSync)(outputDirectory, { recursive: true });
45382
- const output = import_node_path62.default.join(outputDirectory, `clang-link-${index}.ll`);
45383
- for (const flag of ["-o", "-MF"]) {
45384
- const index2 = args.lastIndexOf(flag);
45385
- if (index2 < 0 || index2 + 1 >= args.length)
45386
- throw new Error(`missing clang ${flag} for ${file}`);
45387
- args[index2 + 1] = flag === "-o" ? output : `${output}.d`;
45456
+ const args = [];
45457
+ let sawOutput = false;
45458
+ let explicitModuleName = false;
45459
+ for (let i = 1; i < command.args.length; i++) {
45460
+ const arg = command.args[i];
45461
+ if (arg === "-c" || arg === "-MD" || arg === "-MMD" || arg === "-MP") continue;
45462
+ if (arg === "-MF" || arg === "-MT" || arg === "-MQ") {
45463
+ if (i + 1 >= command.args.length)
45464
+ throw new Error(`missing clang ${arg} for ${file}`);
45465
+ i++;
45466
+ continue;
45467
+ }
45468
+ if (arg === "-o") {
45469
+ if (i + 1 >= command.args.length) throw new Error(`missing clang -o for ${file}`);
45470
+ i++;
45471
+ args.push("-o", "-");
45472
+ sawOutput = true;
45473
+ continue;
45474
+ }
45475
+ if (arg.startsWith("-fmodule-name=")) explicitModuleName = true;
45476
+ args.push(arg);
45477
+ }
45478
+ if (!sawOutput) throw new Error(`missing clang -o for ${file}`);
45479
+ if (compiler !== clang && targetBuild && !explicitModuleName) {
45480
+ args.unshift(`-fmodule-name=${targetBuild.slice(0, -".build".length)}`);
45388
45481
  }
45389
45482
  replays.push({
45390
45483
  file,
45391
45484
  compiler: command.args[0],
45392
45485
  args: [...args, "-S", "-emit-llvm", "-Xclang", "-disable-llvm-passes"],
45393
- output,
45394
45486
  cacheFile,
45395
45487
  key: key2
45396
45488
  });
45397
45489
  }
45398
45490
  if (replays.length === 0) return result;
45399
45491
  const plan = import_node_path62.default.join(options2.directory, "clang-link-replays.json");
45492
+ const resultsPath = import_node_path62.default.join(options2.directory, "clang-link-results.json");
45400
45493
  (0, import_node_fs62.writeFileSync)(
45401
45494
  plan,
45402
45495
  JSON.stringify(replays.map(({ compiler, args }) => [compiler, ...args]))
@@ -45409,12 +45502,16 @@ function sourceGuestClangLinkOptions(options2) {
45409
45502
  ...process.env,
45410
45503
  [PEACH_FORKED_SCRIPT_ENV]: "1",
45411
45504
  PEACH_CLANG_REPLAYS: plan,
45505
+ PEACH_CLANG_RESULTS: resultsPath,
45412
45506
  PEACH_CLANG_JOBS: String(options2.jobs)
45413
45507
  }
45414
45508
  });
45509
+ const replayMetadata = JSON.parse((0, import_node_fs62.readFileSync)(resultsPath, "utf8"));
45510
+ if (!Array.isArray(replayMetadata) || replayMetadata.length !== replays.length || !replayMetadata.every((item) => typeof item === "string"))
45511
+ throw new Error("invalid clang link replay results");
45415
45512
  (0, import_node_fs62.mkdirSync)(cacheDirectory, { recursive: true });
45416
- for (const { file, output, cacheFile, key: key2 } of replays) {
45417
- const flags = clangIrLinkOptions((0, import_node_fs62.readFileSync)(output, "utf8"));
45513
+ for (const [index, { file, cacheFile, key: key2 }] of replays.entries()) {
45514
+ const flags = clangIrLinkOptions(replayMetadata[index]);
45418
45515
  validateClangLinkOptions(flags);
45419
45516
  const temporary = `${cacheFile}.${process.pid}`;
45420
45517
  (0, import_node_fs62.writeFileSync)(temporary, JSON.stringify({ key: key2, flags }));
@@ -45652,22 +45749,47 @@ var init_swift_guest_source_inputs = __esm({
45652
45749
  CLANG_TARGET_MODULE_WRAPPER = ".peach-clang";
45653
45750
  PARALLEL_REPLAY = `
45654
45751
  const { spawn } = require('node:child_process')
45655
- const commands = JSON.parse(require('node:fs').readFileSync(process.env.PEACH_CLANG_REPLAYS, 'utf8'))
45752
+ const fs = require('node:fs')
45753
+ const commands = JSON.parse(fs.readFileSync(process.env.PEACH_CLANG_REPLAYS, 'utf8'))
45754
+ const results = new Array(commands.length)
45656
45755
  let next = 0
45657
45756
  const run = () => {
45658
45757
  if (next >= commands.length) return Promise.resolve()
45659
- const [file, ...args] = commands[next++]
45758
+ const index = next++
45759
+ const [file, ...args] = commands[index]
45660
45760
  return new Promise((resolve, reject) => {
45661
- const child = spawn(file, args, { stdio: 'inherit' })
45761
+ const child = spawn(file, args, { stdio: ['ignore', 'pipe', 'inherit'] })
45762
+ const metadata = []
45763
+ let pending = ''
45764
+ child.stdout.setEncoding('utf8')
45765
+ child.stdout.on('data', (chunk) => {
45766
+ const text = pending + chunk
45767
+ let start = 0
45768
+ for (let nl = text.indexOf('\\n'); nl !== -1; nl = text.indexOf('\\n', start)) {
45769
+ if (text.charCodeAt(start) === 33) metadata.push(text.slice(start, nl))
45770
+ start = nl + 1
45771
+ }
45772
+ pending = text.slice(start)
45773
+ })
45662
45774
  child.on('error', reject)
45663
- child.on('close', (code) => (code === 0 ? resolve() : reject(new Error('clang link replay failed: ' + file))))
45775
+ child.on('close', (code) => {
45776
+ if (pending.charCodeAt(0) === 33) metadata.push(pending)
45777
+ if (code === 0) {
45778
+ results[index] = metadata.join('\\n')
45779
+ resolve()
45780
+ } else reject(new Error('clang link replay failed: ' + file))
45781
+ })
45664
45782
  }).then(run)
45665
45783
  }
45666
45784
  const jobs = Math.max(1, Number(process.env.PEACH_CLANG_JOBS) || 1)
45667
- Promise.all(Array.from({ length: jobs }, run)).catch((error) => {
45668
- console.error(error.message)
45669
- process.exit(1)
45670
- })
45785
+ Promise.all(Array.from({ length: jobs }, run))
45786
+ .then(() => {
45787
+ fs.writeFileSync(process.env.PEACH_CLANG_RESULTS, JSON.stringify(results))
45788
+ })
45789
+ .catch((error) => {
45790
+ console.error(error.message)
45791
+ process.exit(1)
45792
+ })
45671
45793
  `;
45672
45794
  }
45673
45795
  });
@@ -49500,6 +49622,7 @@ __export(swift_sdk_app_module_exports, {
49500
49622
  readSwiftSdkUsage: () => readSwiftSdkUsage,
49501
49623
  selectSwiftSdkData: () => selectSwiftSdkData,
49502
49624
  swiftAppModuleInputs: () => swiftAppModuleInputs,
49625
+ swiftSdkProjectionSpans: () => swiftSdkProjectionSpans,
49503
49626
  writeSwiftSdkAppLink: () => writeSwiftSdkAppLink
49504
49627
  });
49505
49628
  async function buildSwiftAppModule(options2) {
@@ -49615,15 +49738,18 @@ async function compileSdkForwarders(inputs2, sdk2, toolchainBin, output, project
49615
49738
  index++;
49616
49739
  }
49617
49740
  const errno = tls.errno;
49741
+ let declaredErrno = false;
49618
49742
  for (const name3 of referenced) {
49619
49743
  const offset = tls[name3];
49620
49744
  if (offset === void 0 || defined.has(name3)) continue;
49621
49745
  if (errno === void 0 || signatures.__errno_location !== ":j")
49622
49746
  throw new Error("the sdk image has no errno to find its thread block by");
49623
- if (!lines.some((line) => line.startsWith("char *__peach_errno(")))
49747
+ if (!declaredErrno) {
49748
+ declaredErrno = true;
49624
49749
  lines.push(
49625
49750
  `__attribute__((import_module("env"), import_name("__errno_location"))) char *__peach_errno(void);`
49626
49751
  );
49752
+ }
49627
49753
  lines.push(
49628
49754
  `__attribute__((weak)) _Thread_local char t${index} __asm__(${literal4(name3)});`,
49629
49755
  `__attribute__((used)) long long h${index}(void) __asm__(${literal4(SDK_TLS_HELPER + name3)});`,
@@ -49999,6 +50125,20 @@ function resolveSdkReferences(source, sdk2, forwarders) {
49999
50125
  symbols.filter((symbol2) => symbol2.kind === 0 && symbol2.name.startsWith(SDK_TLS_HELPER)).map((symbol2) => [symbol2.name.slice(SDK_TLS_HELPER.length), symbol2.index])
50000
50126
  );
50001
50127
  const segments = guestWasmDataSegments(bytes, false);
50128
+ const segmentsByOffset = [...segments].sort((a, b) => a.offset - b.offset);
50129
+ const segmentNameSet = new Set(segmentNames);
50130
+ const findSegmentByOffset = (at, size2) => {
50131
+ let lo = 0;
50132
+ let hi = segmentsByOffset.length - 1;
50133
+ while (lo <= hi) {
50134
+ const mid = lo + hi >> 1;
50135
+ const entry = segmentsByOffset[mid];
50136
+ if (at < entry.offset) hi = mid - 1;
50137
+ else if (at >= entry.offset + entry.length) lo = mid + 1;
50138
+ else return at + size2 <= entry.offset + entry.length ? entry : void 0;
50139
+ }
50140
+ return void 0;
50141
+ };
50002
50142
  const tdata = segmentNames.indexOf(".tdata");
50003
50143
  const tlsTemplate = tdata < 0 ? void 0 : passiveSegments(bytes)[tdata];
50004
50144
  const tlsStart = tlsTemplate && tlsTemplate.byteOffset - bytes.byteOffset;
@@ -50063,7 +50203,7 @@ function resolveSdkReferences(source, sdk2, forwarders) {
50063
50203
  const encoding = width.width;
50064
50204
  if (kind === "address" && target.id === 11 && encoding === "u64" && addend === 0n) {
50065
50205
  const section2 = OBJC_SECTION_BOUNDARY.exec(name3)?.[1];
50066
- if (section2 && !segmentNames.includes(section2)) {
50206
+ if (section2 && !segmentNameSet.has(section2)) {
50067
50207
  bytes.fill(0, at, at + 8);
50068
50208
  continue;
50069
50209
  }
@@ -50075,9 +50215,7 @@ function resolveSdkReferences(source, sdk2, forwarders) {
50075
50215
  if (tlsStart !== void 0 && at >= tlsStart && at < tlsStart + tlsTemplate.length)
50076
50216
  linkage.tls.push(at - tlsStart, size2, value);
50077
50217
  else {
50078
- const segment2 = segments.find(
50079
- (entry) => at >= entry.offset && at + size2 <= entry.offset + entry.length
50080
- );
50218
+ const segment2 = findSegmentByOffset(at, size2);
50081
50219
  if (!segment2)
50082
50220
  throw new Error(`Swift SDK relocation has no load address for ${name3}`);
50083
50221
  linkage.data.push(segment2.address + at - segment2.offset, size2, value);
@@ -50121,15 +50259,29 @@ function resolveSdkReferences(source, sdk2, forwarders) {
50121
50259
  }
50122
50260
  }
50123
50261
  }
50124
- const entries2 = imports2.map((entry) => {
50262
+ const encodedNameBuf = (name3) => {
50263
+ const raw2 = Buffer.from(name3, "utf8");
50264
+ const len = uleb4(raw2.length);
50265
+ const out = Buffer.allocUnsafe(len.length + raw2.length);
50266
+ for (let i = 0; i < len.length; i++) out[i] = len[i];
50267
+ raw2.copy(out, len.length);
50268
+ return out;
50269
+ };
50270
+ const importParts = [];
50271
+ let importEntryCount = imports2.length + 1;
50272
+ for (const entry of imports2) {
50125
50273
  const slot = entry.kind === 0 && entry.module === "env" ? functionSlots.get(entry.name) : void 0;
50126
- return [
50127
- ...encodedName2(slot === void 0 ? entry.module : NATIVE_SDK_IMPORT_MODULE),
50128
- ...encodedName2(slot === void 0 ? entry.name : String(slot)),
50129
- ...bytes.subarray(entry.start, entry.end)
50130
- ];
50131
- });
50132
- entries2.push([...encodedName2("env"), ...encodedName2("__stack_pointer"), 3, 126, 1]);
50274
+ importParts.push(
50275
+ encodedNameBuf(slot === void 0 ? entry.module : NATIVE_SDK_IMPORT_MODULE),
50276
+ encodedNameBuf(slot === void 0 ? entry.name : String(slot)),
50277
+ bytes.subarray(entry.start, entry.end)
50278
+ );
50279
+ }
50280
+ importParts.push(
50281
+ encodedNameBuf("env"),
50282
+ encodedNameBuf("__stack_pointer"),
50283
+ Buffer.from([3, 126, 1])
50284
+ );
50133
50285
  const tags = sections.find((section2) => section2.id === 13);
50134
50286
  if (tags) {
50135
50287
  const r = wasmReader(bytes, tags.start);
@@ -50144,15 +50296,18 @@ function resolveSdkReferences(source, sdk2, forwarders) {
50144
50296
  throw new Error(
50145
50297
  `Swift app defines an exception tag the sdk does not own: ${name3}`
50146
50298
  );
50147
- entries2.push([
50148
- ...encodedName2("env"),
50149
- ...encodedName2(name3),
50150
- 4,
50151
- ...bytes.subarray(start, r.at)
50152
- ]);
50299
+ importParts.push(
50300
+ encodedNameBuf("env"),
50301
+ encodedNameBuf(name3),
50302
+ Buffer.from([4]),
50303
+ bytes.subarray(start, r.at)
50304
+ );
50305
+ importEntryCount++;
50153
50306
  }
50154
50307
  }
50155
- const globals = [];
50308
+ const globalParts = [
50309
+ Buffer.from(uleb4(globalCount - 1 + syntheticGlobals.length))
50310
+ ];
50156
50311
  for (let index = 0; index < globalCount; index++) {
50157
50312
  const start = gr.at;
50158
50313
  const type = gr.byte();
@@ -50164,12 +50319,12 @@ function resolveSdkReferences(source, sdk2, forwarders) {
50164
50319
  if (gr.byte() !== 11) throw new Error("app global initializer has no end");
50165
50320
  if (index === 0) continue;
50166
50321
  const value = got.get(index);
50167
- if (value === void 0) globals.push(...bytes.subarray(start, gr.at));
50168
- else globals.push(type, 1, type === 126 ? 66 : 65, 0, 11);
50322
+ if (value === void 0) globalParts.push(bytes.subarray(start, gr.at));
50323
+ else globalParts.push(Buffer.from([type, 1, type === 126 ? 66 : 65, 0, 11]));
50169
50324
  }
50170
50325
  for (const type of syntheticGlobals) {
50171
50326
  const zero = type === 125 ? [67, 0, 0, 0, 0] : type === 124 ? [68, 0, 0, 0, 0, 0, 0, 0, 0] : [type === 126 ? 66 : 65, 0];
50172
- globals.push(type, 1, ...zero, 11);
50327
+ globalParts.push(Buffer.from([type, 1, ...zero, 11]));
50173
50328
  }
50174
50329
  const exportSection = sections.find((s) => s.id === 7);
50175
50330
  if (!exportSection) throw new Error("app link has no exports");
@@ -50192,24 +50347,21 @@ function resolveSdkReferences(source, sdk2, forwarders) {
50192
50347
  throw new Error("Swift app exceeds its reserved static memory range");
50193
50348
  }
50194
50349
  }
50350
+ const exportParts = [
50351
+ Buffer.from(uleb4(exportCount + 1 + got.size)),
50352
+ bytes.subarray(originalExportsStart, exportSection.end)
50353
+ ];
50354
+ for (const [index, value] of got) {
50355
+ exportParts.push(
50356
+ encodedNameBuf(`${NATIVE_SDK_GLOBAL_PREFIX}${value}.${index}`),
50357
+ Buffer.from([3, ...uleb4(index)])
50358
+ );
50359
+ }
50360
+ exportParts.push(encodedNameBuf("__indirect_function_table"), Buffer.from([1, 0]));
50195
50361
  const replaced = /* @__PURE__ */ new Map([
50196
- [2, [...uleb4(entries2.length), ...entries2.flat()]],
50197
- [6, [...uleb4(globalCount - 1 + syntheticGlobals.length), ...globals]],
50198
- [
50199
- 7,
50200
- [
50201
- ...uleb4(exportCount + 1 + got.size),
50202
- ...bytes.subarray(originalExportsStart, exportSection.end),
50203
- ...[...got].flatMap(([index, value]) => [
50204
- ...encodedName2(`${NATIVE_SDK_GLOBAL_PREFIX}${value}.${index}`),
50205
- 3,
50206
- ...uleb4(index)
50207
- ]),
50208
- ...encodedName2("__indirect_function_table"),
50209
- 1,
50210
- 0
50211
- ]
50212
- ]
50362
+ [2, Buffer.concat([Buffer.from(uleb4(importEntryCount)), ...importParts])],
50363
+ [6, Buffer.concat(globalParts)],
50364
+ [7, Buffer.concat(exportParts)]
50213
50365
  ]);
50214
50366
  const rebuiltCode = expanded.length ? expandSdkRelocations(
50215
50367
  bytes,
@@ -50221,9 +50373,13 @@ function resolveSdkReferences(source, sdk2, forwarders) {
50221
50373
  if (s === tags || s.name === "linking" || s.name?.startsWith("reloc.") || s.name === ".swift1_autolink_entries")
50222
50374
  continue;
50223
50375
  const payload = replaced.get(s.id);
50224
- parts2.push(
50225
- s.id === 10 && rebuiltCode ? rebuiltCode : payload ? Uint8Array.from([s.id, ...uleb4(payload.length), ...payload]) : bytes.subarray(s.offset, s.end)
50226
- );
50376
+ if (s.id === 10 && rebuiltCode) {
50377
+ parts2.push(rebuiltCode);
50378
+ } else if (payload) {
50379
+ parts2.push(Buffer.from([s.id, ...uleb4(payload.length)]), payload);
50380
+ } else {
50381
+ parts2.push(bytes.subarray(s.offset, s.end));
50382
+ }
50227
50383
  }
50228
50384
  return { bytes: Buffer.concat(parts2), linkage };
50229
50385
  }
@@ -50321,6 +50477,49 @@ function readSwiftSdkUsage(mapFile, linkedFile, sdkObjects) {
50321
50477
  constructors: [...new Set(constructorKeys(map2, (0, import_node_fs71.readFileSync)(linkedFile)))]
50322
50478
  };
50323
50479
  }
50480
+ function swiftSdkProjectionSpans(sdk2, imageFor) {
50481
+ const { manifest, block: block2 } = readSwiftSdkManifest(sdk2);
50482
+ const guestObjects = manifest.guestObjects;
50483
+ if (!guestObjects) return [];
50484
+ const { strings: strings7 } = manifest;
50485
+ const fields = block2("pieces");
50486
+ const ordered = [];
50487
+ for (let i = 0; i < fields.length; i += SWIFT_SDK_PIECE_FIELDS) {
50488
+ const size2 = fields[i + 1];
50489
+ if (!size2) continue;
50490
+ ordered.push({
50491
+ address: fields[i],
50492
+ size: size2,
50493
+ object: strings7[fields[i + 3]]
50494
+ });
50495
+ }
50496
+ ordered.sort((a, b) => a.address - b.address);
50497
+ const imageOf = (object8) => {
50498
+ const product = guestObjects[object8]?.product;
50499
+ return product === void 0 ? void 0 : imageFor(object8, product);
50500
+ };
50501
+ const spans = [];
50502
+ for (let index = 0; index < ordered.length; index++) {
50503
+ const { object: object8, address, size: size2 } = ordered[index];
50504
+ const image = imageOf(object8);
50505
+ if (image === void 0) continue;
50506
+ let next = index + 1;
50507
+ while (next < ordered.length && ordered[next].address < address + size2) next++;
50508
+ const end = ordered[next]?.address ?? address + size2;
50509
+ spans.push({ image, space: "linear-memory", address, length: end - address });
50510
+ }
50511
+ const functionKeys = block2("functions");
50512
+ const slots = block2("functionSlots");
50513
+ for (let index = 0; index < functionKeys.length; index++) {
50514
+ const slot = slots[index];
50515
+ if (!slot) continue;
50516
+ const key2 = strings7[functionKeys[index]];
50517
+ const image = imageOf(key2.slice(0, key2.indexOf(":")));
50518
+ if (image !== void 0)
50519
+ spans.push({ image, space: "function-table", address: slot, length: 1 });
50520
+ }
50521
+ return spans;
50522
+ }
50324
50523
  function selectSwiftSdkData(sdk2, usage, linkage, projection) {
50325
50524
  const { manifest, block: block2, segments } = readSwiftSdkManifest(sdk2);
50326
50525
  const { strings: strings7 } = manifest;
@@ -50343,15 +50542,24 @@ function selectSwiftSdkData(sdk2, usage, linkage, projection) {
50343
50542
  });
50344
50543
  }
50345
50544
  const memory = new Map(segments.map((segment2) => [segment2.name, segment2]));
50346
- const read = (address2, size2) => {
50545
+ let lastSegment = segments[0];
50546
+ const segmentAt = (address2, size2) => {
50547
+ if (lastSegment && address2 >= lastSegment.address && address2 + size2 <= lastSegment.address + lastSegment.data.length)
50548
+ return lastSegment;
50347
50549
  for (const segment2 of segments)
50348
- if (address2 >= segment2.address && address2 + size2 <= segment2.address + segment2.data.length)
50349
- return segment2.data.subarray(
50350
- address2 - segment2.address,
50351
- address2 - segment2.address + size2
50352
- );
50550
+ if (address2 >= segment2.address && address2 + size2 <= segment2.address + segment2.data.length) {
50551
+ lastSegment = segment2;
50552
+ return segment2;
50553
+ }
50353
50554
  return void 0;
50354
50555
  };
50556
+ const read = (address2, size2) => {
50557
+ const segment2 = segmentAt(address2, size2);
50558
+ return segment2?.data.subarray(
50559
+ address2 - segment2.address,
50560
+ address2 - segment2.address + size2
50561
+ );
50562
+ };
50355
50563
  const appSectionsByObject = /* @__PURE__ */ new Map();
50356
50564
  const appSections = /* @__PURE__ */ new Set();
50357
50565
  const appSymbols = /* @__PURE__ */ new Set();
@@ -50457,9 +50665,7 @@ function selectSwiftSdkData(sdk2, usage, linkage, projection) {
50457
50665
  const classAddress = Number(
50458
50666
  new DataView(field.buffer, field.byteOffset, 8).getBigUint64(0, true)
50459
50667
  );
50460
- const segment2 = segments.find(
50461
- ({ address: address3, data }) => classAddress >= address3 && classAddress < address3 + data.length
50462
- );
50668
+ const segment2 = segmentAt(classAddress, 1);
50463
50669
  if (!segment2) continue;
50464
50670
  const start = classAddress - segment2.address;
50465
50671
  const end = segment2.data.indexOf(0, start);
@@ -50667,7 +50873,7 @@ function selectSwiftSdkData(sdk2, usage, linkage, projection) {
50667
50873
  if (current2)
50668
50874
  runs.push({
50669
50875
  address: current2.address,
50670
- bytes: Uint8Array.from(Buffer.concat(current2.parts))
50876
+ bytes: Buffer.concat(current2.parts)
50671
50877
  });
50672
50878
  };
50673
50879
  for (const piece of loaded4) {
@@ -51085,13 +51291,19 @@ async function compileGuestLink(options2) {
51085
51291
  const selectedSource = source.artifacts.filter(
51086
51292
  (artifact) => selected.has(import_node_path72.default.resolve(rewritten.get(artifact.path) ?? artifact.path))
51087
51293
  );
51294
+ const admittedCores = Number(process.env.TM_EXEC_CPU_CORES);
51295
+ const linuxMemory = process.env.TM_EXEC_ADMITTED === "1" && process.env.LINUX_BUILD_SCOPE ? Number(process.env.TM_EXEC_LINUX_MEMORY_MAX) : NaN;
51296
+ const clangReplayJobs = Number.isInteger(admittedCores) && admittedCores > 0 ? Math.min(
51297
+ admittedCores,
51298
+ Number.isSafeInteger(linuxMemory) && linuxMemory > 0 ? Math.max(options2.jobs, Math.floor(linuxMemory / (512 * 1024 ** 2))) : Math.max(options2.jobs, admittedCores)
51299
+ ) : options2.jobs;
51088
51300
  const clangOptions2 = sourceGuestClangLinkOptions({
51089
51301
  buildDirectory: options2.buildDirectory,
51090
51302
  directory: directory2,
51091
51303
  toolchainBin: options2.toolchainBin,
51092
51304
  swiftCompiler: options2.swiftCompiler,
51093
51305
  objects: selectedSource.map((artifact) => artifact.path),
51094
- jobs: options2.jobs
51306
+ jobs: clangReplayJobs
51095
51307
  });
51096
51308
  const links = sourceGuestRuntimeLinks({
51097
51309
  toolchainBin: options2.toolchainBin,
@@ -51273,7 +51485,8 @@ async function compileGuestLink(options2) {
51273
51485
  createSwiftSdkBinding: createSwiftSdkBinding2,
51274
51486
  finishSwiftAppModule: finishSwiftAppModule2,
51275
51487
  linkSwiftAppModule: linkSwiftAppModule2,
51276
- readSwiftSdkUsage: readSwiftSdkUsage2
51488
+ readSwiftSdkUsage: readSwiftSdkUsage2,
51489
+ swiftSdkProjectionSpans: swiftSdkProjectionSpans2
51277
51490
  } = await Promise.resolve().then(() => (init_swift_sdk_app_module(), swift_sdk_app_module_exports));
51278
51491
  const project2 = options2.project;
51279
51492
  const work = project2 ? (0, import_node_fs72.mkdtempSync)(import_node_path72.default.join(directory2, "app-module-")) : import_node_path72.default.join(directory2, "app-module");
@@ -51295,7 +51508,28 @@ async function compileGuestLink(options2) {
51295
51508
  }
51296
51509
  const usage = readSwiftSdkUsage2(result.mapPath, options2.output, sdkObjectKeys);
51297
51510
  const linkedModule = import_node_path72.default.join(work, "app.wasm");
51511
+ const sdkSpans = swiftSdkProjectionSpans2(
51512
+ sdk2,
51513
+ (object8, product) => sdkObjectImages.get(object8) ?? sdkProductImages.get(product)
51514
+ );
51298
51515
  let storage = reserved2;
51516
+ if (sdkSpans.length > 0) {
51517
+ const sdkCounts = guestProjectionRegionCounts(storage.images.length, sdkSpans);
51518
+ storage = reserveGuestProjectionStorage(
51519
+ storage.images,
51520
+ storage.capacities.map((capacity, index) => ({
51521
+ ...capacity,
51522
+ regions: capacity.regions + sdkCounts[index] + 16
51523
+ }))
51524
+ );
51525
+ const projectionSource = import_node_path72.default.join(work, "projection.c");
51526
+ (0, import_node_fs72.writeFileSync)(projectionSource, storage.source);
51527
+ (0, import_node_child_process36.execFileSync)(
51528
+ import_node_path72.default.join(options2.toolchainBin, "clang"),
51529
+ [...clangOptions, "-c", projectionSource, "-o", projectionObject],
51530
+ { stdio: "pipe" }
51531
+ );
51532
+ }
51299
51533
  for (; ; ) {
51300
51534
  const link = await linkSwiftAppModule2({
51301
51535
  objects: [...owners.keys()],
@@ -51333,11 +51567,7 @@ async function compileGuestLink(options2) {
51333
51567
  bindingRows.set((address - values.address) / 8, value);
51334
51568
  } else data.push(address, size2, value);
51335
51569
  }
51336
- const sdkSpans = [];
51337
- const binding = createSwiftSdkBinding2({ ...link.linkage, data }, sdk2, usage, {
51338
- imageFor: (object8, product) => sdkObjectImages.get(object8) ?? sdkProductImages.get(product),
51339
- spans: sdkSpans
51340
- });
51570
+ const binding = createSwiftSdkBinding2({ ...link.linkage, data }, sdk2, usage);
51341
51571
  const linked = (0, import_node_fs72.readFileSync)(
51342
51572
  project2 ? projectOutputFile(work, linkedModule, project2) : linkedModule
51343
51573
  );
@@ -58871,7 +59101,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
58871
59101
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
58872
59102
  MULTI_MANIFEST_VERSION = 76;
58873
59103
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
58874
- compilerSourceDigest = true ? "7b91fa4405159335b5484c82700e001e4c27abf15621b724ea8af4edea693f66" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
59104
+ compilerSourceDigest = true ? "d4cf22b53d08266bf9bd0238bffe899805f62daeb3d628664ee351830e496cda" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
58875
59105
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
58876
59106
  MODULE_MAP_RESPONSE_FILE_RUN = 16;
58877
59107
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
@@ -119581,7 +119811,7 @@ var init_nitro_superset = __esm({
119581
119811
  init_nitroContract();
119582
119812
  init_swift_standin_digest();
119583
119813
  NITRO_SUPERSET_ENTRY_NAME = "superset";
119584
- NITRO_COMPILER_DIGEST = true ? "ffe0ab1580ebcb5a184764bfb3b3650342c8644057a95423913e7078c208f318" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
119814
+ NITRO_COMPILER_DIGEST = true ? "0ce63814b4a72a014a0388c3792cede09d8d1cae4f69a18e904584487588222d" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
119585
119815
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
119586
119816
  nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
119587
119817
  published3 = /* @__PURE__ */ new Map();