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;
@@ -35538,13 +35538,13 @@ var init_swift_standin_digest = __esm({
35538
35538
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
35539
35539
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
35540
35540
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
35541
- STANDIN_SOURCE_DIGEST = true ? "a3bcdfe9c9957355a59c2c26155470c89a2abb30907aeeaaf1de8463aa74fc8c" : standinSourceDigest();
35541
+ STANDIN_SOURCE_DIGEST = true ? "a8f701d93728e07278999e87ca0ce8629c73067b6c4382393bfa6705a275114b" : standinSourceDigest();
35542
35542
  }
35543
35543
  });
35544
35544
 
35545
35545
  // src/expo-native-compiler-digest.ts
35546
35546
  function expoNativeCompilerDigestValue() {
35547
- return true ? "a8b60651de79588c6c5143dd2545ccd8e3b858acd992f46b35ba3de883118ac5" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
35547
+ return true ? "fac25d497603de6d36f5104099d949e505b050f78be3ed12989ae494db25b470" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
35548
35548
  }
35549
35549
  var import_node_crypto12;
35550
35550
  var init_expo_native_compiler_digest = __esm({
@@ -67111,6 +67111,7 @@ function linkGuestImages(options2) {
67111
67111
  { stdio: "pipe" }
67112
67112
  );
67113
67113
  finalTrace = linkFinal(projectionObject, callerMap ? void 0 : layoutMap);
67114
+ if (sharedSdk) break;
67114
67115
  const wasm = import_node_fs63.default.readFileSync(finalOutput);
67115
67116
  const actual = guestProjectionRegionCounts(
67116
67117
  images.length,
@@ -67864,6 +67865,85 @@ function clangProducerStamp(file) {
67864
67865
  const stat2 = (0, import_node_fs64.statSync)(file, { bigint: true });
67865
67866
  return [stat2.dev, stat2.ino, stat2.size, stat2.mtimeNs, stat2.ctimeNs].join(":");
67866
67867
  }
67868
+ function clangBinaryStamp(file) {
67869
+ const stat2 = (0, import_node_fs64.statSync)(file, { bigint: true });
67870
+ return [file, stat2.size, stat2.mtimeNs].join(":");
67871
+ }
67872
+ function clangWrapperStamp(file) {
67873
+ return (0, import_node_crypto37.createHash)("sha256").update((0, import_node_fs64.readFileSync)(file)).digest("hex");
67874
+ }
67875
+ function clangArgsNeedCwd(args) {
67876
+ const pathFlags = /* @__PURE__ */ new Set([
67877
+ "-I",
67878
+ "-isystem",
67879
+ "-iquote",
67880
+ "-F",
67881
+ "-iframework",
67882
+ "-isysroot",
67883
+ "-o",
67884
+ "-MF"
67885
+ ]);
67886
+ const includeFlags = /* @__PURE__ */ new Set(["-include", "-imacros"]);
67887
+ const valueFlags = /* @__PURE__ */ new Set([
67888
+ "-x",
67889
+ "-target",
67890
+ "-MT",
67891
+ "-MQ",
67892
+ "-D",
67893
+ "-U",
67894
+ "-mllvm",
67895
+ "-Xclang",
67896
+ "-arch",
67897
+ "-std"
67898
+ ]);
67899
+ const prefixFlags = [
67900
+ "-I",
67901
+ "-F",
67902
+ "-isystem",
67903
+ "-iquote",
67904
+ "--sysroot=",
67905
+ "-fmodule-map-file=",
67906
+ "-fmodules-cache-path="
67907
+ ];
67908
+ const isRelativePath = (value) => value.length > 0 && !value.startsWith("/") && !value.startsWith("=/") && value !== "-";
67909
+ for (let i = 1; i < args.length; i++) {
67910
+ const arg = args[i];
67911
+ if (pathFlags.has(arg)) {
67912
+ if (isRelativePath(args[++i] ?? "")) return true;
67913
+ continue;
67914
+ }
67915
+ if (includeFlags.has(arg)) {
67916
+ const value = args[++i] ?? "";
67917
+ if (isRelativePath(value) && (value.includes("/") || (0, import_node_fs64.existsSync)(value))) return true;
67918
+ continue;
67919
+ }
67920
+ if (valueFlags.has(arg)) {
67921
+ i++;
67922
+ continue;
67923
+ }
67924
+ if (arg.startsWith("@")) {
67925
+ if (isRelativePath(arg.slice(1))) return true;
67926
+ continue;
67927
+ }
67928
+ if (arg.startsWith("-")) {
67929
+ if (arg.startsWith("-include") && arg.length > 8) {
67930
+ const value = arg.slice(8);
67931
+ if (isRelativePath(value) && (value.includes("/") || (0, import_node_fs64.existsSync)(value)))
67932
+ return true;
67933
+ continue;
67934
+ }
67935
+ for (const prefix of prefixFlags) {
67936
+ if (arg.startsWith(prefix) && arg.length > prefix.length) {
67937
+ if (isRelativePath(arg.slice(prefix.length))) return true;
67938
+ break;
67939
+ }
67940
+ }
67941
+ continue;
67942
+ }
67943
+ if (isRelativePath(arg)) return true;
67944
+ }
67945
+ return false;
67946
+ }
67867
67947
  function validateClangLinkOptions(flags) {
67868
67948
  for (let index = 0; index < flags.length; index++) {
67869
67949
  const flag = flags[index];
@@ -67943,7 +68023,7 @@ function sourceGuestClangLinkOptions(options2) {
67943
68023
  let clang;
67944
68024
  let clangStamp;
67945
68025
  let wrapperStamp;
67946
- for (const [index, file] of [...wanted].entries()) {
68026
+ for (const file of wanted) {
67947
68027
  const command = commands.get(file);
67948
68028
  if (!command) throw new Error(`missing source object producer ${file}`);
67949
68029
  if (command.tool === "shell") {
@@ -67957,12 +68037,12 @@ function sourceGuestClangLinkOptions(options2) {
67957
68037
  throw new Error(`unsupported source object producer ${file}`);
67958
68038
  const key2 = (0, import_node_crypto37.createHash)("sha256").update(
67959
68039
  JSON.stringify([
67960
- "clang-link-options/v1",
67961
- process.cwd(),
68040
+ "clang-link-options/v2",
68041
+ clangArgsNeedCwd(command.args) ? process.cwd() : null,
67962
68042
  driverEnvironment,
67963
68043
  command.args,
67964
- clangStamp ??= clangProducerStamp(clang),
67965
- compiler === clang ? null : wrapperStamp ??= clangProducerStamp(compiler),
68044
+ clangStamp ??= clangBinaryStamp(clang),
68045
+ compiler === clang ? null : wrapperStamp ??= clangWrapperStamp(compiler),
67966
68046
  clangProducerStamp(file)
67967
68047
  ])
67968
68048
  ).digest("hex");
@@ -67977,31 +68057,44 @@ function sourceGuestClangLinkOptions(options2) {
67977
68057
  continue;
67978
68058
  }
67979
68059
  result.set(file, []);
67980
- const args = command.args.slice(1).filter((arg) => arg !== "-c");
67981
68060
  const targetBuild = import_node_path62.default.relative(options2.buildDirectory, file).split(import_node_path62.default.sep).findLast((part) => part !== ".build" && part.endsWith(".build"));
67982
- const outputDirectory = import_node_path62.default.join(
67983
- options2.directory,
67984
- targetBuild ?? import_node_path62.default.basename(import_node_path62.default.dirname(file))
67985
- );
67986
- (0, import_node_fs64.mkdirSync)(outputDirectory, { recursive: true });
67987
- const output = import_node_path62.default.join(outputDirectory, `clang-link-${index}.ll`);
67988
- for (const flag of ["-o", "-MF"]) {
67989
- const index2 = args.lastIndexOf(flag);
67990
- if (index2 < 0 || index2 + 1 >= args.length)
67991
- throw new Error(`missing clang ${flag} for ${file}`);
67992
- args[index2 + 1] = flag === "-o" ? output : `${output}.d`;
68061
+ const args = [];
68062
+ let sawOutput = false;
68063
+ let explicitModuleName = false;
68064
+ for (let i = 1; i < command.args.length; i++) {
68065
+ const arg = command.args[i];
68066
+ if (arg === "-c" || arg === "-MD" || arg === "-MMD" || arg === "-MP") continue;
68067
+ if (arg === "-MF" || arg === "-MT" || arg === "-MQ") {
68068
+ if (i + 1 >= command.args.length)
68069
+ throw new Error(`missing clang ${arg} for ${file}`);
68070
+ i++;
68071
+ continue;
68072
+ }
68073
+ if (arg === "-o") {
68074
+ if (i + 1 >= command.args.length) throw new Error(`missing clang -o for ${file}`);
68075
+ i++;
68076
+ args.push("-o", "-");
68077
+ sawOutput = true;
68078
+ continue;
68079
+ }
68080
+ if (arg.startsWith("-fmodule-name=")) explicitModuleName = true;
68081
+ args.push(arg);
68082
+ }
68083
+ if (!sawOutput) throw new Error(`missing clang -o for ${file}`);
68084
+ if (compiler !== clang && targetBuild && !explicitModuleName) {
68085
+ args.unshift(`-fmodule-name=${targetBuild.slice(0, -".build".length)}`);
67993
68086
  }
67994
68087
  replays.push({
67995
68088
  file,
67996
68089
  compiler: command.args[0],
67997
68090
  args: [...args, "-S", "-emit-llvm", "-Xclang", "-disable-llvm-passes"],
67998
- output,
67999
68091
  cacheFile,
68000
68092
  key: key2
68001
68093
  });
68002
68094
  }
68003
68095
  if (replays.length === 0) return result;
68004
68096
  const plan = import_node_path62.default.join(options2.directory, "clang-link-replays.json");
68097
+ const resultsPath = import_node_path62.default.join(options2.directory, "clang-link-results.json");
68005
68098
  (0, import_node_fs64.writeFileSync)(
68006
68099
  plan,
68007
68100
  JSON.stringify(replays.map(({ compiler, args }) => [compiler, ...args]))
@@ -68014,12 +68107,16 @@ function sourceGuestClangLinkOptions(options2) {
68014
68107
  ...process.env,
68015
68108
  [PEACH_FORKED_SCRIPT_ENV]: "1",
68016
68109
  PEACH_CLANG_REPLAYS: plan,
68110
+ PEACH_CLANG_RESULTS: resultsPath,
68017
68111
  PEACH_CLANG_JOBS: String(options2.jobs)
68018
68112
  }
68019
68113
  });
68114
+ const replayMetadata = JSON.parse((0, import_node_fs64.readFileSync)(resultsPath, "utf8"));
68115
+ if (!Array.isArray(replayMetadata) || replayMetadata.length !== replays.length || !replayMetadata.every((item) => typeof item === "string"))
68116
+ throw new Error("invalid clang link replay results");
68020
68117
  (0, import_node_fs64.mkdirSync)(cacheDirectory, { recursive: true });
68021
- for (const { file, output, cacheFile, key: key2 } of replays) {
68022
- const flags = clangIrLinkOptions((0, import_node_fs64.readFileSync)(output, "utf8"));
68118
+ for (const [index, { file, cacheFile, key: key2 }] of replays.entries()) {
68119
+ const flags = clangIrLinkOptions(replayMetadata[index]);
68023
68120
  validateClangLinkOptions(flags);
68024
68121
  const temporary = `${cacheFile}.${process.pid}`;
68025
68122
  (0, import_node_fs64.writeFileSync)(temporary, JSON.stringify({ key: key2, flags }));
@@ -68257,22 +68354,47 @@ var init_swift_guest_source_inputs = __esm({
68257
68354
  CLANG_TARGET_MODULE_WRAPPER = ".peach-clang";
68258
68355
  PARALLEL_REPLAY = `
68259
68356
  const { spawn } = require('node:child_process')
68260
- const commands = JSON.parse(require('node:fs').readFileSync(process.env.PEACH_CLANG_REPLAYS, 'utf8'))
68357
+ const fs = require('node:fs')
68358
+ const commands = JSON.parse(fs.readFileSync(process.env.PEACH_CLANG_REPLAYS, 'utf8'))
68359
+ const results = new Array(commands.length)
68261
68360
  let next = 0
68262
68361
  const run = () => {
68263
68362
  if (next >= commands.length) return Promise.resolve()
68264
- const [file, ...args] = commands[next++]
68363
+ const index = next++
68364
+ const [file, ...args] = commands[index]
68265
68365
  return new Promise((resolve, reject) => {
68266
- const child = spawn(file, args, { stdio: 'inherit' })
68366
+ const child = spawn(file, args, { stdio: ['ignore', 'pipe', 'inherit'] })
68367
+ const metadata = []
68368
+ let pending = ''
68369
+ child.stdout.setEncoding('utf8')
68370
+ child.stdout.on('data', (chunk) => {
68371
+ const text = pending + chunk
68372
+ let start = 0
68373
+ for (let nl = text.indexOf('\\n'); nl !== -1; nl = text.indexOf('\\n', start)) {
68374
+ if (text.charCodeAt(start) === 33) metadata.push(text.slice(start, nl))
68375
+ start = nl + 1
68376
+ }
68377
+ pending = text.slice(start)
68378
+ })
68267
68379
  child.on('error', reject)
68268
- child.on('close', (code) => (code === 0 ? resolve() : reject(new Error('clang link replay failed: ' + file))))
68380
+ child.on('close', (code) => {
68381
+ if (pending.charCodeAt(0) === 33) metadata.push(pending)
68382
+ if (code === 0) {
68383
+ results[index] = metadata.join('\\n')
68384
+ resolve()
68385
+ } else reject(new Error('clang link replay failed: ' + file))
68386
+ })
68269
68387
  }).then(run)
68270
68388
  }
68271
68389
  const jobs = Math.max(1, Number(process.env.PEACH_CLANG_JOBS) || 1)
68272
- Promise.all(Array.from({ length: jobs }, run)).catch((error) => {
68273
- console.error(error.message)
68274
- process.exit(1)
68275
- })
68390
+ Promise.all(Array.from({ length: jobs }, run))
68391
+ .then(() => {
68392
+ fs.writeFileSync(process.env.PEACH_CLANG_RESULTS, JSON.stringify(results))
68393
+ })
68394
+ .catch((error) => {
68395
+ console.error(error.message)
68396
+ process.exit(1)
68397
+ })
68276
68398
  `;
68277
68399
  }
68278
68400
  });
@@ -72105,6 +72227,7 @@ __export(swift_sdk_app_module_exports, {
72105
72227
  readSwiftSdkUsage: () => readSwiftSdkUsage,
72106
72228
  selectSwiftSdkData: () => selectSwiftSdkData,
72107
72229
  swiftAppModuleInputs: () => swiftAppModuleInputs,
72230
+ swiftSdkProjectionSpans: () => swiftSdkProjectionSpans,
72108
72231
  writeSwiftSdkAppLink: () => writeSwiftSdkAppLink
72109
72232
  });
72110
72233
  async function buildSwiftAppModule(options2) {
@@ -72220,15 +72343,18 @@ async function compileSdkForwarders(inputs2, sdk2, toolchainBin, output, project
72220
72343
  index++;
72221
72344
  }
72222
72345
  const errno = tls.errno;
72346
+ let declaredErrno = false;
72223
72347
  for (const name3 of referenced) {
72224
72348
  const offset = tls[name3];
72225
72349
  if (offset === void 0 || defined.has(name3)) continue;
72226
72350
  if (errno === void 0 || signatures.__errno_location !== ":j")
72227
72351
  throw new Error("the sdk image has no errno to find its thread block by");
72228
- if (!lines.some((line) => line.startsWith("char *__peach_errno(")))
72352
+ if (!declaredErrno) {
72353
+ declaredErrno = true;
72229
72354
  lines.push(
72230
72355
  `__attribute__((import_module("env"), import_name("__errno_location"))) char *__peach_errno(void);`
72231
72356
  );
72357
+ }
72232
72358
  lines.push(
72233
72359
  `__attribute__((weak)) _Thread_local char t${index} __asm__(${literal6(name3)});`,
72234
72360
  `__attribute__((used)) long long h${index}(void) __asm__(${literal6(SDK_TLS_HELPER + name3)});`,
@@ -72604,6 +72730,20 @@ function resolveSdkReferences(source, sdk2, forwarders) {
72604
72730
  symbols.filter((symbol2) => symbol2.kind === 0 && symbol2.name.startsWith(SDK_TLS_HELPER)).map((symbol2) => [symbol2.name.slice(SDK_TLS_HELPER.length), symbol2.index])
72605
72731
  );
72606
72732
  const segments = guestWasmDataSegments(bytes, false);
72733
+ const segmentsByOffset = [...segments].sort((a, b) => a.offset - b.offset);
72734
+ const segmentNameSet = new Set(segmentNames);
72735
+ const findSegmentByOffset = (at, size2) => {
72736
+ let lo = 0;
72737
+ let hi = segmentsByOffset.length - 1;
72738
+ while (lo <= hi) {
72739
+ const mid = lo + hi >> 1;
72740
+ const entry = segmentsByOffset[mid];
72741
+ if (at < entry.offset) hi = mid - 1;
72742
+ else if (at >= entry.offset + entry.length) lo = mid + 1;
72743
+ else return at + size2 <= entry.offset + entry.length ? entry : void 0;
72744
+ }
72745
+ return void 0;
72746
+ };
72607
72747
  const tdata = segmentNames.indexOf(".tdata");
72608
72748
  const tlsTemplate = tdata < 0 ? void 0 : passiveSegments(bytes)[tdata];
72609
72749
  const tlsStart = tlsTemplate && tlsTemplate.byteOffset - bytes.byteOffset;
@@ -72668,7 +72808,7 @@ function resolveSdkReferences(source, sdk2, forwarders) {
72668
72808
  const encoding = width.width;
72669
72809
  if (kind === "address" && target.id === 11 && encoding === "u64" && addend === 0n) {
72670
72810
  const section2 = OBJC_SECTION_BOUNDARY.exec(name3)?.[1];
72671
- if (section2 && !segmentNames.includes(section2)) {
72811
+ if (section2 && !segmentNameSet.has(section2)) {
72672
72812
  bytes.fill(0, at, at + 8);
72673
72813
  continue;
72674
72814
  }
@@ -72680,9 +72820,7 @@ function resolveSdkReferences(source, sdk2, forwarders) {
72680
72820
  if (tlsStart !== void 0 && at >= tlsStart && at < tlsStart + tlsTemplate.length)
72681
72821
  linkage.tls.push(at - tlsStart, size2, value);
72682
72822
  else {
72683
- const segment2 = segments.find(
72684
- (entry) => at >= entry.offset && at + size2 <= entry.offset + entry.length
72685
- );
72823
+ const segment2 = findSegmentByOffset(at, size2);
72686
72824
  if (!segment2)
72687
72825
  throw new Error(`Swift SDK relocation has no load address for ${name3}`);
72688
72826
  linkage.data.push(segment2.address + at - segment2.offset, size2, value);
@@ -72726,15 +72864,29 @@ function resolveSdkReferences(source, sdk2, forwarders) {
72726
72864
  }
72727
72865
  }
72728
72866
  }
72729
- const entries2 = imports2.map((entry) => {
72867
+ const encodedNameBuf = (name3) => {
72868
+ const raw2 = Buffer.from(name3, "utf8");
72869
+ const len = uleb4(raw2.length);
72870
+ const out = Buffer.allocUnsafe(len.length + raw2.length);
72871
+ for (let i = 0; i < len.length; i++) out[i] = len[i];
72872
+ raw2.copy(out, len.length);
72873
+ return out;
72874
+ };
72875
+ const importParts = [];
72876
+ let importEntryCount = imports2.length + 1;
72877
+ for (const entry of imports2) {
72730
72878
  const slot = entry.kind === 0 && entry.module === "env" ? functionSlots.get(entry.name) : void 0;
72731
- return [
72732
- ...encodedName2(slot === void 0 ? entry.module : NATIVE_SDK_IMPORT_MODULE),
72733
- ...encodedName2(slot === void 0 ? entry.name : String(slot)),
72734
- ...bytes.subarray(entry.start, entry.end)
72735
- ];
72736
- });
72737
- entries2.push([...encodedName2("env"), ...encodedName2("__stack_pointer"), 3, 126, 1]);
72879
+ importParts.push(
72880
+ encodedNameBuf(slot === void 0 ? entry.module : NATIVE_SDK_IMPORT_MODULE),
72881
+ encodedNameBuf(slot === void 0 ? entry.name : String(slot)),
72882
+ bytes.subarray(entry.start, entry.end)
72883
+ );
72884
+ }
72885
+ importParts.push(
72886
+ encodedNameBuf("env"),
72887
+ encodedNameBuf("__stack_pointer"),
72888
+ Buffer.from([3, 126, 1])
72889
+ );
72738
72890
  const tags = sections.find((section2) => section2.id === 13);
72739
72891
  if (tags) {
72740
72892
  const r = wasmReader(bytes, tags.start);
@@ -72749,15 +72901,18 @@ function resolveSdkReferences(source, sdk2, forwarders) {
72749
72901
  throw new Error(
72750
72902
  `Swift app defines an exception tag the sdk does not own: ${name3}`
72751
72903
  );
72752
- entries2.push([
72753
- ...encodedName2("env"),
72754
- ...encodedName2(name3),
72755
- 4,
72756
- ...bytes.subarray(start, r.at)
72757
- ]);
72904
+ importParts.push(
72905
+ encodedNameBuf("env"),
72906
+ encodedNameBuf(name3),
72907
+ Buffer.from([4]),
72908
+ bytes.subarray(start, r.at)
72909
+ );
72910
+ importEntryCount++;
72758
72911
  }
72759
72912
  }
72760
- const globals = [];
72913
+ const globalParts = [
72914
+ Buffer.from(uleb4(globalCount - 1 + syntheticGlobals.length))
72915
+ ];
72761
72916
  for (let index = 0; index < globalCount; index++) {
72762
72917
  const start = gr.at;
72763
72918
  const type = gr.byte();
@@ -72769,12 +72924,12 @@ function resolveSdkReferences(source, sdk2, forwarders) {
72769
72924
  if (gr.byte() !== 11) throw new Error("app global initializer has no end");
72770
72925
  if (index === 0) continue;
72771
72926
  const value = got.get(index);
72772
- if (value === void 0) globals.push(...bytes.subarray(start, gr.at));
72773
- else globals.push(type, 1, type === 126 ? 66 : 65, 0, 11);
72927
+ if (value === void 0) globalParts.push(bytes.subarray(start, gr.at));
72928
+ else globalParts.push(Buffer.from([type, 1, type === 126 ? 66 : 65, 0, 11]));
72774
72929
  }
72775
72930
  for (const type of syntheticGlobals) {
72776
72931
  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];
72777
- globals.push(type, 1, ...zero, 11);
72932
+ globalParts.push(Buffer.from([type, 1, ...zero, 11]));
72778
72933
  }
72779
72934
  const exportSection = sections.find((s) => s.id === 7);
72780
72935
  if (!exportSection) throw new Error("app link has no exports");
@@ -72797,24 +72952,21 @@ function resolveSdkReferences(source, sdk2, forwarders) {
72797
72952
  throw new Error("Swift app exceeds its reserved static memory range");
72798
72953
  }
72799
72954
  }
72955
+ const exportParts = [
72956
+ Buffer.from(uleb4(exportCount + 1 + got.size)),
72957
+ bytes.subarray(originalExportsStart, exportSection.end)
72958
+ ];
72959
+ for (const [index, value] of got) {
72960
+ exportParts.push(
72961
+ encodedNameBuf(`${NATIVE_SDK_GLOBAL_PREFIX}${value}.${index}`),
72962
+ Buffer.from([3, ...uleb4(index)])
72963
+ );
72964
+ }
72965
+ exportParts.push(encodedNameBuf("__indirect_function_table"), Buffer.from([1, 0]));
72800
72966
  const replaced = /* @__PURE__ */ new Map([
72801
- [2, [...uleb4(entries2.length), ...entries2.flat()]],
72802
- [6, [...uleb4(globalCount - 1 + syntheticGlobals.length), ...globals]],
72803
- [
72804
- 7,
72805
- [
72806
- ...uleb4(exportCount + 1 + got.size),
72807
- ...bytes.subarray(originalExportsStart, exportSection.end),
72808
- ...[...got].flatMap(([index, value]) => [
72809
- ...encodedName2(`${NATIVE_SDK_GLOBAL_PREFIX}${value}.${index}`),
72810
- 3,
72811
- ...uleb4(index)
72812
- ]),
72813
- ...encodedName2("__indirect_function_table"),
72814
- 1,
72815
- 0
72816
- ]
72817
- ]
72967
+ [2, Buffer.concat([Buffer.from(uleb4(importEntryCount)), ...importParts])],
72968
+ [6, Buffer.concat(globalParts)],
72969
+ [7, Buffer.concat(exportParts)]
72818
72970
  ]);
72819
72971
  const rebuiltCode = expanded.length ? expandSdkRelocations(
72820
72972
  bytes,
@@ -72826,9 +72978,13 @@ function resolveSdkReferences(source, sdk2, forwarders) {
72826
72978
  if (s === tags || s.name === "linking" || s.name?.startsWith("reloc.") || s.name === ".swift1_autolink_entries")
72827
72979
  continue;
72828
72980
  const payload = replaced.get(s.id);
72829
- parts2.push(
72830
- s.id === 10 && rebuiltCode ? rebuiltCode : payload ? Uint8Array.from([s.id, ...uleb4(payload.length), ...payload]) : bytes.subarray(s.offset, s.end)
72831
- );
72981
+ if (s.id === 10 && rebuiltCode) {
72982
+ parts2.push(rebuiltCode);
72983
+ } else if (payload) {
72984
+ parts2.push(Buffer.from([s.id, ...uleb4(payload.length)]), payload);
72985
+ } else {
72986
+ parts2.push(bytes.subarray(s.offset, s.end));
72987
+ }
72832
72988
  }
72833
72989
  return { bytes: Buffer.concat(parts2), linkage };
72834
72990
  }
@@ -72926,6 +73082,49 @@ function readSwiftSdkUsage(mapFile, linkedFile, sdkObjects) {
72926
73082
  constructors: [...new Set(constructorKeys(map2, (0, import_node_fs73.readFileSync)(linkedFile)))]
72927
73083
  };
72928
73084
  }
73085
+ function swiftSdkProjectionSpans(sdk2, imageFor) {
73086
+ const { manifest, block: block2 } = readSwiftSdkManifest(sdk2);
73087
+ const guestObjects = manifest.guestObjects;
73088
+ if (!guestObjects) return [];
73089
+ const { strings: strings7 } = manifest;
73090
+ const fields = block2("pieces");
73091
+ const ordered = [];
73092
+ for (let i = 0; i < fields.length; i += SWIFT_SDK_PIECE_FIELDS) {
73093
+ const size2 = fields[i + 1];
73094
+ if (!size2) continue;
73095
+ ordered.push({
73096
+ address: fields[i],
73097
+ size: size2,
73098
+ object: strings7[fields[i + 3]]
73099
+ });
73100
+ }
73101
+ ordered.sort((a, b) => a.address - b.address);
73102
+ const imageOf = (object8) => {
73103
+ const product = guestObjects[object8]?.product;
73104
+ return product === void 0 ? void 0 : imageFor(object8, product);
73105
+ };
73106
+ const spans = [];
73107
+ for (let index = 0; index < ordered.length; index++) {
73108
+ const { object: object8, address, size: size2 } = ordered[index];
73109
+ const image = imageOf(object8);
73110
+ if (image === void 0) continue;
73111
+ let next = index + 1;
73112
+ while (next < ordered.length && ordered[next].address < address + size2) next++;
73113
+ const end = ordered[next]?.address ?? address + size2;
73114
+ spans.push({ image, space: "linear-memory", address, length: end - address });
73115
+ }
73116
+ const functionKeys = block2("functions");
73117
+ const slots = block2("functionSlots");
73118
+ for (let index = 0; index < functionKeys.length; index++) {
73119
+ const slot = slots[index];
73120
+ if (!slot) continue;
73121
+ const key2 = strings7[functionKeys[index]];
73122
+ const image = imageOf(key2.slice(0, key2.indexOf(":")));
73123
+ if (image !== void 0)
73124
+ spans.push({ image, space: "function-table", address: slot, length: 1 });
73125
+ }
73126
+ return spans;
73127
+ }
72929
73128
  function selectSwiftSdkData(sdk2, usage, linkage, projection) {
72930
73129
  const { manifest, block: block2, segments } = readSwiftSdkManifest(sdk2);
72931
73130
  const { strings: strings7 } = manifest;
@@ -72948,15 +73147,24 @@ function selectSwiftSdkData(sdk2, usage, linkage, projection) {
72948
73147
  });
72949
73148
  }
72950
73149
  const memory = new Map(segments.map((segment2) => [segment2.name, segment2]));
72951
- const read = (address2, size2) => {
73150
+ let lastSegment = segments[0];
73151
+ const segmentAt = (address2, size2) => {
73152
+ if (lastSegment && address2 >= lastSegment.address && address2 + size2 <= lastSegment.address + lastSegment.data.length)
73153
+ return lastSegment;
72952
73154
  for (const segment2 of segments)
72953
- if (address2 >= segment2.address && address2 + size2 <= segment2.address + segment2.data.length)
72954
- return segment2.data.subarray(
72955
- address2 - segment2.address,
72956
- address2 - segment2.address + size2
72957
- );
73155
+ if (address2 >= segment2.address && address2 + size2 <= segment2.address + segment2.data.length) {
73156
+ lastSegment = segment2;
73157
+ return segment2;
73158
+ }
72958
73159
  return void 0;
72959
73160
  };
73161
+ const read = (address2, size2) => {
73162
+ const segment2 = segmentAt(address2, size2);
73163
+ return segment2?.data.subarray(
73164
+ address2 - segment2.address,
73165
+ address2 - segment2.address + size2
73166
+ );
73167
+ };
72960
73168
  const appSectionsByObject = /* @__PURE__ */ new Map();
72961
73169
  const appSections = /* @__PURE__ */ new Set();
72962
73170
  const appSymbols = /* @__PURE__ */ new Set();
@@ -73062,9 +73270,7 @@ function selectSwiftSdkData(sdk2, usage, linkage, projection) {
73062
73270
  const classAddress = Number(
73063
73271
  new DataView(field2.buffer, field2.byteOffset, 8).getBigUint64(0, true)
73064
73272
  );
73065
- const segment2 = segments.find(
73066
- ({ address: address3, data }) => classAddress >= address3 && classAddress < address3 + data.length
73067
- );
73273
+ const segment2 = segmentAt(classAddress, 1);
73068
73274
  if (!segment2) continue;
73069
73275
  const start = classAddress - segment2.address;
73070
73276
  const end = segment2.data.indexOf(0, start);
@@ -73272,7 +73478,7 @@ function selectSwiftSdkData(sdk2, usage, linkage, projection) {
73272
73478
  if (current2)
73273
73479
  runs.push({
73274
73480
  address: current2.address,
73275
- bytes: Uint8Array.from(Buffer.concat(current2.parts))
73481
+ bytes: Buffer.concat(current2.parts)
73276
73482
  });
73277
73483
  };
73278
73484
  for (const piece of loaded4) {
@@ -73690,13 +73896,19 @@ async function compileGuestLink(options2) {
73690
73896
  const selectedSource = source.artifacts.filter(
73691
73897
  (artifact) => selected.has(import_node_path72.default.resolve(rewritten.get(artifact.path) ?? artifact.path))
73692
73898
  );
73899
+ const admittedCores = Number(process.env.TM_EXEC_CPU_CORES);
73900
+ const linuxMemory = process.env.TM_EXEC_ADMITTED === "1" && process.env.LINUX_BUILD_SCOPE ? Number(process.env.TM_EXEC_LINUX_MEMORY_MAX) : NaN;
73901
+ const clangReplayJobs = Number.isInteger(admittedCores) && admittedCores > 0 ? Math.min(
73902
+ admittedCores,
73903
+ Number.isSafeInteger(linuxMemory) && linuxMemory > 0 ? Math.max(options2.jobs, Math.floor(linuxMemory / (512 * 1024 ** 2))) : Math.max(options2.jobs, admittedCores)
73904
+ ) : options2.jobs;
73693
73905
  const clangOptions2 = sourceGuestClangLinkOptions({
73694
73906
  buildDirectory: options2.buildDirectory,
73695
73907
  directory: directory2,
73696
73908
  toolchainBin: options2.toolchainBin,
73697
73909
  swiftCompiler: options2.swiftCompiler,
73698
73910
  objects: selectedSource.map((artifact) => artifact.path),
73699
- jobs: options2.jobs
73911
+ jobs: clangReplayJobs
73700
73912
  });
73701
73913
  const links = sourceGuestRuntimeLinks({
73702
73914
  toolchainBin: options2.toolchainBin,
@@ -73878,7 +74090,8 @@ async function compileGuestLink(options2) {
73878
74090
  createSwiftSdkBinding: createSwiftSdkBinding2,
73879
74091
  finishSwiftAppModule: finishSwiftAppModule2,
73880
74092
  linkSwiftAppModule: linkSwiftAppModule2,
73881
- readSwiftSdkUsage: readSwiftSdkUsage2
74093
+ readSwiftSdkUsage: readSwiftSdkUsage2,
74094
+ swiftSdkProjectionSpans: swiftSdkProjectionSpans2
73882
74095
  } = await Promise.resolve().then(() => (init_swift_sdk_app_module(), swift_sdk_app_module_exports));
73883
74096
  const project2 = options2.project;
73884
74097
  const work = project2 ? (0, import_node_fs74.mkdtempSync)(import_node_path72.default.join(directory2, "app-module-")) : import_node_path72.default.join(directory2, "app-module");
@@ -73900,7 +74113,28 @@ async function compileGuestLink(options2) {
73900
74113
  }
73901
74114
  const usage = readSwiftSdkUsage2(result.mapPath, options2.output, sdkObjectKeys);
73902
74115
  const linkedModule = import_node_path72.default.join(work, "app.wasm");
74116
+ const sdkSpans = swiftSdkProjectionSpans2(
74117
+ sdk2,
74118
+ (object8, product) => sdkObjectImages.get(object8) ?? sdkProductImages.get(product)
74119
+ );
73903
74120
  let storage = reserved2;
74121
+ if (sdkSpans.length > 0) {
74122
+ const sdkCounts = guestProjectionRegionCounts(storage.images.length, sdkSpans);
74123
+ storage = reserveGuestProjectionStorage(
74124
+ storage.images,
74125
+ storage.capacities.map((capacity, index) => ({
74126
+ ...capacity,
74127
+ regions: capacity.regions + sdkCounts[index] + 16
74128
+ }))
74129
+ );
74130
+ const projectionSource = import_node_path72.default.join(work, "projection.c");
74131
+ (0, import_node_fs74.writeFileSync)(projectionSource, storage.source);
74132
+ (0, import_node_child_process38.execFileSync)(
74133
+ import_node_path72.default.join(options2.toolchainBin, "clang"),
74134
+ [...clangOptions, "-c", projectionSource, "-o", projectionObject],
74135
+ { stdio: "pipe" }
74136
+ );
74137
+ }
73904
74138
  for (; ; ) {
73905
74139
  const link = await linkSwiftAppModule2({
73906
74140
  objects: [...owners.keys()],
@@ -73938,11 +74172,7 @@ async function compileGuestLink(options2) {
73938
74172
  bindingRows.set((address - values.address) / 8, value);
73939
74173
  } else data.push(address, size2, value);
73940
74174
  }
73941
- const sdkSpans = [];
73942
- const binding = createSwiftSdkBinding2({ ...link.linkage, data }, sdk2, usage, {
73943
- imageFor: (object8, product) => sdkObjectImages.get(object8) ?? sdkProductImages.get(product),
73944
- spans: sdkSpans
73945
- });
74175
+ const binding = createSwiftSdkBinding2({ ...link.linkage, data }, sdk2, usage);
73946
74176
  const linked = (0, import_node_fs74.readFileSync)(
73947
74177
  project2 ? projectOutputFile(work, linkedModule, project2) : linkedModule
73948
74178
  );
@@ -81476,7 +81706,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
81476
81706
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
81477
81707
  MULTI_MANIFEST_VERSION = 76;
81478
81708
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
81479
- compilerSourceDigest = true ? "7b91fa4405159335b5484c82700e001e4c27abf15621b724ea8af4edea693f66" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
81709
+ compilerSourceDigest = true ? "d4cf22b53d08266bf9bd0238bffe899805f62daeb3d628664ee351830e496cda" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
81480
81710
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
81481
81711
  MODULE_MAP_RESPONSE_FILE_RUN = 16;
81482
81712
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
@@ -143905,7 +144135,7 @@ var init_nitro_superset = __esm({
143905
144135
  init_nitroContract();
143906
144136
  init_swift_standin_digest();
143907
144137
  NITRO_SUPERSET_ENTRY_NAME = "superset";
143908
- NITRO_COMPILER_DIGEST = true ? "ffe0ab1580ebcb5a184764bfb3b3650342c8644057a95423913e7078c208f318" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
144138
+ NITRO_COMPILER_DIGEST = true ? "0ce63814b4a72a014a0388c3792cede09d8d1cae4f69a18e904584487588222d" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
143909
144139
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
143910
144140
  nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
143911
144141
  published3 = /* @__PURE__ */ new Map();