peachsim 0.1.1963 → 0.1.1964
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +42 -25
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +41 -24
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +42 -25
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +3 -3
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +3 -3
- package/dist-lib/native-app-identity-project.cjs +3 -3
- package/dist-lib/native-app-identity-project.mjs +3 -3
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +42 -25
- package/dist-lib/swift-compile.cjs +2 -2
- package/dist-lib/swift-compile.mjs +2 -2
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +6 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +40 -23
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/src/swift-objc-standin.ts +3 -4
- package/src/swift-standins.ts +44 -16
- package/src/swift-toolchain.ts +6 -0
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1964 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1964 | (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;
|
|
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
39
39
|
var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
|
|
40
40
|
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
41
41
|
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
42
|
-
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "05c0959ec7458f26e96bb0a18e01dd196e19e087c1c71e031ce0707d2494287d", "home-paths.ts": "af600a7f017474946ede726320a133d830e77e4e287b043d4fea026a945ce748", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "c126efdce870c1953833ec9c32d66b15bbe422ab2a31b7531be3e278edbc9737", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -41877,6 +41877,9 @@ function processRuns(pid) {
|
|
|
41877
41877
|
return error instanceof Error && "code" in error && error.code === "EPERM";
|
|
41878
41878
|
}
|
|
41879
41879
|
}
|
|
41880
|
+
function withoutCoreDump(file, args) {
|
|
41881
|
+
return ["/bin/sh", ["-c", 'ulimit -c 0; exec "$@"', "sh", file, ...args]];
|
|
41882
|
+
}
|
|
41880
41883
|
function swiftEnvironment(base = process.env) {
|
|
41881
41884
|
return {
|
|
41882
41885
|
...base,
|
|
@@ -44507,8 +44510,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
44507
44510
|
import_node_fs32.default.rmSync(out, { recursive: true, force: true });
|
|
44508
44511
|
import_node_fs32.default.mkdirSync(out, { recursive: true });
|
|
44509
44512
|
const run12 = (0, import_node_child_process17.spawnSync)(
|
|
44510
|
-
import_node_path29.default.join(toolchainBin, "swift-symbolgraph-extract"),
|
|
44511
|
-
[
|
|
44513
|
+
...withoutCoreDump(import_node_path29.default.join(toolchainBin, "swift-symbolgraph-extract"), [
|
|
44512
44514
|
"-module-name",
|
|
44513
44515
|
surface.module,
|
|
44514
44516
|
"-target",
|
|
@@ -44528,7 +44530,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
44528
44530
|
"-omit-extension-block-symbols",
|
|
44529
44531
|
"-output-dir",
|
|
44530
44532
|
out
|
|
44531
|
-
],
|
|
44533
|
+
]),
|
|
44532
44534
|
{ encoding: "utf8", env: swiftEnvironment(), maxBuffer: 256 * 1024 * 1024 }
|
|
44533
44535
|
);
|
|
44534
44536
|
if (run12.error) throw run12.error;
|
|
@@ -57141,7 +57143,7 @@ var init_swift_compile = __esm({
|
|
|
57141
57143
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
57142
57144
|
MULTI_MANIFEST_VERSION = 66;
|
|
57143
57145
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
57144
|
-
compilerSourceDigest = true ? "
|
|
57146
|
+
compilerSourceDigest = true ? "777d4db5d7a8d74f3fc33c50d60c04b62ad2fdce4bce2e2eec8c4e358d61ce92" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
57145
57147
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
57146
57148
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
57147
57149
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -63477,7 +63479,7 @@ var init_swift_standin_digest = __esm({
|
|
|
63477
63479
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
63478
63480
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
63479
63481
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
63480
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
63482
|
+
STANDIN_SOURCE_DIGEST = true ? "2c1ec9d203fa5a2da70c4346e1574b582e71d72dbd796d40431f29c4e3aeabad" : standinSourceDigest();
|
|
63481
63483
|
}
|
|
63482
63484
|
});
|
|
63483
63485
|
|
|
@@ -64207,7 +64209,7 @@ var init_expo_native_prebuilt = __esm({
|
|
|
64207
64209
|
init_swift_native_pin();
|
|
64208
64210
|
init_xcode_project();
|
|
64209
64211
|
EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
64210
|
-
EXPO_NATIVE_COMPILER_DIGEST = true ? "
|
|
64212
|
+
EXPO_NATIVE_COMPILER_DIGEST = true ? "aabd8b1a975371fda074175e883d608df75f1aab0393e1a9b02f738d0f063fbd" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
64211
64213
|
IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
64212
64214
|
expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
|
|
64213
64215
|
isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
@@ -66311,22 +66313,24 @@ function swiftStandin(surface, binary2, toolchain, work, behavior, siblings) {
|
|
|
66311
66313
|
symbolgraphWasm.push(wasm[index]);
|
|
66312
66314
|
}
|
|
66313
66315
|
symbolgraphWasm.push("-Xcc", "-Xclang", "-Xcc", "-fmodule-format=raw");
|
|
66314
|
-
exec(
|
|
66315
|
-
"-
|
|
66316
|
-
|
|
66317
|
-
|
|
66318
|
-
|
|
66319
|
-
|
|
66320
|
-
|
|
66321
|
-
|
|
66322
|
-
|
|
66323
|
-
|
|
66324
|
-
|
|
66325
|
-
|
|
66326
|
-
|
|
66327
|
-
|
|
66328
|
-
|
|
66329
|
-
|
|
66316
|
+
exec(
|
|
66317
|
+
...withoutCoreDump(import_node_path71.default.join(toolchain.toolchainBin, "swift-symbolgraph-extract"), [
|
|
66318
|
+
"-module-name",
|
|
66319
|
+
surface.module,
|
|
66320
|
+
...symbolgraphWasm,
|
|
66321
|
+
"-I",
|
|
66322
|
+
search,
|
|
66323
|
+
// at public the graph drops underscored public declarations, which other
|
|
66324
|
+
// public ones name; the emitter keeps only public and open symbols
|
|
66325
|
+
"-minimum-access-level",
|
|
66326
|
+
"internal",
|
|
66327
|
+
"-include-spi-symbols",
|
|
66328
|
+
"-skip-synthesized-members",
|
|
66329
|
+
"-omit-extension-block-symbols",
|
|
66330
|
+
"-output-dir",
|
|
66331
|
+
out
|
|
66332
|
+
])
|
|
66333
|
+
);
|
|
66330
66334
|
const graphs = import_node_fs73.default.readdirSync(out).filter((name3) => name3.endsWith(".symbols.json")).sort().map((name3) => JSON.parse(import_node_fs73.default.readFileSync(import_node_path71.default.join(out, name3), "utf8")));
|
|
66331
66335
|
const supplemented = synthesizedInterfaceEnums(text6, surface.module, graphs);
|
|
66332
66336
|
restoreSwiftInterfaceSPI(text6, surface.module, graphs);
|
|
@@ -67711,6 +67715,19 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
67711
67715
|
return settle(result);
|
|
67712
67716
|
}
|
|
67713
67717
|
async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new Set(), behavior = {}) {
|
|
67718
|
+
const built2 = await buildStandins(binaries, toolchain, provided, behavior);
|
|
67719
|
+
return {
|
|
67720
|
+
standins: built2.standins,
|
|
67721
|
+
gaps: new Map([...built2.gaps].map(([target, gap]) => [target, gapText(gap)]))
|
|
67722
|
+
};
|
|
67723
|
+
}
|
|
67724
|
+
function gapText(gap) {
|
|
67725
|
+
const lines = gap.split("\n").map((line) => line.trim()).filter((line) => line && !/^[{[\]}",]/.test(line) && !/"kind":/.test(line));
|
|
67726
|
+
const errors = lines.filter((line) => /\berror:/.test(line));
|
|
67727
|
+
const text6 = (errors.length > 0 ? errors : lines).slice(0, 4).join("; ");
|
|
67728
|
+
return text6.length > 600 ? `${text6.slice(0, 600)}\u2026` : text6;
|
|
67729
|
+
}
|
|
67730
|
+
async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
67714
67731
|
const requested = binaries.filter((binary2) => !provided.has(binary2.target));
|
|
67715
67732
|
if (requested.length === 0) return { standins: [], gaps: /* @__PURE__ */ new Map() };
|
|
67716
67733
|
if (process.platform === "darwin" && process.env.TM_EXEC_BUILD_PLATFORM !== "mac" && process.env.TM_SESSION && process.env.CI !== "true" && toolchain.moduleRoot === sourceSwiftCheckout() && !swiftDistributionAt(toolchain.moduleRoot))
|
|
@@ -82401,7 +82418,7 @@ var init_nitro_superset = __esm({
|
|
|
82401
82418
|
init_swift_standin_digest();
|
|
82402
82419
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
82403
82420
|
packageVersion = (root) => JSON.parse((0, import_node_fs92.readFileSync)((0, import_node_path90.join)(root, "package.json"), "utf8")).version;
|
|
82404
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
82421
|
+
NITRO_COMPILER_DIGEST = true ? "4436f37e5c9433ab8d98427c75c9969549750461258d73f206214a14f6c072b3" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
82405
82422
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
82406
82423
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
82407
82424
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1964 | (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;
|
|
@@ -12377,7 +12377,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12377
12377
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12378
12378
|
var MULTI_MANIFEST_VERSION = 66;
|
|
12379
12379
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12380
|
-
var compilerSourceDigest = true ? "
|
|
12380
|
+
var compilerSourceDigest = true ? "777d4db5d7a8d74f3fc33c50d60c04b62ad2fdce4bce2e2eec8c4e358d61ce92" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
12381
12381
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12382
12382
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
12383
12383
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1964 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -12359,7 +12359,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12359
12359
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12360
12360
|
var MULTI_MANIFEST_VERSION = 66;
|
|
12361
12361
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12362
|
-
var compilerSourceDigest = true ? "
|
|
12362
|
+
var compilerSourceDigest = true ? "777d4db5d7a8d74f3fc33c50d60c04b62ad2fdce4bce2e2eec8c4e358d61ce92" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
12363
12363
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12364
12364
|
const hash = createHash13("sha256");
|
|
12365
12365
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1964 | (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 __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1964 | (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 __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1964 | (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;
|
|
@@ -69,6 +69,7 @@ __export(swift_toolchain_exports, {
|
|
|
69
69
|
swiftToolchainBin: () => swiftToolchainBin,
|
|
70
70
|
swiftUpstreamRelease: () => swiftUpstreamRelease,
|
|
71
71
|
verifySwiftHostCompiler: () => verifySwiftHostCompiler,
|
|
72
|
+
withoutCoreDump: () => withoutCoreDump,
|
|
72
73
|
writeSwiftAutolinkLinker: () => writeSwiftAutolinkLinker
|
|
73
74
|
});
|
|
74
75
|
module.exports = __toCommonJS(swift_toolchain_exports);
|
|
@@ -543,6 +544,9 @@ function processRuns(pid) {
|
|
|
543
544
|
return error instanceof Error && "code" in error && error.code === "EPERM";
|
|
544
545
|
}
|
|
545
546
|
}
|
|
547
|
+
function withoutCoreDump(file, args) {
|
|
548
|
+
return ["/bin/sh", ["-c", 'ulimit -c 0; exec "$@"', "sh", file, ...args]];
|
|
549
|
+
}
|
|
546
550
|
function swiftEnvironment(base = process.env) {
|
|
547
551
|
return {
|
|
548
552
|
...base,
|
|
@@ -968,5 +972,6 @@ function swiftCompilerInstall(release) {
|
|
|
968
972
|
swiftToolchainBin,
|
|
969
973
|
swiftUpstreamRelease,
|
|
970
974
|
verifySwiftHostCompiler,
|
|
975
|
+
withoutCoreDump,
|
|
971
976
|
writeSwiftAutolinkLinker
|
|
972
977
|
});
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1964 | (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 __defProp = Object.defineProperty;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1964 | (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;
|
|
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
39
39
|
var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
|
|
40
40
|
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
41
41
|
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
42
|
-
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "05c0959ec7458f26e96bb0a18e01dd196e19e087c1c71e031ce0707d2494287d", "home-paths.ts": "af600a7f017474946ede726320a133d830e77e4e287b043d4fea026a945ce748", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "c126efdce870c1953833ec9c32d66b15bbe422ab2a31b7531be3e278edbc9737", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -4775,6 +4775,9 @@ var linuxHostSdkRoot;
|
|
|
4775
4775
|
function setSwiftLinuxLibraryPath(libraryPath) {
|
|
4776
4776
|
linuxLibraryPath = libraryPath;
|
|
4777
4777
|
}
|
|
4778
|
+
function withoutCoreDump(file, args) {
|
|
4779
|
+
return ["/bin/sh", ["-c", 'ulimit -c 0; exec "$@"', "sh", file, ...args]];
|
|
4780
|
+
}
|
|
4778
4781
|
function swiftEnvironment(base = process.env) {
|
|
4779
4782
|
return {
|
|
4780
4783
|
...base,
|
|
@@ -7768,8 +7771,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
7768
7771
|
import_node_fs7.default.rmSync(out, { recursive: true, force: true });
|
|
7769
7772
|
import_node_fs7.default.mkdirSync(out, { recursive: true });
|
|
7770
7773
|
const run5 = (0, import_node_child_process6.spawnSync)(
|
|
7771
|
-
import_node_path7.default.join(toolchainBin, "swift-symbolgraph-extract"),
|
|
7772
|
-
[
|
|
7774
|
+
...withoutCoreDump(import_node_path7.default.join(toolchainBin, "swift-symbolgraph-extract"), [
|
|
7773
7775
|
"-module-name",
|
|
7774
7776
|
surface.module,
|
|
7775
7777
|
"-target",
|
|
@@ -7789,7 +7791,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
7789
7791
|
"-omit-extension-block-symbols",
|
|
7790
7792
|
"-output-dir",
|
|
7791
7793
|
out
|
|
7792
|
-
],
|
|
7794
|
+
]),
|
|
7793
7795
|
{ encoding: "utf8", env: swiftEnvironment(), maxBuffer: 256 * 1024 * 1024 }
|
|
7794
7796
|
);
|
|
7795
7797
|
if (run5.error) throw run5.error;
|
|
@@ -16699,7 +16701,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
16699
16701
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
16700
16702
|
var MULTI_MANIFEST_VERSION = 66;
|
|
16701
16703
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
16702
|
-
var compilerSourceDigest = true ? "
|
|
16704
|
+
var compilerSourceDigest = true ? "777d4db5d7a8d74f3fc33c50d60c04b62ad2fdce4bce2e2eec8c4e358d61ce92" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
16703
16705
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
16704
16706
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
16705
16707
|
hash.update(`swift-compile
|
|
@@ -29647,7 +29649,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
29647
29649
|
return hash.digest("hex");
|
|
29648
29650
|
}
|
|
29649
29651
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
29650
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
29652
|
+
var STANDIN_SOURCE_DIGEST = true ? "2c1ec9d203fa5a2da70c4346e1574b582e71d72dbd796d40431f29c4e3aeabad" : standinSourceDigest();
|
|
29651
29653
|
|
|
29652
29654
|
// src/swift-standins.ts
|
|
29653
29655
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -30861,22 +30863,24 @@ function swiftStandin(surface, binary, toolchain, work, behavior, siblings) {
|
|
|
30861
30863
|
symbolgraphWasm.push(wasm[index]);
|
|
30862
30864
|
}
|
|
30863
30865
|
symbolgraphWasm.push("-Xcc", "-Xclang", "-Xcc", "-fmodule-format=raw");
|
|
30864
|
-
exec(
|
|
30865
|
-
"-
|
|
30866
|
-
|
|
30867
|
-
|
|
30868
|
-
|
|
30869
|
-
|
|
30870
|
-
|
|
30871
|
-
|
|
30872
|
-
|
|
30873
|
-
|
|
30874
|
-
|
|
30875
|
-
|
|
30876
|
-
|
|
30877
|
-
|
|
30878
|
-
|
|
30879
|
-
|
|
30866
|
+
exec(
|
|
30867
|
+
...withoutCoreDump(import_node_path47.default.join(toolchain.toolchainBin, "swift-symbolgraph-extract"), [
|
|
30868
|
+
"-module-name",
|
|
30869
|
+
surface.module,
|
|
30870
|
+
...symbolgraphWasm,
|
|
30871
|
+
"-I",
|
|
30872
|
+
search,
|
|
30873
|
+
// at public the graph drops underscored public declarations, which other
|
|
30874
|
+
// public ones name; the emitter keeps only public and open symbols
|
|
30875
|
+
"-minimum-access-level",
|
|
30876
|
+
"internal",
|
|
30877
|
+
"-include-spi-symbols",
|
|
30878
|
+
"-skip-synthesized-members",
|
|
30879
|
+
"-omit-extension-block-symbols",
|
|
30880
|
+
"-output-dir",
|
|
30881
|
+
out
|
|
30882
|
+
])
|
|
30883
|
+
);
|
|
30880
30884
|
const graphs = import_node_fs45.default.readdirSync(out).filter((name3) => name3.endsWith(".symbols.json")).sort().map((name3) => JSON.parse(import_node_fs45.default.readFileSync(import_node_path47.default.join(out, name3), "utf8")));
|
|
30881
30885
|
const supplemented = synthesizedInterfaceEnums(text5, surface.module, graphs);
|
|
30882
30886
|
restoreSwiftInterfaceSPI(text5, surface.module, graphs);
|
|
@@ -32276,6 +32280,19 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
32276
32280
|
return settle(result);
|
|
32277
32281
|
}
|
|
32278
32282
|
async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new Set(), behavior = {}) {
|
|
32283
|
+
const built2 = await buildStandins(binaries, toolchain, provided, behavior);
|
|
32284
|
+
return {
|
|
32285
|
+
standins: built2.standins,
|
|
32286
|
+
gaps: new Map([...built2.gaps].map(([target, gap]) => [target, gapText(gap)]))
|
|
32287
|
+
};
|
|
32288
|
+
}
|
|
32289
|
+
function gapText(gap) {
|
|
32290
|
+
const lines = gap.split("\n").map((line) => line.trim()).filter((line) => line && !/^[{[\]}",]/.test(line) && !/"kind":/.test(line));
|
|
32291
|
+
const errors = lines.filter((line) => /\berror:/.test(line));
|
|
32292
|
+
const text5 = (errors.length > 0 ? errors : lines).slice(0, 4).join("; ");
|
|
32293
|
+
return text5.length > 600 ? `${text5.slice(0, 600)}\u2026` : text5;
|
|
32294
|
+
}
|
|
32295
|
+
async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
32279
32296
|
const requested = binaries.filter((binary) => !provided.has(binary.target));
|
|
32280
32297
|
if (requested.length === 0) return { standins: [], gaps: /* @__PURE__ */ new Map() };
|
|
32281
32298
|
if (process.platform === "darwin" && process.env.TM_EXEC_BUILD_PLATFORM !== "mac" && process.env.TM_SESSION && process.env.CI !== "true" && toolchain.moduleRoot === sourceSwiftCheckout() && !swiftDistributionAt(toolchain.moduleRoot))
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1964 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1964 | (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 __defProp = Object.defineProperty;
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@ import { swiftObjCPlatformFlags } from './swift-objc-platform'
|
|
|
23
23
|
import { IOS_SDK_HEADERS, IOS_SDK_OVERLAYS, IOS_SDK_TARGET } from './swift-objc-sdk'
|
|
24
24
|
import { clangImportNames, moduleMapTokens } from './swift-package'
|
|
25
25
|
import { objcProtocolsInSwiftSignatures, type SymbolGraph } from './swift-standin-emit'
|
|
26
|
-
import { swiftEnvironment } from './swift-toolchain'
|
|
26
|
+
import { swiftEnvironment, withoutCoreDump } from './swift-toolchain'
|
|
27
27
|
|
|
28
28
|
/** a module map and the headers it reaches: a framework's, or a library
|
|
29
29
|
* slice's headers directory. */
|
|
@@ -688,8 +688,7 @@ export function objcView(
|
|
|
688
688
|
fs.rmSync(out, { recursive: true, force: true })
|
|
689
689
|
fs.mkdirSync(out, { recursive: true })
|
|
690
690
|
const run = spawnSync(
|
|
691
|
-
path.join(toolchainBin, 'swift-symbolgraph-extract'),
|
|
692
|
-
[
|
|
691
|
+
...withoutCoreDump(path.join(toolchainBin, 'swift-symbolgraph-extract'), [
|
|
693
692
|
'-module-name',
|
|
694
693
|
surface.module,
|
|
695
694
|
'-target',
|
|
@@ -709,7 +708,7 @@ export function objcView(
|
|
|
709
708
|
'-omit-extension-block-symbols',
|
|
710
709
|
'-output-dir',
|
|
711
710
|
out,
|
|
712
|
-
],
|
|
711
|
+
]),
|
|
713
712
|
{ encoding: 'utf8', env: swiftEnvironment(), maxBuffer: 256 * 1024 * 1024 },
|
|
714
713
|
)
|
|
715
714
|
if (run.error) throw run.error
|
package/src/swift-standins.ts
CHANGED
|
@@ -64,6 +64,7 @@ import {
|
|
|
64
64
|
import {
|
|
65
65
|
sourceSwiftCheckout,
|
|
66
66
|
swiftEnvironment,
|
|
67
|
+
withoutCoreDump,
|
|
67
68
|
swiftPackageCacheOptions,
|
|
68
69
|
} from './swift-toolchain'
|
|
69
70
|
import { simulatorNativeLibrary } from './swift-xcframework'
|
|
@@ -890,22 +891,24 @@ function swiftStandin(
|
|
|
890
891
|
// no -Xllvm either, so the -mllvm half of the toolset's sjlj pair never reaches the
|
|
891
892
|
// backend that wraps each clang module as an object; raw modules skip it.
|
|
892
893
|
symbolgraphWasm.push('-Xcc', '-Xclang', '-Xcc', '-fmodule-format=raw')
|
|
893
|
-
exec(
|
|
894
|
-
'-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
894
|
+
exec(
|
|
895
|
+
...withoutCoreDump(path.join(toolchain.toolchainBin, 'swift-symbolgraph-extract'), [
|
|
896
|
+
'-module-name',
|
|
897
|
+
surface.module,
|
|
898
|
+
...symbolgraphWasm,
|
|
899
|
+
'-I',
|
|
900
|
+
search,
|
|
901
|
+
// at public the graph drops underscored public declarations, which other
|
|
902
|
+
// public ones name; the emitter keeps only public and open symbols
|
|
903
|
+
'-minimum-access-level',
|
|
904
|
+
'internal',
|
|
905
|
+
'-include-spi-symbols',
|
|
906
|
+
'-skip-synthesized-members',
|
|
907
|
+
'-omit-extension-block-symbols',
|
|
908
|
+
'-output-dir',
|
|
909
|
+
out,
|
|
910
|
+
]),
|
|
911
|
+
)
|
|
909
912
|
const graphs = fs
|
|
910
913
|
.readdirSync(out)
|
|
911
914
|
.filter((name) => name.endsWith('.symbols.json'))
|
|
@@ -2693,6 +2696,31 @@ export async function swiftStandins(
|
|
|
2693
2696
|
toolchain: Toolchain,
|
|
2694
2697
|
provided: ReadonlySet<string> = new Set(),
|
|
2695
2698
|
behavior: SwiftStandinBehaviors = {},
|
|
2699
|
+
): Promise<SwiftStandins> {
|
|
2700
|
+
const built = await buildStandins(binaries, toolchain, provided, behavior)
|
|
2701
|
+
return {
|
|
2702
|
+
standins: built.standins,
|
|
2703
|
+
gaps: new Map([...built.gaps].map(([target, gap]) => [target, gapText(gap)])),
|
|
2704
|
+
}
|
|
2705
|
+
}
|
|
2706
|
+
|
|
2707
|
+
// a gap prints inside the blocker report, so it keeps the tool's error lines
|
|
2708
|
+
// and drops compiler dumps (clang AST JSON) a failed probe printed with them.
|
|
2709
|
+
function gapText(gap: string): string {
|
|
2710
|
+
const lines = gap
|
|
2711
|
+
.split('\n')
|
|
2712
|
+
.map((line) => line.trim())
|
|
2713
|
+
.filter((line) => line && !/^[{[\]}",]/.test(line) && !/"kind":/.test(line))
|
|
2714
|
+
const errors = lines.filter((line) => /\berror:/.test(line))
|
|
2715
|
+
const text = (errors.length > 0 ? errors : lines).slice(0, 4).join('; ')
|
|
2716
|
+
return text.length > 600 ? `${text.slice(0, 600)}…` : text
|
|
2717
|
+
}
|
|
2718
|
+
|
|
2719
|
+
async function buildStandins(
|
|
2720
|
+
binaries: readonly SwiftPackageBinary[],
|
|
2721
|
+
toolchain: Toolchain,
|
|
2722
|
+
provided: ReadonlySet<string>,
|
|
2723
|
+
behavior: SwiftStandinBehaviors,
|
|
2696
2724
|
): Promise<SwiftStandins> {
|
|
2697
2725
|
const requested = binaries.filter((binary) => !provided.has(binary.target))
|
|
2698
2726
|
if (requested.length === 0) return { standins: [], gaps: new Map() }
|
package/src/swift-toolchain.ts
CHANGED
|
@@ -636,6 +636,12 @@ function processRuns(pid: number): boolean {
|
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
638
|
|
|
639
|
+
/** a crashed swift tool dumps a core file the size of its memory into its
|
|
640
|
+
* working directory, which is the caller's repository. */
|
|
641
|
+
export function withoutCoreDump(file: string, args: string[]): [string, string[]] {
|
|
642
|
+
return ['/bin/sh', ['-c', 'ulimit -c 0; exec "$@"', 'sh', file, ...args]]
|
|
643
|
+
}
|
|
644
|
+
|
|
639
645
|
/** every swift child's temporary and xdg paths stay in peach's cache. only
|
|
640
646
|
* linux changes HOME; macOS keeps its account and idiomatic SDK discovery. */
|
|
641
647
|
export function swiftEnvironment(
|