peachsim 0.1.1963 → 0.1.1965
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 +194 -49
- 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 +192 -48
- 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 +193 -49
- 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 +194 -49
- 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 +191 -47
- 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-packages.ts +13 -1
- package/src/swift-standin-emit.ts +16 -3
- package/src/swift-standins.ts +188 -33
- package/src/swift-toolchain.ts +6 -0
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1965 | (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,
|
|
@@ -42916,7 +42919,12 @@ function splitTopLevel(text6, separator) {
|
|
|
42916
42919
|
function emitSwiftStandin(sourceGraphs, options) {
|
|
42917
42920
|
const imported = new Set(options.imports);
|
|
42918
42921
|
const importedTypeModules = options.importedTypeModules ?? /* @__PURE__ */ new Map();
|
|
42919
|
-
const
|
|
42922
|
+
const ownIds = new Set(
|
|
42923
|
+
sourceGraphs.flatMap(
|
|
42924
|
+
(graph) => graph.symbols.map((symbol2) => symbol2.identifier.precise)
|
|
42925
|
+
)
|
|
42926
|
+
);
|
|
42927
|
+
const graphs = [...sourceGraphs, ...options.dependencyGraphs ?? []].map(
|
|
42920
42928
|
(graph) => qualifyImportedTypes(graph, imported, importedTypeModules)
|
|
42921
42929
|
);
|
|
42922
42930
|
const nativeObjcProtocols = objcProtocolsInSwiftSignatures(graphs);
|
|
@@ -43500,7 +43508,8 @@ function emitSwiftStandin(sourceGraphs, options) {
|
|
|
43500
43508
|
)
|
|
43501
43509
|
].filter((name3, at, all2) => all2.indexOf(name3) === at);
|
|
43502
43510
|
const parentSymbol = superId.has(id) ? byId.get(superId.get(id)) : void 0;
|
|
43503
|
-
if (!parentSymbol
|
|
43511
|
+
if (!parentSymbol || !ownIds.has(parentSymbol.identifier.precise))
|
|
43512
|
+
list2.push(standinMarker);
|
|
43504
43513
|
const open = symbol2.accessLevel === "open" && (!parentSymbol || parentSymbol.accessLevel === "open");
|
|
43505
43514
|
const objcName = /^c:objc\(cs\)(\w+)$/.exec(id)?.[1];
|
|
43506
43515
|
emit(
|
|
@@ -43850,7 +43859,9 @@ function emitSwiftStandin(sourceGraphs, options) {
|
|
|
43850
43859
|
return match ? [`${match[1]}|${LEADING_ATTRS.exec(text(symbol2))[2]}`] : [];
|
|
43851
43860
|
})
|
|
43852
43861
|
);
|
|
43853
|
-
const roots = [...byId.values()].filter(
|
|
43862
|
+
const roots = [...byId.values()].filter(
|
|
43863
|
+
(symbol2) => ownIds.has(symbol2.identifier.precise) && !owner.has(symbol2.identifier.precise) && !unavailable(symbol2)
|
|
43864
|
+
).filter((symbol2) => {
|
|
43854
43865
|
const name3 = /^c:@M@[^@]+@F@([^@]+)$/.exec(symbol2.identifier.precise)?.[1];
|
|
43855
43866
|
return !name3 || !cExports.has(`${name3}|${text(symbol2)}`);
|
|
43856
43867
|
}).sort((a, b) => pathOf(a).localeCompare(pathOf(b)));
|
|
@@ -43862,6 +43873,7 @@ function emitSwiftStandin(sourceGraphs, options) {
|
|
|
43862
43873
|
for (const [name3, members2] of [...external].sort(([a], [b]) => a.localeCompare(b))) {
|
|
43863
43874
|
const seen = /* @__PURE__ */ new Set();
|
|
43864
43875
|
const kept = members2.filter((member) => {
|
|
43876
|
+
if (!ownIds.has(member.identifier.precise)) return false;
|
|
43865
43877
|
const key2 = `${member.kind.identifier}|${text(member)}`;
|
|
43866
43878
|
if (unavailable(member) || seen.has(key2)) return false;
|
|
43867
43879
|
seen.add(key2);
|
|
@@ -44507,8 +44519,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
44507
44519
|
import_node_fs32.default.rmSync(out, { recursive: true, force: true });
|
|
44508
44520
|
import_node_fs32.default.mkdirSync(out, { recursive: true });
|
|
44509
44521
|
const run12 = (0, import_node_child_process17.spawnSync)(
|
|
44510
|
-
import_node_path29.default.join(toolchainBin, "swift-symbolgraph-extract"),
|
|
44511
|
-
[
|
|
44522
|
+
...withoutCoreDump(import_node_path29.default.join(toolchainBin, "swift-symbolgraph-extract"), [
|
|
44512
44523
|
"-module-name",
|
|
44513
44524
|
surface.module,
|
|
44514
44525
|
"-target",
|
|
@@ -44528,7 +44539,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
|
|
|
44528
44539
|
"-omit-extension-block-symbols",
|
|
44529
44540
|
"-output-dir",
|
|
44530
44541
|
out
|
|
44531
|
-
],
|
|
44542
|
+
]),
|
|
44532
44543
|
{ encoding: "utf8", env: swiftEnvironment(), maxBuffer: 256 * 1024 * 1024 }
|
|
44533
44544
|
);
|
|
44534
44545
|
if (run12.error) throw run12.error;
|
|
@@ -57141,7 +57152,7 @@ var init_swift_compile = __esm({
|
|
|
57141
57152
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
57142
57153
|
MULTI_MANIFEST_VERSION = 66;
|
|
57143
57154
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
57144
|
-
compilerSourceDigest = true ? "
|
|
57155
|
+
compilerSourceDigest = true ? "777d4db5d7a8d74f3fc33c50d60c04b62ad2fdce4bce2e2eec8c4e358d61ce92" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
57145
57156
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
57146
57157
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
57147
57158
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -63477,7 +63488,7 @@ var init_swift_standin_digest = __esm({
|
|
|
63477
63488
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
63478
63489
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
63479
63490
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
63480
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
63491
|
+
STANDIN_SOURCE_DIGEST = true ? "a7e1ecaaff6c8861c337b5c6049d14450807f5be059d246ba06f5abd6384bfe7" : standinSourceDigest();
|
|
63481
63492
|
}
|
|
63482
63493
|
});
|
|
63483
63494
|
|
|
@@ -64207,7 +64218,7 @@ var init_expo_native_prebuilt = __esm({
|
|
|
64207
64218
|
init_swift_native_pin();
|
|
64208
64219
|
init_xcode_project();
|
|
64209
64220
|
EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
64210
|
-
EXPO_NATIVE_COMPILER_DIGEST = true ? "
|
|
64221
|
+
EXPO_NATIVE_COMPILER_DIGEST = true ? "ab9c7903d2e3e389e43c53ecfe515193e8c405cf1fef52b82d78ff570dc3ea8e" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
64211
64222
|
IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
64212
64223
|
expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
|
|
64213
64224
|
isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
@@ -65046,6 +65057,11 @@ function resolveSwiftPackages(options) {
|
|
|
65046
65057
|
if (claimed.has(key2)) return true;
|
|
65047
65058
|
const target = pkg.manifest.targets.get(name3);
|
|
65048
65059
|
if (!target || target.type !== "regular" || placeholderPackage(pkg)) return false;
|
|
65060
|
+
const files2 = swiftTargetFiles(pkg.manifest, target);
|
|
65061
|
+
if (files2.every(
|
|
65062
|
+
(file) => file.endsWith(".swift") && import_node_fs69.default.readFileSync(file, "utf8").trim() === ""
|
|
65063
|
+
))
|
|
65064
|
+
return false;
|
|
65049
65065
|
claimed.add(key2);
|
|
65050
65066
|
provided.delete(name3);
|
|
65051
65067
|
for (const dependency of target.dependencies) {
|
|
@@ -65153,7 +65169,7 @@ function resolveSwiftPackages(options) {
|
|
|
65153
65169
|
if (provided.has(name3) && placeholderPackage(pkg)) return;
|
|
65154
65170
|
for (const dependency of pkg.manifest.targets.get(name3)?.dependencies ?? []) {
|
|
65155
65171
|
if (dependency.kind === "target") visit3(pkg, dependency.name);
|
|
65156
|
-
else {
|
|
65172
|
+
else if (!provided.has(dependency.name)) {
|
|
65157
65173
|
const nested = dependencyPackage(pkg, dependency);
|
|
65158
65174
|
if (nested && typeof nested !== "string")
|
|
65159
65175
|
for (const root of nested.manifest.products.get(dependency.name)?.targets ?? [])
|
|
@@ -65162,6 +65178,7 @@ function resolveSwiftPackages(options) {
|
|
|
65162
65178
|
}
|
|
65163
65179
|
};
|
|
65164
65180
|
for (const { product, source } of listed) {
|
|
65181
|
+
if (provided.has(product)) continue;
|
|
65165
65182
|
const pkg = source.kind === "unnamed" ? unnamed(source, product) : packages.get(sourceKey(source));
|
|
65166
65183
|
if (!pkg || typeof pkg === "string") continue;
|
|
65167
65184
|
for (const root of pkg.manifest.products.get(product)?.targets ?? [])
|
|
@@ -65986,11 +66003,11 @@ ${uikit}${body}`
|
|
|
65986
66003
|
function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
|
|
65987
66004
|
const artifact = xcframework(binary2);
|
|
65988
66005
|
const slice = simulatorSlice(artifact.dir);
|
|
65989
|
-
const found = surfaces(artifact.dir, slice);
|
|
66006
|
+
const found = surfaces(artifact.dir, binary2.target, slice);
|
|
65990
66007
|
const frameworks = [
|
|
65991
66008
|
...new Set(
|
|
65992
66009
|
found.flatMap(
|
|
65993
|
-
(surface) => "modulemap" in surface && import_node_path71.default.basename(import_node_path71.default.dirname(surface.modulemap)) === "Modules" ? [import_node_path71.default.dirname(
|
|
66010
|
+
(surface) => "modulemap" in surface && import_node_path71.default.basename(import_node_path71.default.dirname(surface.modulemap)) === "Modules" ? [import_node_path71.default.dirname(surface.headers)] : []
|
|
65994
66011
|
)
|
|
65995
66012
|
)
|
|
65996
66013
|
];
|
|
@@ -66055,8 +66072,21 @@ function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
|
|
|
66055
66072
|
import_node_path71.default.join(pending, "frameworks", import_node_path71.default.basename(framework), part),
|
|
66056
66073
|
{ recursive: true, dereference: true }
|
|
66057
66074
|
);
|
|
66075
|
+
const surface = found.find(
|
|
66076
|
+
(item) => "headers" in item && import_node_path71.default.dirname(item.headers) === framework
|
|
66077
|
+
);
|
|
66078
|
+
if (surface && "modulemap" in surface) {
|
|
66079
|
+
const modules = import_node_path71.default.join(
|
|
66080
|
+
pending,
|
|
66081
|
+
"frameworks",
|
|
66082
|
+
import_node_path71.default.basename(framework),
|
|
66083
|
+
"Modules"
|
|
66084
|
+
);
|
|
66085
|
+
import_node_fs73.default.mkdirSync(modules, { recursive: true });
|
|
66086
|
+
import_node_fs73.default.copyFileSync(surface.modulemap, import_node_path71.default.join(modules, "module.modulemap"));
|
|
66087
|
+
}
|
|
66058
66088
|
}
|
|
66059
|
-
for (const [index, directory2] of headers.entries())
|
|
66089
|
+
for (const [index, directory2] of headers.entries()) {
|
|
66060
66090
|
import_node_fs73.default.cpSync(directory2, import_node_path71.default.join(pending, "headers", String(index)), {
|
|
66061
66091
|
recursive: true,
|
|
66062
66092
|
dereference: true,
|
|
@@ -66064,6 +66094,15 @@ function binaryHeaderSearchPaths(binary2, root, declaredFrameworks) {
|
|
|
66064
66094
|
filter: (source) => import_node_fs73.default.statSync(source).isDirectory() ? import_node_path71.default.dirname(source) !== directory2 || !import_node_path71.default.basename(source).startsWith("ios-") : !isBinaryLibraryFile(source)
|
|
66065
66095
|
} : {}
|
|
66066
66096
|
});
|
|
66097
|
+
const surface = found.find(
|
|
66098
|
+
(item) => "headers" in item && item.headers === directory2
|
|
66099
|
+
);
|
|
66100
|
+
if (surface && "modulemap" in surface)
|
|
66101
|
+
import_node_fs73.default.copyFileSync(
|
|
66102
|
+
surface.modulemap,
|
|
66103
|
+
import_node_path71.default.join(pending, "headers", String(index), "module.modulemap")
|
|
66104
|
+
);
|
|
66105
|
+
}
|
|
66067
66106
|
const contents = (0, import_node_crypto39.createHash)("sha256");
|
|
66068
66107
|
for (const relative5 of import_node_fs73.default.readdirSync(pending, { recursive: true, encoding: "utf8" }).sort()) {
|
|
66069
66108
|
const file = import_node_path71.default.join(pending, relative5);
|
|
@@ -66117,7 +66156,7 @@ function simulatorSlice(xcframeworkDir) {
|
|
|
66117
66156
|
const slice = import_node_fs73.default.readdirSync(xcframeworkDir).filter((name3) => /^ios-.+-simulator$/.test(name3)).sort()[0];
|
|
66118
66157
|
return slice ? import_node_path71.default.join(xcframeworkDir, slice) : null;
|
|
66119
66158
|
}
|
|
66120
|
-
function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
|
|
66159
|
+
function surfaces(xcframeworkDir, target, slice = simulatorSlice(xcframeworkDir)) {
|
|
66121
66160
|
const standaloneMap = import_node_path71.default.join(xcframeworkDir, "module.modulemap");
|
|
66122
66161
|
if (import_node_fs73.default.existsSync(standaloneMap)) {
|
|
66123
66162
|
const module2 = moduleMapName(import_node_fs73.default.readFileSync(standaloneMap, "utf8"));
|
|
@@ -66138,7 +66177,16 @@ function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
|
|
|
66138
66177
|
(name3) => name3.endsWith(".swiftinterface") && !name3.endsWith(".private.swiftinterface") && !name3.endsWith(".package.swiftinterface")
|
|
66139
66178
|
);
|
|
66140
66179
|
const chosen = interfaces.find((name3) => name3.startsWith("arm64-")) ?? interfaces[0] ?? null;
|
|
66141
|
-
|
|
66180
|
+
let modulemap = import_node_path71.default.join(framework, "Modules", "module.modulemap");
|
|
66181
|
+
const headers2 = import_node_path71.default.join(framework, "Headers");
|
|
66182
|
+
if (!import_node_fs73.default.existsSync(modulemap) && files(headers2, (name3) => name3.endsWith(".h")).length) {
|
|
66183
|
+
const umbrella = import_node_fs73.default.existsSync(import_node_path71.default.join(headers2, `${module2}.h`)) ? `umbrella header "${module2}.h"` : 'umbrella "Headers"';
|
|
66184
|
+
modulemap = generatedModuleMap(
|
|
66185
|
+
`framework module ${module2} { ${umbrella} export * module * { export * } }
|
|
66186
|
+
`,
|
|
66187
|
+
true
|
|
66188
|
+
);
|
|
66189
|
+
}
|
|
66142
66190
|
if (chosen) {
|
|
66143
66191
|
const privateInterface = import_node_path71.default.join(
|
|
66144
66192
|
swiftmodule,
|
|
@@ -66170,8 +66218,33 @@ function surfaces(xcframeworkDir, slice = simulatorSlice(xcframeworkDir)) {
|
|
|
66170
66218
|
const module2 = moduleMapName(import_node_fs73.default.readFileSync(modulemap, "utf8"));
|
|
66171
66219
|
if (module2) found.push(headerSurface(module2, modulemap, import_node_path71.default.dirname(modulemap)));
|
|
66172
66220
|
}
|
|
66221
|
+
if (found.length === 0 && files(headers, (name3) => name3.endsWith(".h")).length) {
|
|
66222
|
+
const module2 = swiftTargetModuleName(target);
|
|
66223
|
+
const modulemap = generatedModuleMap(
|
|
66224
|
+
`module ${module2} { umbrella "." export * }
|
|
66225
|
+
`,
|
|
66226
|
+
false
|
|
66227
|
+
);
|
|
66228
|
+
found.push(headerSurface(module2, modulemap, headers));
|
|
66229
|
+
}
|
|
66173
66230
|
return found;
|
|
66174
66231
|
}
|
|
66232
|
+
function generatedModuleMap(text6, framework) {
|
|
66233
|
+
const dir = import_node_path71.default.join(
|
|
66234
|
+
cacheDir4,
|
|
66235
|
+
"modulemaps",
|
|
66236
|
+
key(text6),
|
|
66237
|
+
framework ? "Modules" : "Headers"
|
|
66238
|
+
);
|
|
66239
|
+
import_node_fs73.default.mkdirSync(dir, { recursive: true });
|
|
66240
|
+
const file = import_node_path71.default.join(dir, "module.modulemap");
|
|
66241
|
+
if (!import_node_fs73.default.existsSync(file)) {
|
|
66242
|
+
const pending = `${file}.${process.pid}.tmp`;
|
|
66243
|
+
import_node_fs73.default.writeFileSync(pending, text6);
|
|
66244
|
+
import_node_fs73.default.renameSync(pending, file);
|
|
66245
|
+
}
|
|
66246
|
+
return file;
|
|
66247
|
+
}
|
|
66175
66248
|
function peachModuleDirs(toolchain, imports2, sdkIncludes) {
|
|
66176
66249
|
const { moduleRoot, toolchainBin } = toolchain;
|
|
66177
66250
|
if (swiftDistributionAt(moduleRoot)) return [import_node_path71.default.join(moduleRoot, "modules")];
|
|
@@ -66311,22 +66384,24 @@ function swiftStandin(surface, binary2, toolchain, work, behavior, siblings) {
|
|
|
66311
66384
|
symbolgraphWasm.push(wasm[index]);
|
|
66312
66385
|
}
|
|
66313
66386
|
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
|
-
|
|
66387
|
+
exec(
|
|
66388
|
+
...withoutCoreDump(import_node_path71.default.join(toolchain.toolchainBin, "swift-symbolgraph-extract"), [
|
|
66389
|
+
"-module-name",
|
|
66390
|
+
surface.module,
|
|
66391
|
+
...symbolgraphWasm,
|
|
66392
|
+
"-I",
|
|
66393
|
+
search,
|
|
66394
|
+
// at public the graph drops underscored public declarations, which other
|
|
66395
|
+
// public ones name; the emitter keeps only public and open symbols
|
|
66396
|
+
"-minimum-access-level",
|
|
66397
|
+
"internal",
|
|
66398
|
+
"-include-spi-symbols",
|
|
66399
|
+
"-skip-synthesized-members",
|
|
66400
|
+
"-omit-extension-block-symbols",
|
|
66401
|
+
"-output-dir",
|
|
66402
|
+
out
|
|
66403
|
+
])
|
|
66404
|
+
);
|
|
66330
66405
|
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
66406
|
const supplemented = synthesizedInterfaceEnums(text6, surface.module, graphs);
|
|
66332
66407
|
restoreSwiftInterfaceSPI(text6, surface.module, graphs);
|
|
@@ -66589,18 +66664,39 @@ function wasmFlags(toolchain, imports2) {
|
|
|
66589
66664
|
...toolchain.standinModules ? ["-I", toolchain.standinModules] : []
|
|
66590
66665
|
];
|
|
66591
66666
|
}
|
|
66592
|
-
function objcStandin(surface, binary2, toolchain, work, behavior) {
|
|
66667
|
+
function objcStandin(surface, binary2, toolchain, work, behavior, frameworks, siblings) {
|
|
66593
66668
|
const view = objcView(
|
|
66594
66669
|
surface,
|
|
66595
66670
|
toolchain.toolchainBin,
|
|
66596
66671
|
import_node_path71.default.join(toolchain.moduleRoot, "ios-simulator-stdlib"),
|
|
66597
66672
|
cacheDir4,
|
|
66598
|
-
import_node_path71.default.join(work, "objc")
|
|
66673
|
+
import_node_path71.default.join(work, "objc"),
|
|
66674
|
+
void 0,
|
|
66675
|
+
frameworks.dirs
|
|
66599
66676
|
);
|
|
66600
66677
|
const provided = new Set(swiftPeachModules(toolchain.moduleRoot));
|
|
66601
66678
|
const headerModules = view.imports.filter(
|
|
66602
|
-
(name3) => !STANDIN_IMPORTS.includes(name3) && provided.has(name3)
|
|
66679
|
+
(name3) => !STANDIN_IMPORTS.includes(name3) && (provided.has(name3) || siblings.has(name3))
|
|
66603
66680
|
);
|
|
66681
|
+
const dependencyGraphs = headerModules.flatMap((module2) => {
|
|
66682
|
+
const dependency = frameworks.surfaces.get(module2);
|
|
66683
|
+
if (!dependency || module2 === surface.module) return [];
|
|
66684
|
+
return objcView(
|
|
66685
|
+
{
|
|
66686
|
+
module: dependency.module,
|
|
66687
|
+
modulemap: dependency.modulemap,
|
|
66688
|
+
headers: dependency.headers
|
|
66689
|
+
},
|
|
66690
|
+
toolchain.toolchainBin,
|
|
66691
|
+
import_node_path71.default.join(toolchain.moduleRoot, "ios-simulator-stdlib"),
|
|
66692
|
+
cacheDir4,
|
|
66693
|
+
import_node_path71.default.join(work, "dependencies", module2),
|
|
66694
|
+
void 0,
|
|
66695
|
+
frameworks.dirs.filter(
|
|
66696
|
+
(dir) => !import_node_fs73.default.existsSync(import_node_path71.default.join(dir, `${module2}.framework`))
|
|
66697
|
+
)
|
|
66698
|
+
).graphs;
|
|
66699
|
+
});
|
|
66604
66700
|
return graphStandin(
|
|
66605
66701
|
surface.module,
|
|
66606
66702
|
view.graphs,
|
|
@@ -66617,10 +66713,16 @@ function objcStandin(surface, binary2, toolchain, work, behavior) {
|
|
|
66617
66713
|
(dependency) => swiftTargetModuleName(dependency.module)
|
|
66618
66714
|
) ?? []
|
|
66619
66715
|
])
|
|
66620
|
-
]
|
|
66716
|
+
],
|
|
66717
|
+
false,
|
|
66718
|
+
/* @__PURE__ */ new Map(),
|
|
66719
|
+
null,
|
|
66720
|
+
/* @__PURE__ */ new Map(),
|
|
66721
|
+
/* @__PURE__ */ new Map(),
|
|
66722
|
+
dependencyGraphs
|
|
66621
66723
|
);
|
|
66622
66724
|
}
|
|
66623
|
-
function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, behavior, imports2 = [], requireSwift = false, objcProperties = /* @__PURE__ */ new Map(), placeholder = null, inheritedConformances = /* @__PURE__ */ new Map(), projections = /* @__PURE__ */ new Map()) {
|
|
66725
|
+
function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, behavior, imports2 = [], requireSwift = false, objcProperties = /* @__PURE__ */ new Map(), placeholder = null, inheritedConformances = /* @__PURE__ */ new Map(), projections = /* @__PURE__ */ new Map(), dependencyGraphs = []) {
|
|
66624
66726
|
const paths = new Set(
|
|
66625
66727
|
graphs.flatMap(
|
|
66626
66728
|
(graph) => graph.symbols.map((symbol2) => symbol2.pathComponents.join("."))
|
|
@@ -66676,6 +66778,7 @@ function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, b
|
|
|
66676
66778
|
objcProperties,
|
|
66677
66779
|
inheritedConformances,
|
|
66678
66780
|
projections,
|
|
66781
|
+
dependencyGraphs,
|
|
66679
66782
|
...placeholder ? { exported: placeholder.exported, placeholder: binary2.placeholder.gap } : {}
|
|
66680
66783
|
});
|
|
66681
66784
|
for (const entry of skipped) {
|
|
@@ -67341,6 +67444,11 @@ async function sourceStandins(binaries, toolchain, provided, behavior) {
|
|
|
67341
67444
|
}))
|
|
67342
67445
|
});
|
|
67343
67446
|
} else {
|
|
67447
|
+
const absent = missingArtifactGap(binary2);
|
|
67448
|
+
if (absent !== null) {
|
|
67449
|
+
gaps.set(binary2.target, absent);
|
|
67450
|
+
continue;
|
|
67451
|
+
}
|
|
67344
67452
|
const resolved = xcframework(binary2);
|
|
67345
67453
|
const dir = import_node_path71.default.join(artifact, String(index), import_node_path71.default.basename(resolved.dir));
|
|
67346
67454
|
import_node_fs73.default.cpSync(resolved.dir, dir, { recursive: true, dereference: true });
|
|
@@ -67476,7 +67584,9 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
|
|
|
67476
67584
|
const modules = new Set(
|
|
67477
67585
|
binaries.flatMap((binary2) => {
|
|
67478
67586
|
try {
|
|
67479
|
-
return binary2.publicHeaders !== void 0 || binary2.placeholder !== void 0 ? [swiftTargetModuleName(binary2.target)] : surfaces(xcframework(binary2).dir).map(
|
|
67587
|
+
return binary2.publicHeaders !== void 0 || binary2.placeholder !== void 0 ? [swiftTargetModuleName(binary2.target)] : surfaces(xcframework(binary2).dir, binary2.target).map(
|
|
67588
|
+
(surface) => surface.module
|
|
67589
|
+
);
|
|
67480
67590
|
} catch {
|
|
67481
67591
|
return [];
|
|
67482
67592
|
}
|
|
@@ -67509,7 +67619,9 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
|
|
|
67509
67619
|
if (binary2.publicHeaders !== void 0 && swiftTargetModuleName(binary2.target) !== binary2.target)
|
|
67510
67620
|
parts.push(`module/${swiftTargetModuleName(binary2.target)}`);
|
|
67511
67621
|
try {
|
|
67512
|
-
if (binary2.publicHeaders === void 0 && surfaces(xcframework(binary2).dir).some(
|
|
67622
|
+
if (binary2.publicHeaders === void 0 && surfaces(xcframework(binary2).dir, binary2.target).some(
|
|
67623
|
+
(surface) => surface.kind === "swift"
|
|
67624
|
+
))
|
|
67513
67625
|
parts.push(`interface-emulation/${WASI_EMULATION.join(",")}`);
|
|
67514
67626
|
parts.push(
|
|
67515
67627
|
binary2.target,
|
|
@@ -67537,10 +67649,14 @@ function standinGenerationInputs(binaries, toolchain, behavior = {}, sourceDir)
|
|
|
67537
67649
|
}
|
|
67538
67650
|
return (0, import_node_crypto39.createHash)("sha256").update(parts.join("\0")).digest("hex");
|
|
67539
67651
|
}
|
|
67652
|
+
function missingArtifactGap(binary2) {
|
|
67653
|
+
if (swiftBinaryOnDisk(binary2)) return null;
|
|
67654
|
+
return `${import_node_path71.default.relative(process.cwd(), binary2.dir) || binary2.dir} is not on disk, and Xcode fails without it too; run the script that downloads or builds it, then run again`;
|
|
67655
|
+
}
|
|
67540
67656
|
async function binaryStandins(binary2, toolchain, provided, behavior, frameworks, siblings) {
|
|
67541
67657
|
if (provided.has(binary2.target)) return [];
|
|
67542
|
-
|
|
67543
|
-
|
|
67658
|
+
const absent = missingArtifactGap(binary2);
|
|
67659
|
+
if (absent !== null) return absent;
|
|
67544
67660
|
import_node_fs73.default.mkdirSync(cacheDir4, { recursive: true });
|
|
67545
67661
|
const work = import_node_fs73.default.mkdtempSync(import_node_path71.default.join(cacheDir4, "work-"));
|
|
67546
67662
|
let all;
|
|
@@ -67592,7 +67708,7 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
67592
67708
|
].join("\0");
|
|
67593
67709
|
} else {
|
|
67594
67710
|
const artifact = xcframework(binary2);
|
|
67595
|
-
all = surfaces(artifact.dir);
|
|
67711
|
+
all = surfaces(artifact.dir, binary2.target);
|
|
67596
67712
|
digest3 = artifact.digest;
|
|
67597
67713
|
}
|
|
67598
67714
|
} catch (error) {
|
|
@@ -67611,7 +67727,8 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
67611
67727
|
);
|
|
67612
67728
|
hash.update(digest3);
|
|
67613
67729
|
hash.update([...siblings].sort().join("\0"));
|
|
67614
|
-
if (found.some((surface) => surface.kind === "mixed"
|
|
67730
|
+
if (found.some((surface) => surface.kind === "mixed" || surface.kind === "objc"))
|
|
67731
|
+
hash.update(frameworks.digest);
|
|
67615
67732
|
for (const surface of found) {
|
|
67616
67733
|
hash.update(`${surface.kind}\0${surface.module}\0`);
|
|
67617
67734
|
for (const file of surface.kind === "swift" ? [surface.interface] : surface.kind === "source" ? surface.sources : [
|
|
@@ -67688,7 +67805,9 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
67688
67805
|
binary2,
|
|
67689
67806
|
toolchain,
|
|
67690
67807
|
dir,
|
|
67691
|
-
new Map(Object.entries(configured.get(surface.module) ?? {}))
|
|
67808
|
+
new Map(Object.entries(configured.get(surface.module) ?? {})),
|
|
67809
|
+
frameworks,
|
|
67810
|
+
siblings
|
|
67692
67811
|
) : binary2.cxxHeaders ? await cxxStandin(surface, binary2, toolchain, dir) : cStandin(surface, binary2, toolchain, dir)
|
|
67693
67812
|
);
|
|
67694
67813
|
} catch (error) {
|
|
@@ -67711,6 +67830,19 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
67711
67830
|
return settle(result);
|
|
67712
67831
|
}
|
|
67713
67832
|
async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new Set(), behavior = {}) {
|
|
67833
|
+
const built2 = await buildStandins(binaries, toolchain, provided, behavior);
|
|
67834
|
+
return {
|
|
67835
|
+
standins: built2.standins,
|
|
67836
|
+
gaps: new Map([...built2.gaps].map(([target, gap]) => [target, gapText(gap)]))
|
|
67837
|
+
};
|
|
67838
|
+
}
|
|
67839
|
+
function gapText(gap) {
|
|
67840
|
+
const lines = gap.split("\n").map((line) => line.trim()).filter((line) => line && !/^[{[\]}",]/.test(line) && !/"kind":/.test(line));
|
|
67841
|
+
const errors = lines.filter((line) => /\berror:/.test(line));
|
|
67842
|
+
const text6 = (errors.length > 0 ? errors : lines).slice(0, 4).join("; ");
|
|
67843
|
+
return text6.length > 600 ? `${text6.slice(0, 600)}\u2026` : text6;
|
|
67844
|
+
}
|
|
67845
|
+
async function buildStandins(binaries, toolchain, provided, behavior) {
|
|
67714
67846
|
const requested = binaries.filter((binary2) => !provided.has(binary2.target));
|
|
67715
67847
|
if (requested.length === 0) return { standins: [], gaps: /* @__PURE__ */ new Map() };
|
|
67716
67848
|
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))
|
|
@@ -67720,6 +67852,7 @@ async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new
|
|
|
67720
67852
|
import_node_fs73.default.mkdirSync(cacheDir4, { recursive: true });
|
|
67721
67853
|
const modules = import_node_fs73.default.mkdtempSync(import_node_path71.default.join(cacheDir4, "modules-"));
|
|
67722
67854
|
const frameworkDirs = /* @__PURE__ */ new Set();
|
|
67855
|
+
const frameworkSurfaces = /* @__PURE__ */ new Map();
|
|
67723
67856
|
const frameworkInputs = [];
|
|
67724
67857
|
const byModule = new Map(
|
|
67725
67858
|
binaries.map((binary2) => [swiftTargetModuleName(binary2.target), binary2])
|
|
@@ -67743,16 +67876,26 @@ async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new
|
|
|
67743
67876
|
frameworkInputs.push(`${binary2.target}\0${artifact.digest}`);
|
|
67744
67877
|
const imports2 = /* @__PURE__ */ new Set();
|
|
67745
67878
|
interfaceImports.set(binary2, imports2);
|
|
67746
|
-
for (const surface of surfaces(artifact.dir)) {
|
|
67879
|
+
for (const surface of surfaces(artifact.dir, binary2.target)) {
|
|
67747
67880
|
byModule.set(surface.module, binary2);
|
|
67748
67881
|
if (surface.kind === "swift" || surface.kind === "mixed")
|
|
67749
67882
|
for (const module2 of swiftImportNames(
|
|
67750
67883
|
import_node_fs73.default.readFileSync(surface.interface, "utf8")
|
|
67751
67884
|
))
|
|
67752
67885
|
imports2.add(module2);
|
|
67886
|
+
if (surface.kind === "objc" || surface.kind === "mixed")
|
|
67887
|
+
for (const file of files(surface.headers, (name3) => name3.endsWith(".h")))
|
|
67888
|
+
for (const module2 of clangImportNames(
|
|
67889
|
+
import_node_fs73.default.readFileSync(import_node_path71.default.join(surface.headers, file), "utf8")
|
|
67890
|
+
))
|
|
67891
|
+
imports2.add(module2);
|
|
67753
67892
|
if (surface.kind === "c") continue;
|
|
67893
|
+
if (surface.kind === "objc" || surface.kind === "mixed")
|
|
67894
|
+
frameworkSurfaces.set(surface.module, surface);
|
|
67895
|
+
if (surface.kind !== "swift" && import_node_path71.default.basename(import_node_path71.default.dirname(surface.modulemap)) !== "Modules")
|
|
67896
|
+
continue;
|
|
67754
67897
|
frameworkDirs.add(
|
|
67755
|
-
surface.kind === "swift" ? import_node_path71.default.resolve(surface.interface, "../../../..") : import_node_path71.default.resolve(surface.
|
|
67898
|
+
surface.kind === "swift" ? import_node_path71.default.resolve(surface.interface, "../../../..") : import_node_path71.default.resolve(surface.headers, "../..")
|
|
67756
67899
|
);
|
|
67757
67900
|
}
|
|
67758
67901
|
} catch {
|
|
@@ -67761,7 +67904,8 @@ async function swiftStandins(binaries, toolchain, provided = /* @__PURE__ */ new
|
|
|
67761
67904
|
const generatedToolchain = { ...toolchain, standinModules: modules };
|
|
67762
67905
|
const frameworks = {
|
|
67763
67906
|
dirs: [...frameworkDirs].sort(),
|
|
67764
|
-
digest: (0, import_node_crypto39.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex")
|
|
67907
|
+
digest: (0, import_node_crypto39.createHash)("sha256").update(frameworkInputs.sort().join("\0")).digest("hex"),
|
|
67908
|
+
surfaces: frameworkSurfaces
|
|
67765
67909
|
};
|
|
67766
67910
|
const siblings = new Map(
|
|
67767
67911
|
binaries.map((binary2) => [
|
|
@@ -67866,6 +68010,7 @@ var init_swift_standins = __esm({
|
|
|
67866
68010
|
init_swift_cxx_standin();
|
|
67867
68011
|
init_swift_objc_standin();
|
|
67868
68012
|
init_swift_package();
|
|
68013
|
+
init_swift_packages();
|
|
67869
68014
|
init_swift_shared_sdk();
|
|
67870
68015
|
init_swift_standin_digest();
|
|
67871
68016
|
init_swift_standin_emit();
|
|
@@ -82401,7 +82546,7 @@ var init_nitro_superset = __esm({
|
|
|
82401
82546
|
init_swift_standin_digest();
|
|
82402
82547
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
82403
82548
|
packageVersion = (root) => JSON.parse((0, import_node_fs92.readFileSync)((0, import_node_path90.join)(root, "package.json"), "utf8")).version;
|
|
82404
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
82549
|
+
NITRO_COMPILER_DIGEST = true ? "e08d3309819dfdf5f954d2989f492cc3d239958e8bcdbaad4bf0a6841a5b6b86" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
82405
82550
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
82406
82551
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
82407
82552
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1965 | (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.1965 | (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.1965 | (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.1965 | (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.1965 | (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.1965 | (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;
|