peachsim 0.1.2773 → 0.1.2775
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 +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +318 -199
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-3SGU25AX.mjs → acorn-CTIC3GCU.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-KMMFDGYA.mjs → chunk-2YTHEKWJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-2HWUPAOD.mjs → chunk-3WU4YTJR.mjs} +205 -166
- package/dist-lib/esm-chunks/{chunk-ORGP6SSO.mjs → chunk-4B46TF64.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QMI7ECNF.mjs → chunk-C5EU2DRL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DFVWY2BW.mjs → chunk-CFNSLWMQ.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-HN7CHPZK.mjs → chunk-E6ULRDAP.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IQF674WE.mjs → chunk-ESP2U4IX.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-5DQRSOJ5.mjs → chunk-ESWEEZZP.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-4FVDW5QX.mjs → chunk-FBN2C43P.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-NH3CEIBN.mjs → chunk-FVUN2533.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-IM2IAOAZ.mjs → chunk-GKKZLYBA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-SZ7TVJHH.mjs → chunk-H5TBKFDB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GSZLZNZM.mjs → chunk-ITTQHQD5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-XXLSXSUK.mjs → chunk-JERE5CAK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WBPJJXMA.mjs → chunk-MJSKVK7E.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-Q2EEH42W.mjs → chunk-NV5NLKKN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-G5TS3L6A.mjs → chunk-RGOPQX37.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-KEVJJ3QT.mjs → chunk-S47B7YHJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-FRPS6V6P.mjs → chunk-SK4FQLNJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YZRKIUVZ.mjs → chunk-TE3WHBF3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ANTOZ3UC.mjs → chunk-W42DUKWD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DYKZYFHH.mjs → chunk-WB5OWF4G.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-KZ2NH7C4.mjs → chunk-XMBGLLON.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MRQ72NMR.mjs → chunk-YRKGWASL.mjs} +6 -6
- package/dist-lib/esm-chunks/{metro-layout-parser-5MEY33AK.mjs → metro-layout-parser-2RQ3WC37.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-3FLCNBQT.mjs → swift-package-prebuilt-L5SWVH6U.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-PPJ4LUOW.mjs → swift-sdk-app-module-5SWDBTBY.mjs} +107 -25
- package/dist-lib/esm-chunks/{swift-sdk-image-L5MERITP.mjs → swift-sdk-image-OOSMI47A.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-IILRYXVN.mjs → swift-sdk-image-producer-DL4VEBXN.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +318 -199
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +4327 -4209
- package/dist-lib/host/fetch-proxy-handler.cjs +343 -340
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +15 -15
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +86 -86
- package/dist-lib/public-origins-lib.json +96 -96
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- 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 +8 -8
- package/dist-lib/skills.cjs +2912 -2794
- package/dist-lib/swift-compile.cjs +314 -195
- package/dist-lib/swift-compile.mjs +12 -12
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/dist-types/packages/peach-engine/src/ios/duo-vertical-bar-geometry.d.ts +0 -15
- package/dist-types/packages/peach-engine/src/ios/flex-interaction.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/react-native/AppState.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/react-native/Keyboard.d.ts +0 -1
- package/dist-types/packages/peach-kit/src/ring-mode-state.d.ts +0 -1
- package/dist-types/packages/peach-kit/src/transitions/screen-transition-math.d.ts +0 -31
- package/package.json +1 -1
- package/src/assetCatalogContract.ts +0 -6
- package/src/expo-pod-prebuilt.ts +0 -63
- package/src/native-package-slice.ts +0 -2
- package/src/podfile-cocoapods.ts +0 -5
- package/src/runtime-assets.ts +0 -9
- package/src/sfSymbolMetricsContract.ts +51 -23
- package/src/swift-compile.ts +9 -6
- package/src/swift-distribution-mirror.ts +16 -5
- package/src/swift-guest-compile.ts +18 -7
- package/src/swift-guest-link.ts +0 -9
- package/src/swift-guest-projection-storage.ts +15 -2
- package/src/swift-guest-projection.ts +1 -46
- package/src/swift-guest-runtime-plan.ts +4 -80
- package/src/swift-header-compiler.ts +24 -9
- package/src/swift-sdk-app-module.ts +113 -10
- package/src/swift-wasm-prune.ts +0 -5
- package/src/swiftRuntimeProductContract.ts +1 -0
- package/src/swiftSdkLinkContract.ts +10 -0
- package/src/wasm-narrow-boundary.ts +0 -13
- package/src/wasm-lazy-split-tool.ts +0 -210
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2775 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
acquireSwiftRootReadHold,
|
|
4
4
|
hasLiveSwiftRootReaders,
|
|
5
5
|
retainSwiftRootReadHold,
|
|
6
6
|
withSwiftRootLock
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ESWEEZZP.mjs";
|
|
8
8
|
import {
|
|
9
9
|
CORE_FOUNDATION_OVERLAY_GLOBALS,
|
|
10
10
|
NATIVE_GRAPH_SDK_VERSION,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
withoutImportedSdkEnumForwards,
|
|
59
59
|
withoutSwiftDeclarations,
|
|
60
60
|
writeBuildFile
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-YRKGWASL.mjs";
|
|
62
62
|
import {
|
|
63
63
|
SWIFT_AUTOLINK_LINKER,
|
|
64
64
|
SWIFT_CACHE_HOLD_MARKER,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
wasmThreadLinkFlags,
|
|
76
76
|
windowAdmission,
|
|
77
77
|
writeSwiftAutolinkLinker
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-FBN2C43P.mjs";
|
|
79
79
|
import {
|
|
80
80
|
SWIFT_BINARY_TREES_DIR,
|
|
81
81
|
SWIFT_NATIVE_INPUT_ROOT,
|
|
@@ -90,7 +90,7 @@ import {
|
|
|
90
90
|
isSwiftResourcePath,
|
|
91
91
|
isSwiftSourceLinkGraph,
|
|
92
92
|
swiftProjectFilesProblems
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-XMBGLLON.mjs";
|
|
94
94
|
import {
|
|
95
95
|
OBJC_RESOURCE_ACCESSOR_BODY,
|
|
96
96
|
OBJC_RESOURCE_ACCESSOR_HEADER,
|
|
@@ -113,16 +113,16 @@ import {
|
|
|
113
113
|
swiftPackagePartition,
|
|
114
114
|
swiftTargetModuleName,
|
|
115
115
|
withoutGlogModuleMap
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-S47B7YHJ.mjs";
|
|
117
117
|
import {
|
|
118
118
|
rnxPublicBrand
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-W42DUKWD.mjs";
|
|
120
120
|
import {
|
|
121
121
|
isRecord
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-2YTHEKWJ.mjs";
|
|
123
123
|
import {
|
|
124
124
|
__publicField
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-NV5NLKKN.mjs";
|
|
126
126
|
|
|
127
127
|
// src/swift-compile.ts
|
|
128
128
|
import {
|
|
@@ -3421,6 +3421,122 @@ import {
|
|
|
3421
3421
|
writeFileSync
|
|
3422
3422
|
} from "node:fs";
|
|
3423
3423
|
import path4 from "node:path";
|
|
3424
|
+
|
|
3425
|
+
// src/swiftRuntimeProductContract.ts
|
|
3426
|
+
var SWIFT_FRAMEWORK_PRODUCT_FILE = "lib/framework-product.json";
|
|
3427
|
+
var swiftFrameworkProductSchema = object({
|
|
3428
|
+
version: literal(1),
|
|
3429
|
+
packageName: string(),
|
|
3430
|
+
manifestSha256: pipe(string(), regex(/^[a-f0-9]{64}$/)),
|
|
3431
|
+
product: object({
|
|
3432
|
+
name: string(),
|
|
3433
|
+
linkage: picklist(["static", "dynamic", "automatic"]),
|
|
3434
|
+
targets: array(string())
|
|
3435
|
+
}),
|
|
3436
|
+
// framework names are distinct from SDK library linkNames. they identify
|
|
3437
|
+
// the packaged owner, not an observed native image dependency.
|
|
3438
|
+
frameworkAliases: array(
|
|
3439
|
+
object({
|
|
3440
|
+
kind: literal("framework"),
|
|
3441
|
+
name: string(),
|
|
3442
|
+
targets: array(string()),
|
|
3443
|
+
moduleMap: string(),
|
|
3444
|
+
moduleMapSha256: pipe(string(), regex(/^[a-f0-9]{64}$/)),
|
|
3445
|
+
wasmSdkId: string(),
|
|
3446
|
+
wasmSdkChecksum: pipe(string(), regex(/^[a-f0-9]{64}$/))
|
|
3447
|
+
})
|
|
3448
|
+
),
|
|
3449
|
+
targets: array(
|
|
3450
|
+
object({
|
|
3451
|
+
name: string(),
|
|
3452
|
+
path: string(),
|
|
3453
|
+
kind: picklist(["regular", "system"]),
|
|
3454
|
+
dependencies: array(string())
|
|
3455
|
+
})
|
|
3456
|
+
),
|
|
3457
|
+
objects: array(object({ path: string(), target: string() })),
|
|
3458
|
+
autolink: array(string())
|
|
3459
|
+
});
|
|
3460
|
+
var SWIFT_SDK_PRODUCT_FILE = "runtime-products.json";
|
|
3461
|
+
var SWIFT_SDK_PRODUCT_DIRECTORY = "swift.xctoolchain/usr/lib/swift_static/wasi";
|
|
3462
|
+
var swiftSdkProductSchema = pipe(
|
|
3463
|
+
object({
|
|
3464
|
+
id: string(),
|
|
3465
|
+
installName: string(),
|
|
3466
|
+
target: literal(SWIFT_WASM_TRIPLE),
|
|
3467
|
+
linkNames: array(string()),
|
|
3468
|
+
// absent records declare no framework namespace, even when a library name matches.
|
|
3469
|
+
frameworkAliases: optional(
|
|
3470
|
+
array(
|
|
3471
|
+
object({
|
|
3472
|
+
name: string(),
|
|
3473
|
+
moduleMap: string(),
|
|
3474
|
+
moduleMapSha256: pipe(string(), regex(/^[a-f0-9]{64}$/))
|
|
3475
|
+
})
|
|
3476
|
+
),
|
|
3477
|
+
[]
|
|
3478
|
+
),
|
|
3479
|
+
buildDependencies: array(string()),
|
|
3480
|
+
linkOwnership: picklist(["image", "containing-image"]),
|
|
3481
|
+
linkDependencies: nullable(array(string())),
|
|
3482
|
+
autolink: array(string()),
|
|
3483
|
+
sources: array(
|
|
3484
|
+
object({
|
|
3485
|
+
path: string(),
|
|
3486
|
+
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/))
|
|
3487
|
+
})
|
|
3488
|
+
),
|
|
3489
|
+
artifacts: array(
|
|
3490
|
+
variant("kind", [
|
|
3491
|
+
object({
|
|
3492
|
+
kind: literal("archive"),
|
|
3493
|
+
path: string(),
|
|
3494
|
+
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/)),
|
|
3495
|
+
members: array(
|
|
3496
|
+
object({
|
|
3497
|
+
name: string(),
|
|
3498
|
+
ordinal: pipe(number(), integer(), minValue(1)),
|
|
3499
|
+
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/)),
|
|
3500
|
+
sources: array(string())
|
|
3501
|
+
})
|
|
3502
|
+
)
|
|
3503
|
+
}),
|
|
3504
|
+
object({
|
|
3505
|
+
kind: literal("object"),
|
|
3506
|
+
path: string(),
|
|
3507
|
+
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/)),
|
|
3508
|
+
sources: array(string()),
|
|
3509
|
+
input: optional(
|
|
3510
|
+
object({
|
|
3511
|
+
product: string(),
|
|
3512
|
+
artifact: object({
|
|
3513
|
+
path: string(),
|
|
3514
|
+
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/))
|
|
3515
|
+
}),
|
|
3516
|
+
member: optional(
|
|
3517
|
+
object({
|
|
3518
|
+
name: string(),
|
|
3519
|
+
ordinal: pipe(number(), integer(), minValue(1)),
|
|
3520
|
+
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/))
|
|
3521
|
+
})
|
|
3522
|
+
)
|
|
3523
|
+
})
|
|
3524
|
+
)
|
|
3525
|
+
})
|
|
3526
|
+
])
|
|
3527
|
+
)
|
|
3528
|
+
}),
|
|
3529
|
+
check(
|
|
3530
|
+
(product) => product.linkOwnership === "image" || product.linkDependencies === null,
|
|
3531
|
+
"containing-image products cannot declare an image scope"
|
|
3532
|
+
)
|
|
3533
|
+
);
|
|
3534
|
+
var swiftSdkProductsSchema = object({
|
|
3535
|
+
version: literal(1),
|
|
3536
|
+
products: array(swiftSdkProductSchema)
|
|
3537
|
+
});
|
|
3538
|
+
|
|
3539
|
+
// src/swift-distribution-mirror.ts
|
|
3424
3540
|
var SWIFT_DISTRIBUTION_MIRROR = ".peach-distribution";
|
|
3425
3541
|
var SWIFT_SDK_MIRROR = ".peach-sdk";
|
|
3426
3542
|
var SWIFT_SDK_MIRROR_ID = "peach-wasm-sdk";
|
|
@@ -3428,6 +3544,7 @@ var SWIFT_SDK_MIRROR_RECORD = ".peach-sdk-mirror.json";
|
|
|
3428
3544
|
var SWIFT_SDK_MIRROR_SYNCING = ".peach-sdk-syncing";
|
|
3429
3545
|
var SWIFT_SDK_MIRROR_BUNDLE = "peach-wasm.artifactbundle";
|
|
3430
3546
|
var SWIFT_DISTRIBUTION_MIRROR_SYNCING = ".peach-distribution-syncing";
|
|
3547
|
+
var SDK_PRODUCT_CATALOG = `${SWIFT_SDK_PRODUCT_DIRECTORY}/${SWIFT_SDK_PRODUCT_FILE}`;
|
|
3431
3548
|
function syncSwiftDistributionMirror(root, source, manifest) {
|
|
3432
3549
|
const mirror = path4.join(root, SWIFT_DISTRIBUTION_MIRROR);
|
|
3433
3550
|
const record = path4.join(mirror, SWIFT_DISTRIBUTION_MIRROR_RECORD);
|
|
@@ -3489,10 +3606,12 @@ function syncSwiftSdkMirrorFromView(root, frameworkRoot, sourceView, sourceSdkId
|
|
|
3489
3606
|
const options = ["--swift-sdks-path", mirror];
|
|
3490
3607
|
const interrupted = existsSync(syncingMarker);
|
|
3491
3608
|
const previous = interrupted ? null : readSdkRecord(recordFile);
|
|
3492
|
-
|
|
3609
|
+
const sourceTriple = resolveSdkViewTripleDir(sourceView, sourceSdkId);
|
|
3610
|
+
const catalog = path4.join(destTriple, SDK_PRODUCT_CATALOG);
|
|
3611
|
+
const sourceCatalog = path4.join(sourceTriple, SDK_PRODUCT_CATALOG);
|
|
3612
|
+
if (previous && previous.sourceView === sourceView && previous.sourceSdkId === sourceSdkId && existsSync(bundleInfo) && existsSync(path4.join(destTriple, "swift-sdk.json")) && (!lstatSync(sourceCatalog, { throwIfNoEntry: false })?.isSymbolicLink() || lstatSync(catalog, { throwIfNoEntry: false })?.isSymbolicLink())) {
|
|
3493
3613
|
return { id: SWIFT_SDK_MIRROR_ID, options, toolsetChanged: false };
|
|
3494
3614
|
}
|
|
3495
|
-
const sourceTriple = resolveSdkViewTripleDir(sourceView, sourceSdkId);
|
|
3496
3615
|
if (!previous) {
|
|
3497
3616
|
if (!interrupted) rmSync2(mirror, { recursive: true, force: true });
|
|
3498
3617
|
rmSync2(path4.join(root, ".build"), { recursive: true, force: true });
|
|
@@ -3532,7 +3651,7 @@ function syncSwiftSdkMirrorFromView(root, frameworkRoot, sourceView, sourceSdkId
|
|
|
3532
3651
|
rmSync2(path4.join(root, ".build"), { recursive: true, force: true });
|
|
3533
3652
|
} else {
|
|
3534
3653
|
const compileTouched = touched.filter(
|
|
3535
|
-
(file) => !file.endsWith(".a") && !file.endsWith(".o") && !file.startsWith("rust/") && file !==
|
|
3654
|
+
(file) => !file.endsWith(".a") && !file.endsWith(".o") && !file.startsWith("rust/") && file !== SWIFT_SDK_PRODUCT_FILE && file !== SDK_PRODUCT_CATALOG
|
|
3536
3655
|
);
|
|
3537
3656
|
const headersChanged = compileTouched.some(
|
|
3538
3657
|
(file) => !file.endsWith(".swiftmodule") && !file.endsWith(".swiftdoc") && !file.endsWith(".swiftsourceinfo") && !file.endsWith(".abi.json")
|
|
@@ -3601,8 +3720,8 @@ function syncSdkTree(sourceDir, destDir, prefix, distributionPrefix, changed, re
|
|
|
3601
3720
|
const dest = path4.join(destDir, entry.name);
|
|
3602
3721
|
const destLstat = lstatSync(dest, { throwIfNoEntry: false });
|
|
3603
3722
|
if (entry.isSymbolicLink()) {
|
|
3604
|
-
const target = readlinkSync(src);
|
|
3605
|
-
if (target.startsWith(distributionPrefix)) {
|
|
3723
|
+
const target = path4.resolve(sourceDir, readlinkSync(src));
|
|
3724
|
+
if (target.startsWith(distributionPrefix) || rel === SDK_PRODUCT_CATALOG) {
|
|
3606
3725
|
if (destLstat?.isSymbolicLink() && readlinkSync(dest) === target) continue;
|
|
3607
3726
|
if (destLstat) rmSync2(dest, { recursive: true, force: true });
|
|
3608
3727
|
symlinkSync2(target, dest);
|
|
@@ -6212,119 +6331,6 @@ function readArMembers(buf, includeBitcode = false) {
|
|
|
6212
6331
|
return out;
|
|
6213
6332
|
}
|
|
6214
6333
|
|
|
6215
|
-
// src/swiftRuntimeProductContract.ts
|
|
6216
|
-
var SWIFT_FRAMEWORK_PRODUCT_FILE = "lib/framework-product.json";
|
|
6217
|
-
var swiftFrameworkProductSchema = object({
|
|
6218
|
-
version: literal(1),
|
|
6219
|
-
packageName: string(),
|
|
6220
|
-
manifestSha256: pipe(string(), regex(/^[a-f0-9]{64}$/)),
|
|
6221
|
-
product: object({
|
|
6222
|
-
name: string(),
|
|
6223
|
-
linkage: picklist(["static", "dynamic", "automatic"]),
|
|
6224
|
-
targets: array(string())
|
|
6225
|
-
}),
|
|
6226
|
-
// framework names are distinct from SDK library linkNames. they identify
|
|
6227
|
-
// the packaged owner, not an observed native image dependency.
|
|
6228
|
-
frameworkAliases: array(
|
|
6229
|
-
object({
|
|
6230
|
-
kind: literal("framework"),
|
|
6231
|
-
name: string(),
|
|
6232
|
-
targets: array(string()),
|
|
6233
|
-
moduleMap: string(),
|
|
6234
|
-
moduleMapSha256: pipe(string(), regex(/^[a-f0-9]{64}$/)),
|
|
6235
|
-
wasmSdkId: string(),
|
|
6236
|
-
wasmSdkChecksum: pipe(string(), regex(/^[a-f0-9]{64}$/))
|
|
6237
|
-
})
|
|
6238
|
-
),
|
|
6239
|
-
targets: array(
|
|
6240
|
-
object({
|
|
6241
|
-
name: string(),
|
|
6242
|
-
path: string(),
|
|
6243
|
-
kind: picklist(["regular", "system"]),
|
|
6244
|
-
dependencies: array(string())
|
|
6245
|
-
})
|
|
6246
|
-
),
|
|
6247
|
-
objects: array(object({ path: string(), target: string() })),
|
|
6248
|
-
autolink: array(string())
|
|
6249
|
-
});
|
|
6250
|
-
var SWIFT_SDK_PRODUCT_FILE = "runtime-products.json";
|
|
6251
|
-
var swiftSdkProductSchema = pipe(
|
|
6252
|
-
object({
|
|
6253
|
-
id: string(),
|
|
6254
|
-
installName: string(),
|
|
6255
|
-
target: literal(SWIFT_WASM_TRIPLE),
|
|
6256
|
-
linkNames: array(string()),
|
|
6257
|
-
// absent records declare no framework namespace, even when a library name matches.
|
|
6258
|
-
frameworkAliases: optional(
|
|
6259
|
-
array(
|
|
6260
|
-
object({
|
|
6261
|
-
name: string(),
|
|
6262
|
-
moduleMap: string(),
|
|
6263
|
-
moduleMapSha256: pipe(string(), regex(/^[a-f0-9]{64}$/))
|
|
6264
|
-
})
|
|
6265
|
-
),
|
|
6266
|
-
[]
|
|
6267
|
-
),
|
|
6268
|
-
buildDependencies: array(string()),
|
|
6269
|
-
linkOwnership: picklist(["image", "containing-image"]),
|
|
6270
|
-
linkDependencies: nullable(array(string())),
|
|
6271
|
-
autolink: array(string()),
|
|
6272
|
-
sources: array(
|
|
6273
|
-
object({
|
|
6274
|
-
path: string(),
|
|
6275
|
-
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/))
|
|
6276
|
-
})
|
|
6277
|
-
),
|
|
6278
|
-
artifacts: array(
|
|
6279
|
-
variant("kind", [
|
|
6280
|
-
object({
|
|
6281
|
-
kind: literal("archive"),
|
|
6282
|
-
path: string(),
|
|
6283
|
-
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/)),
|
|
6284
|
-
members: array(
|
|
6285
|
-
object({
|
|
6286
|
-
name: string(),
|
|
6287
|
-
ordinal: pipe(number(), integer(), minValue(1)),
|
|
6288
|
-
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/)),
|
|
6289
|
-
sources: array(string())
|
|
6290
|
-
})
|
|
6291
|
-
)
|
|
6292
|
-
}),
|
|
6293
|
-
object({
|
|
6294
|
-
kind: literal("object"),
|
|
6295
|
-
path: string(),
|
|
6296
|
-
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/)),
|
|
6297
|
-
sources: array(string()),
|
|
6298
|
-
input: optional(
|
|
6299
|
-
object({
|
|
6300
|
-
product: string(),
|
|
6301
|
-
artifact: object({
|
|
6302
|
-
path: string(),
|
|
6303
|
-
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/))
|
|
6304
|
-
}),
|
|
6305
|
-
member: optional(
|
|
6306
|
-
object({
|
|
6307
|
-
name: string(),
|
|
6308
|
-
ordinal: pipe(number(), integer(), minValue(1)),
|
|
6309
|
-
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/))
|
|
6310
|
-
})
|
|
6311
|
-
)
|
|
6312
|
-
})
|
|
6313
|
-
)
|
|
6314
|
-
})
|
|
6315
|
-
])
|
|
6316
|
-
)
|
|
6317
|
-
}),
|
|
6318
|
-
check(
|
|
6319
|
-
(product) => product.linkOwnership === "image" || product.linkDependencies === null,
|
|
6320
|
-
"containing-image products cannot declare an image scope"
|
|
6321
|
-
)
|
|
6322
|
-
);
|
|
6323
|
-
var swiftSdkProductsSchema = object({
|
|
6324
|
-
version: literal(1),
|
|
6325
|
-
products: array(swiftSdkProductSchema)
|
|
6326
|
-
});
|
|
6327
|
-
|
|
6328
6334
|
// src/swift-wasm-prune.ts
|
|
6329
6335
|
function sha256Hex(bytes) {
|
|
6330
6336
|
if (typeof Bun !== "undefined")
|
|
@@ -11286,6 +11292,7 @@ function finalizeGuestProjectionStorage(options) {
|
|
|
11286
11292
|
const result = Buffer.from(options.optimized);
|
|
11287
11293
|
const locations = /* @__PURE__ */ new Map();
|
|
11288
11294
|
const counts = /* @__PURE__ */ new Map();
|
|
11295
|
+
const countAddresses = [];
|
|
11289
11296
|
const uuids = /* @__PURE__ */ new Map();
|
|
11290
11297
|
const markers = new Map(
|
|
11291
11298
|
options.reserved.countMarkers.map((marker, index) => [marker, index])
|
|
@@ -11318,6 +11325,7 @@ function finalizeGuestProjectionStorage(options) {
|
|
|
11318
11325
|
if (counts.has(count))
|
|
11319
11326
|
throw new Error("duplicate guest projection count marker");
|
|
11320
11327
|
counts.set(count, offset);
|
|
11328
|
+
countAddresses[count] = segment.address + offset - segment.offset;
|
|
11321
11329
|
}
|
|
11322
11330
|
if (offset > end - 8 || result[offset + 3] !== 254 || result[offset + 7] !== 253)
|
|
11323
11331
|
continue;
|
|
@@ -11355,7 +11363,16 @@ function finalizeGuestProjectionStorage(options) {
|
|
|
11355
11363
|
result.writeUInt32LE(region?.initialProtection ?? 0, offset + 8);
|
|
11356
11364
|
result.writeUInt32LE(region?.maximumProtection ?? 0, offset + 12);
|
|
11357
11365
|
}
|
|
11358
|
-
return {
|
|
11366
|
+
return {
|
|
11367
|
+
wasm: result,
|
|
11368
|
+
images,
|
|
11369
|
+
countAddresses,
|
|
11370
|
+
appImages: options.sdkSpans ? planGuestProjectionRegions(
|
|
11371
|
+
options.reserved.images,
|
|
11372
|
+
options.reserved.capacities,
|
|
11373
|
+
spans
|
|
11374
|
+
) : images
|
|
11375
|
+
};
|
|
11359
11376
|
}
|
|
11360
11377
|
|
|
11361
11378
|
// src/swift-guest-runtime-plan.ts
|
|
@@ -11388,7 +11405,6 @@ var packageSchema = object({
|
|
|
11388
11405
|
});
|
|
11389
11406
|
|
|
11390
11407
|
// src/swift-guest-runtime-plan.ts
|
|
11391
|
-
var SDK_CATALOG_DIRECTORY = "swift.xctoolchain/usr/lib/swift_static/wasi";
|
|
11392
11408
|
var SDK_CONTAINING_IMAGE = "wasi/containing-image";
|
|
11393
11409
|
function canonicalArchivePath(file) {
|
|
11394
11410
|
return path9.join(realpathSync(path9.dirname(file)), path9.basename(file));
|
|
@@ -11398,9 +11414,9 @@ function sdkArtifactBytes(root, artifact) {
|
|
|
11398
11414
|
const linked = readFileSync6(file);
|
|
11399
11415
|
const hash = (bytes) => createHash8("sha256").update(bytes).digest("hex");
|
|
11400
11416
|
if (hash(linked) === artifact.sha256) return { source: linked, linked };
|
|
11401
|
-
if (artifact.kind !== "archive" || artifact.path !== `${
|
|
11417
|
+
if (artifact.kind !== "archive" || artifact.path !== `${SWIFT_SDK_PRODUCT_DIRECTORY}/libFoundation.a`)
|
|
11402
11418
|
throw new Error(`SDK product artifact changed ${file}`);
|
|
11403
|
-
const catalog = path9.join(root,
|
|
11419
|
+
const catalog = path9.join(root, SWIFT_SDK_PRODUCT_DIRECTORY, SWIFT_SDK_PRODUCT_FILE);
|
|
11404
11420
|
const sourceDirectory = path9.dirname(realpathSync(catalog));
|
|
11405
11421
|
const source = readFileSync6(path9.join(sourceDirectory, "libFoundation.a"));
|
|
11406
11422
|
if (hash(source) !== artifact.sha256)
|
|
@@ -11435,13 +11451,7 @@ function readGuestRuntimeCatalogs(sdkRoot, distributionRoot) {
|
|
|
11435
11451
|
);
|
|
11436
11452
|
const sdk = parse(
|
|
11437
11453
|
swiftSdkProductsSchema,
|
|
11438
|
-
read(
|
|
11439
|
-
path9.join(
|
|
11440
|
-
sdkRoot,
|
|
11441
|
-
"swift.xctoolchain/usr/lib/swift_static/wasi",
|
|
11442
|
-
SWIFT_SDK_PRODUCT_FILE
|
|
11443
|
-
)
|
|
11444
|
-
)
|
|
11454
|
+
read(path9.join(sdkRoot, SWIFT_SDK_PRODUCT_DIRECTORY, SWIFT_SDK_PRODUCT_FILE))
|
|
11445
11455
|
);
|
|
11446
11456
|
const distribution = parse(
|
|
11447
11457
|
swiftSdkProductsSchema,
|
|
@@ -14666,7 +14676,7 @@ async function compileGuestLink(options) {
|
|
|
14666
14676
|
};
|
|
14667
14677
|
const sdk = options.sdkImage;
|
|
14668
14678
|
const sdkCallers = sdk.sdkInterface.guestCallers;
|
|
14669
|
-
const sdkObjects = (await import("./swift-sdk-image-
|
|
14679
|
+
const sdkObjects = (await import("./swift-sdk-image-OOSMI47A.mjs")).readSwiftSdkManifestIndex(
|
|
14670
14680
|
sdk
|
|
14671
14681
|
).guestObjects;
|
|
14672
14682
|
if (!sdkCallers || !sdkObjects)
|
|
@@ -14964,10 +14974,9 @@ async function compileGuestLink(options) {
|
|
|
14964
14974
|
linkSwiftAppModule,
|
|
14965
14975
|
readSwiftSdkUsage,
|
|
14966
14976
|
swiftAppModuleThunkSection,
|
|
14967
|
-
swiftSdkProjectionDigest,
|
|
14968
14977
|
swiftSdkProjectionSpans,
|
|
14969
14978
|
writeSwiftSdkAppLink
|
|
14970
|
-
} = await import("./swift-sdk-app-module-
|
|
14979
|
+
} = await import("./swift-sdk-app-module-5SWDBTBY.mjs");
|
|
14971
14980
|
const project = options.project;
|
|
14972
14981
|
const work = project ? mkdtempSync2(path14.join(directory, "app-module-")) : path14.join(directory, "app-module");
|
|
14973
14982
|
if (project) chownSync(work, project.uid, project.gid);
|
|
@@ -15118,17 +15127,29 @@ async function compileGuestLink(options) {
|
|
|
15118
15127
|
if (project) return binding;
|
|
15119
15128
|
const replayDirectory = path14.join(options.buildDirectory, ".peach-sdk-module");
|
|
15120
15129
|
mkdirSync5(replayDirectory, { recursive: true });
|
|
15130
|
+
const directValues = new Set(link.globalValues);
|
|
15131
|
+
for (const values2 of [data, linkage.tls])
|
|
15132
|
+
for (let index = 2; index < values2.length; index += 3)
|
|
15133
|
+
directValues.add(values2[index]);
|
|
15121
15134
|
const appLink = writeSwiftSdkAppLink(
|
|
15122
15135
|
path14.join(replayDirectory, "app-link.json.gz"),
|
|
15123
15136
|
{
|
|
15124
|
-
linkage
|
|
15137
|
+
linkage: {
|
|
15138
|
+
...linkage,
|
|
15139
|
+
replayProjection: {
|
|
15140
|
+
sdk: sdk.key,
|
|
15141
|
+
staticEnd: link.staticEnd,
|
|
15142
|
+
countAddresses: finalized.countAddresses,
|
|
15143
|
+
images: finalized.appImages,
|
|
15144
|
+
objects: [...sdkObjectImages],
|
|
15145
|
+
products: [...sdkProductImages],
|
|
15146
|
+
lookupValues: [...new Set(bindingRows.values())].filter(
|
|
15147
|
+
(index) => !directValues.has(index)
|
|
15148
|
+
)
|
|
15149
|
+
}
|
|
15150
|
+
},
|
|
15125
15151
|
usage,
|
|
15126
|
-
scopedLookups: true
|
|
15127
|
-
sdkProjection: {
|
|
15128
|
-
objects: [...sdkObjectImages],
|
|
15129
|
-
products: [...sdkProductImages],
|
|
15130
|
-
layoutSha256: swiftSdkProjectionDigest(sdkSpans)
|
|
15131
|
-
}
|
|
15152
|
+
scopedLookups: true
|
|
15132
15153
|
}
|
|
15133
15154
|
);
|
|
15134
15155
|
return { ...binding, appLink };
|
|
@@ -15193,19 +15214,32 @@ function compilerCheckpoint(root, recipe, args, header) {
|
|
|
15193
15214
|
};
|
|
15194
15215
|
const outputMap = value("-output-file-map");
|
|
15195
15216
|
const module = value("-emit-module-path");
|
|
15196
|
-
|
|
15217
|
+
const wholeModule = args.lastIndexOf("-whole-module-optimization") > args.lastIndexOf("-no-whole-module-optimization");
|
|
15218
|
+
const batch = args.includes("-enable-batch-mode") && !args.includes("-incremental");
|
|
15219
|
+
if (!outputMap || !module || !wholeModule && !batch) return;
|
|
15197
15220
|
const mapText = readFileSync11(outputMap, "utf8");
|
|
15198
15221
|
const map = JSON.parse(mapText);
|
|
15199
|
-
if (!isRecord(map)
|
|
15200
|
-
|
|
15201
|
-
|
|
15202
|
-
|
|
15222
|
+
if (!isRecord(map)) return;
|
|
15223
|
+
const outputs = [module, header];
|
|
15224
|
+
if (wholeModule) {
|
|
15225
|
+
if (!isRecord(map[""]) || typeof map[""].dependencies !== "string") return;
|
|
15226
|
+
outputs.push(map[""].dependencies);
|
|
15227
|
+
}
|
|
15228
|
+
let objects = 0;
|
|
15229
|
+
for (const [source, fileOutputs] of Object.entries(map)) {
|
|
15203
15230
|
if (!source) continue;
|
|
15204
|
-
if (!isRecord(
|
|
15205
|
-
objects
|
|
15206
|
-
|
|
15207
|
-
|
|
15208
|
-
|
|
15231
|
+
if (!isRecord(fileOutputs) || typeof fileOutputs.object !== "string") return;
|
|
15232
|
+
objects++;
|
|
15233
|
+
const object2 = fileOutputs.object;
|
|
15234
|
+
outputs.push(object2);
|
|
15235
|
+
if (!wholeModule) {
|
|
15236
|
+
const dependencies = fileOutputs.dependencies;
|
|
15237
|
+
if (typeof dependencies === "string") outputs.push(dependencies);
|
|
15238
|
+
else if (object2.endsWith(".o")) outputs.push(`${object2.slice(0, -2)}.d`);
|
|
15239
|
+
else return;
|
|
15240
|
+
}
|
|
15241
|
+
}
|
|
15242
|
+
if (objects === 0) return;
|
|
15209
15243
|
const digest = createHash11("sha256").update(recipe).update(JSON.stringify(args)).update(mapText);
|
|
15210
15244
|
for (const flag of args) {
|
|
15211
15245
|
if (!flag.startsWith("@")) continue;
|
|
@@ -16947,7 +16981,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
16947
16981
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
16948
16982
|
var MULTI_MANIFEST_VERSION = 76;
|
|
16949
16983
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
16950
|
-
var compilerSourceDigest = true ? "
|
|
16984
|
+
var compilerSourceDigest = true ? "1803ba36803a88ceeca92ee7b13baa39dde72fbb72df14659f0414084afaf5d7" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
16951
16985
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
16952
16986
|
return swiftCompileInputHash(input, release).update(swiftModuleDigest(moduleRoot)).digest("hex");
|
|
16953
16987
|
}
|
|
@@ -21572,7 +21606,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
21572
21606
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
21573
21607
|
const mirrorDistribution = options.linkOnly || options.project ? null : distribution;
|
|
21574
21608
|
if (distribution) refreshSwiftCacheHold(moduleRoot);
|
|
21575
|
-
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-
|
|
21609
|
+
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-L5SWVH6U.mjs")).useSwiftPackagePrebuilts(
|
|
21576
21610
|
sources,
|
|
21577
21611
|
moduleRoot,
|
|
21578
21612
|
options.toolchainBin
|
|
@@ -21585,7 +21619,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
21585
21619
|
sources: path23.join(root, "Sources", "App"),
|
|
21586
21620
|
multi: compileTargets(input).length > 0
|
|
21587
21621
|
};
|
|
21588
|
-
const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-
|
|
21622
|
+
const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-OOSMI47A.mjs")).buildSwiftSdkImage(
|
|
21589
21623
|
moduleRoot,
|
|
21590
21624
|
!!guestGraph,
|
|
21591
21625
|
distribution ? [] : linkedFrameworkTargets(moduleRoot, input).imports,
|
|
@@ -21906,7 +21940,9 @@ ${compatShape}` : "";
|
|
|
21906
21940
|
}
|
|
21907
21941
|
const jobs = swiftCompilerJobs();
|
|
21908
21942
|
const incrementalPreview = sdkImage !== void 0 && !guestGraph && !options.project && !input.optimize && !input.unoptimized;
|
|
21909
|
-
const
|
|
21943
|
+
const batchGuest = guestGraph !== void 0 && !options.project && !input.unoptimized;
|
|
21944
|
+
const batch = incrementalPreview || batchGuest;
|
|
21945
|
+
const perFile = input.unoptimized || batch;
|
|
21910
21946
|
const reproducibleFrameworkRoot = mirrorDistribution ? frameworkRoot : compileFrameworkRoot;
|
|
21911
21947
|
const buildArgs = [
|
|
21912
21948
|
"build",
|
|
@@ -21931,9 +21967,11 @@ ${compatShape}` : "";
|
|
|
21931
21967
|
"-Xswiftc",
|
|
21932
21968
|
"-j",
|
|
21933
21969
|
"-Xswiftc",
|
|
21934
|
-
String(jobs)
|
|
21970
|
+
String(batchGuest ? Math.min(8, jobs) : jobs)
|
|
21935
21971
|
] : [],
|
|
21936
|
-
|
|
21972
|
+
// optimized batches can move specialized definitions between objects.
|
|
21973
|
+
...incrementalPreview ? ["-Xswiftc", "-incremental"] : [],
|
|
21974
|
+
...batch ? ["-Xswiftc", "-enable-batch-mode"] : [],
|
|
21937
21975
|
// the mirror finds a changed sdk header's readers in their
|
|
21938
21976
|
// dependency files, which omit system headers by default
|
|
21939
21977
|
...mirrorDistribution ? ["-Xswiftc", "-track-system-dependencies"] : [],
|
|
@@ -21947,7 +21985,7 @@ ${compatShape}` : "";
|
|
|
21947
21985
|
"-g0",
|
|
21948
21986
|
"-Xcxx",
|
|
21949
21987
|
"-g0",
|
|
21950
|
-
...
|
|
21988
|
+
...batch ? [] : [
|
|
21951
21989
|
"-Xswiftc",
|
|
21952
21990
|
"-num-threads",
|
|
21953
21991
|
"-Xswiftc",
|
|
@@ -22320,7 +22358,7 @@ ${compatShape}` : "";
|
|
|
22320
22358
|
});
|
|
22321
22359
|
sdkAsset = { key: sdkImage.key, sha256: sdkImage.sha256, binding };
|
|
22322
22360
|
} else {
|
|
22323
|
-
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-
|
|
22361
|
+
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-5SWDBTBY.mjs");
|
|
22324
22362
|
const binding = await buildSwiftAppModule({
|
|
22325
22363
|
buildRoot: root2,
|
|
22326
22364
|
toolchainBin: options.toolchainBin,
|
|
@@ -22395,6 +22433,7 @@ export {
|
|
|
22395
22433
|
writeWasmCustomSection,
|
|
22396
22434
|
placeGuestLazyFunctions,
|
|
22397
22435
|
guestLazyExports,
|
|
22436
|
+
planGuestProjectionRegions,
|
|
22398
22437
|
KEEP_WASM_NAMES,
|
|
22399
22438
|
WASM_LOWER_IDENTITY,
|
|
22400
22439
|
lowerWasm,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2775 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isSwiftImageVariants
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-H5TBKFDB.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findBundleFooter
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TE3WHBF3.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isRecord
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2YTHEKWJ.mjs";
|
|
11
11
|
|
|
12
12
|
// src/android-string-value.ts
|
|
13
13
|
function compileAndroidStringValue(text, where) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2775 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
killOrphanedProcessGroup,
|
|
4
4
|
readProcessTable,
|
|
5
5
|
terminateProcessGroup
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FBN2C43P.mjs";
|
|
7
7
|
|
|
8
8
|
// src/swift-root-lock.ts
|
|
9
9
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2775 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SIM_LONG_PRESS_MAX_MS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MJSKVK7E.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isRecord
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2YTHEKWJ.mjs";
|
|
8
8
|
|
|
9
9
|
// ../peach-globals/src/globalsContract.ts
|
|
10
10
|
var LEGACY_ALIAS_MARKER = Symbol.for("sootsim.legacy-aliases-installed");
|