peachsim 0.1.1684 → 0.1.1700
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/cli/bridge-flow-runner.ts +61 -39
- package/cli/commands/agent-wrapper.ts +21 -10
- package/cli/commands/control.ts +27 -7
- package/cli/commands/coverage-swift.ts +72 -5
- package/cli/commands/coverage.ts +1 -1
- package/cli/commands/detect.ts +17 -4
- package/cli/commands/inspect/actions.ts +1 -0
- package/cli/commands/maestro-compare.ts +25 -99
- package/cli/commands/screenshot.ts +12 -0
- package/cli/help-core.ts +3 -4
- package/cli/maestro-compare.ts +172 -4
- package/cli/outbound-endpoints.ts +2 -10
- package/detox/index.ts +15 -0
- package/detox/launch-permissions.ts +169 -0
- package/dist-lib/agent-daemon-client.cjs +2 -2
- package/dist-lib/agent-events.cjs +2 -2
- package/dist-lib/attached-projects.cjs +2 -2
- package/dist-lib/auth/shared-session.cjs +2 -2
- package/dist-lib/backend-origin.cjs +2 -2
- package/dist-lib/beta.cjs +2 -2
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +2 -2
- package/dist-lib/bridge-contract-input.cjs +2 -2
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +2 -2
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +6729 -3591
- package/dist-lib/capture-contract.cjs +2 -2
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +2 -2
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +2 -2
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +2 -2
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +2 -2
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +104 -3
- package/dist-lib/dev-bundle-resolution.cjs +208 -44
- package/dist-lib/expo-swift-bundle.cjs +3475 -2137
- package/dist-lib/expo-swift-metadata.cjs +2 -2
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +2 -2
- package/dist-lib/host/bridge-host.cjs +8970 -3652
- package/dist-lib/host/fetch-proxy-handler.cjs +332 -40
- package/dist-lib/host/fetch-proxy-overrides.cjs +2 -2
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +2 -2
- package/dist-lib/host/websocket-proxy.cjs +2 -2
- package/dist-lib/index.cjs +469 -143
- package/dist-lib/jump-to-source-babel.cjs +2 -2
- package/dist-lib/jump-to-source-native.cjs +2 -2
- package/dist-lib/kotlin-host.cjs +2 -2
- package/dist-lib/menu.cjs +2 -2
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +2 -2
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +2 -2
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +465 -139
- package/dist-lib/native-app-identity-project.cjs +209 -86
- package/dist-lib/native-app-identity-project.mjs +251 -116
- package/dist-lib/native-app-identity.cjs +2 -2
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +2 -2
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +2 -2
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +2 -2
- package/dist-lib/public-brand.cjs +2 -2
- package/dist-lib/public-origins-lib-esm.json +27 -23
- package/dist-lib/public-origins-lib.json +221 -88
- package/dist-lib/react-native-host-modules.cjs +2 -2
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +2 -2
- package/dist-lib/scripts/dev-server-scanner.cjs +206 -31
- package/dist-lib/sdk.cjs +3 -3
- package/dist-lib/sdk.mjs +2 -2
- package/dist-lib/skills.cjs +20997 -16596
- package/dist-lib/swift-compile.cjs +3075 -459
- package/dist-lib/swift-compile.mjs +3028 -415
- package/dist-lib/swift-package.cjs +131 -69
- package/dist-lib/swift-package.mjs +126 -68
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +31 -4
- package/dist-lib/swift.cjs +2 -2
- package/dist-lib/vite-swift.cjs +5049 -1704
- package/dist-lib/vite.cjs +261 -58
- package/dist-lib/worklet-executable.cjs +8 -5
- package/dist-lib/worklet-executable.mjs +7 -4
- package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +15 -1
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/scroll-pan-contacts.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +17 -0
- package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +3 -0
- package/dist-types/packages/peach-globals/src/cameraBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +6 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -2
- package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/shellHostBridgeContract.d.ts +3 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/dist-types/packages/peach-kit/src/materials/types.d.ts +1 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/scripts/dev-server-scanner.ts +4 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Alpha.h +2282 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/BasicImageTypes.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Conversion.h +10551 -6
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Convolution.h +4236 -3
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Geometry.h +827 -8
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Histogram.h +1369 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Morphology.h +1243 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Transform.h +1747 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage.h +291 -2
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_CVUtilities.h +1283 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Types.h +811 -91
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Utilities.h +1342 -25
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns.h +2738 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_constants.h +1685 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_graph.h +913 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/BNNS/bnns_structures.h +1917 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/LinearAlgebra.h +23 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/arithmetic.h +209 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/base.h +104 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/linear_systems.h +77 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/matrix.h +554 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/norms.h +58 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/object.h +186 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/splat.h +86 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/LinearAlgebra/vector.h +364 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Quadrature/Integration.h +195 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Quadrature/Quadrature.h +44 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/BLAS/BLAS.h +2330 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/BLAS/Types.h +123 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/Solve.h +8339 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/SolveImplementation.h +520 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/SolveImplementationTyped.h +1893 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/Sparse/Sparse.h +10 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/blas_new.h +1098 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/cblas.h +859 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/cblas_new.h +1134 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/clapack.h +10555 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/fortran_blas.h +695 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack.h +38526 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack_types.h +60 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/lapack_version.h +20 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/thread_api.h +50 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBasicOps.h +1218 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBigNum.h +1458 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vDSP.h +10377 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vDSP_translate.h +167 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vForce.h +1243 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vecLib.h +114 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vecLibTypes.h +146 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vectorOps.h +1106 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vfp.h +294 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.h +25 -1
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFArray.h +673 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h +232 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h +827 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCalendar.h +121 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h +387 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFData.h +79 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDate.h +122 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h +674 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFError.h +182 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h +213 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNotificationCenter.h +82 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumber.h +129 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSet.h +491 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h +883 -2
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h +98 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +11 -220
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +2 -6
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLAvailability.h +22 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBackgroundActivitySession.h +145 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityCondition.h +113 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityConstraint.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconRegion.h +225 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBody.h +26 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularGeographicCondition.h +59 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularRegion.h +64 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCondition.h +48 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLError.h +52 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLErrorDomain.h +24 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLGeocoder.h +55 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLHeading.h +117 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocation.h +9 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager+CLVisitExtensions.h +45 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +877 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManagerDelegate.h +225 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceError.h +33 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationPushServiceExtension.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationUpdater.h +250 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitor.h +140 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitorConfiguration.h +77 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringEvent.h +184 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLMonitoringRecord.h +57 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h +98 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +123 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLServiceSession.h +211 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLVisit.h +66 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Modules/module.modulemap +7 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +98 -3
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h +52 -0
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h +240 -0
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceRef.h +474 -0
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceTypes.h +66 -0
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Modules/module.modulemap +10 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4AccelerationStructure.h +9 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Archive.h +16 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ArgumentTable.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunction.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BinaryFunctionDescriptor.h +14 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4BufferRange.h +79 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandAllocator.h +15 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandBuffer.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandEncoder.h +16 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommandQueue.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CommitFeedback.h +15 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Compiler.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4CompilerTask.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputeCommandEncoder.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4ComputePipeline.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4Counters.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4FunctionDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LibraryFunctionDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4LinkingDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningCommandEncoder.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MachineLearningPipeline.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4MeshRenderPipeline.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineDataSetSerializer.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4PipelineState.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderCommandEncoder.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPass.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4RenderPipeline.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4SpecializedFunctionDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4StitchedFunctionDescriptor.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTL4TileRenderPipeline.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructure.h +1212 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureCommandEncoder.h +322 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAccelerationStructureTypes.h +224 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLAllocation.h +22 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgument.h +279 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLArgumentEncoder.h +199 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBinaryArchive.h +142 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitCommandEncoder.h +266 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBlitPass.h +82 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLBuffer.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureManager.h +113 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCaptureScope.h +43 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandBuffer.h +449 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandEncoder.h +148 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCommandQueue.h +102 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputeCommandEncoder.h +350 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePass.h +90 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLComputePipeline.h +274 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLCounters.h +225 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDataType.h +232 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDefines.h +39 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDepthStencil.h +93 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDevice.h +1122 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDeviceCertification.h +29 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDrawable.h +36 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLDynamicLibrary.h +81 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLEvent.h +79 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFence.h +22 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionConstantValues.h +30 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionDescriptor.h +95 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionHandle.h +29 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionLog.h +37 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLFunctionStitching.h +131 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLGPUAddress.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLHeap.h +284 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandBuffer.h +10 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCommandQueue.h +11 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIOCompressor.h +10 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandBuffer.h +157 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIndirectCommandEncoder.h +110 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLIntersectionFunctionTable.h +186 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLibrary.h +549 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLinkedFunctions.h +57 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLLogState.h +65 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLParallelRenderCommandEncoder.h +77 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPipeline.h +57 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLPixelFormat.h +342 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRasterizationRate.h +323 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderCommandEncoder.h +1068 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPass.h +411 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderPipeline.h +788 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResidencySet.h +141 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResource.h +307 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStateCommandEncoder.h +125 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceStatePass.h +85 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLResourceViewPool.h +22 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLSampler.h +252 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLStageInputOutputDescriptor.h +158 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTensor.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTexture.h +460 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTextureViewPool.h +18 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLTypes.h +125 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVertexDescriptor.h +153 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLVisibleFunctionTable.h +45 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/Metal.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +1 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecBase.h +906 -3
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h +613 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecItem.h +1284 -29
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecPolicy.h +441 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecTrust.h +845 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/Security.h +4 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTDefines.h +35 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTTagClass.h +33 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTType.h +504 -0
- package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLEssentialsAvailability.h +14 -0
- package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLLocationEssentials.h +444 -0
- package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/LocationEssentials.h +14 -0
- package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Modules/module.modulemap +14 -0
- package/sdk/ios/usr/include/AvailabilityMacros.h +3985 -0
- package/sdk/ios/usr/include/complex.h +167 -0
- package/sdk/ios/usr/include/copyfile.h +143 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +5 -0
- package/sdk/ios/usr/include/mach/mach_types.h +1 -0
- package/sdk/ios/usr/include/malloc/_malloc.h +143 -0
- package/sdk/ios/usr/include/malloc/_malloc_type.h +153 -0
- package/sdk/ios/usr/include/malloc/_platform.h +80 -0
- package/sdk/ios/usr/include/malloc/_ptrcheck.h +43 -0
- package/sdk/ios/usr/include/malloc/malloc.h +768 -0
- package/sdk/ios/usr/include/math.h +835 -2
- package/sdk/ios/usr/include/os/availability.h +168 -6
- package/sdk/ios/usr/include/os/base.h +351 -0
- package/sdk/ios/usr/include/os/clock.h +18 -0
- package/sdk/ios/usr/include/os/lock.h +232 -10
- package/sdk/ios/usr/include/os/log.h +521 -38
- package/sdk/ios/usr/include/os/object.h +320 -3
- package/sdk/ios/usr/include/os/trace.h +492 -0
- package/sdk/ios/usr/include/os/trace_base.h +167 -0
- package/sdk/ios/usr/include/os/workgroup.h +37 -0
- package/sdk/ios/usr/include/os/workgroup_base.h +91 -0
- package/sdk/ios/usr/include/os/workgroup_interval.h +156 -0
- package/sdk/ios/usr/include/os/workgroup_object.h +359 -0
- package/sdk/ios/usr/include/os/workgroup_parallel.h +76 -0
- package/sdk/ios/usr/include/sys/cdefs.h +38 -1
- package/sdk/ios/wasm/include/unistd.h +3 -0
- package/skills/contrast/SKILL.md +3 -0
- package/src/codex-client.ts +11 -6
- package/src/dev-bundle-resolution.ts +124 -48
- package/src/expo-native-workspace.ts +176 -0
- package/src/expo-swift-host.ts +161 -26
- package/src/expo-swift-ready.ts +14 -28
- package/src/expoSwiftContract.ts +4 -1
- package/src/generated/swift-c-predefines.json +2044 -0
- package/src/host/bridge-host.ts +5 -0
- package/src/installed-package-versions.ts +14 -1
- package/src/metro-project-root.ts +44 -33
- package/src/native-app-identity-project.ts +1 -0
- package/src/nitro-adapter.lock.json +916 -10
- package/src/nitro-adapter.ts +33 -24
- package/src/nitro-bundle.ts +108 -21
- package/src/nitro-compile.ts +36 -5
- package/src/nitro-source.ts +13 -3
- package/src/nitroAdapterContract.ts +100 -20
- package/src/nitroContract.ts +18 -2
- package/src/node-http-fetch.ts +116 -0
- package/src/packageVersionsContract.ts +46 -0
- package/src/serverDiscoveryContract.ts +1 -0
- package/src/settingsContract.ts +0 -30
- package/src/swift-binary-modules.ts +20 -5
- package/src/swift-compile.ts +598 -81
- package/src/swift-coverage/package.ts +3 -1
- package/src/swift-coverage/xcode-assets.ts +66 -5
- package/src/swift-coverage/xcode-packages.ts +11 -6
- package/src/swift-host.ts +347 -60
- package/src/swift-objc-compile.ts +52 -10
- package/src/swift-objc-metadata.ts +2 -2
- package/src/swift-objc-platform.ts +2 -2
- package/src/swift-objc-standin.ts +53 -13
- package/src/swift-package-manifest.ts +151 -28
- package/src/swift-package.ts +158 -75
- package/src/swift-packages.ts +141 -44
- package/src/swift-source-file.ts +10 -15
- package/src/swift-source-pods.ts +126 -41
- package/src/swift-standin-digest.ts +77 -0
- package/src/swift-standin-emit.ts +40 -4
- package/src/swift-standins.ts +154 -31
- package/src/swift-submit.ts +5 -0
- package/src/swift-toolchain.ts +38 -0
- package/src/swiftContract.ts +168 -75
- package/src/target-matcher.ts +15 -2
- package/src/vite-plugin.ts +0 -10
- package/src/worklet-executable.ts +7 -3
- package/src/xcode-json-project.ts +14 -2
- package/src/xcode-project.ts +215 -100
- package/src/settings-flags.ts +0 -107
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1700 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __export = (target, all) => {
|
|
4
4
|
for (var name2 in all)
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
spawn as spawn3,
|
|
11
11
|
execFileSync as execFileSync3
|
|
12
12
|
} from "node:child_process";
|
|
13
|
-
import { createHash as
|
|
13
|
+
import { createHash as createHash10 } from "node:crypto";
|
|
14
14
|
import {
|
|
15
15
|
cpSync,
|
|
16
|
-
existsSync as
|
|
16
|
+
existsSync as existsSync3,
|
|
17
17
|
mkdirSync as mkdirSync2,
|
|
18
18
|
mkdtempSync as mkdtempSync2,
|
|
19
|
-
readFileSync as
|
|
19
|
+
readFileSync as readFileSync7,
|
|
20
20
|
readdirSync as readdirSync4,
|
|
21
21
|
realpathSync,
|
|
22
22
|
renameSync,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
writeFileSync as writeFileSync3
|
|
27
27
|
} from "node:fs";
|
|
28
28
|
import os2 from "node:os";
|
|
29
|
-
import
|
|
29
|
+
import path13 from "node:path";
|
|
30
30
|
|
|
31
31
|
// ../../node_modules/yaml/browser/dist/index.js
|
|
32
32
|
var dist_exports = {};
|
|
@@ -114,17 +114,17 @@ function visit(node, visitor) {
|
|
|
114
114
|
visit.BREAK = BREAK;
|
|
115
115
|
visit.SKIP = SKIP;
|
|
116
116
|
visit.REMOVE = REMOVE;
|
|
117
|
-
function visit_(key, node, visitor,
|
|
118
|
-
const ctrl = callVisitor(key, node, visitor,
|
|
117
|
+
function visit_(key, node, visitor, path14) {
|
|
118
|
+
const ctrl = callVisitor(key, node, visitor, path14);
|
|
119
119
|
if (isNode(ctrl) || isPair(ctrl)) {
|
|
120
|
-
replaceNode(key,
|
|
121
|
-
return visit_(key, ctrl, visitor,
|
|
120
|
+
replaceNode(key, path14, ctrl);
|
|
121
|
+
return visit_(key, ctrl, visitor, path14);
|
|
122
122
|
}
|
|
123
123
|
if (typeof ctrl !== "symbol") {
|
|
124
124
|
if (isCollection(node)) {
|
|
125
|
-
|
|
125
|
+
path14 = Object.freeze(path14.concat(node));
|
|
126
126
|
for (let i = 0; i < node.items.length; ++i) {
|
|
127
|
-
const ci = visit_(i, node.items[i], visitor,
|
|
127
|
+
const ci = visit_(i, node.items[i], visitor, path14);
|
|
128
128
|
if (typeof ci === "number")
|
|
129
129
|
i = ci - 1;
|
|
130
130
|
else if (ci === BREAK)
|
|
@@ -135,13 +135,13 @@ function visit_(key, node, visitor, path13) {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
} else if (isPair(node)) {
|
|
138
|
-
|
|
139
|
-
const ck = visit_("key", node.key, visitor,
|
|
138
|
+
path14 = Object.freeze(path14.concat(node));
|
|
139
|
+
const ck = visit_("key", node.key, visitor, path14);
|
|
140
140
|
if (ck === BREAK)
|
|
141
141
|
return BREAK;
|
|
142
142
|
else if (ck === REMOVE)
|
|
143
143
|
node.key = null;
|
|
144
|
-
const cv = visit_("value", node.value, visitor,
|
|
144
|
+
const cv = visit_("value", node.value, visitor, path14);
|
|
145
145
|
if (cv === BREAK)
|
|
146
146
|
return BREAK;
|
|
147
147
|
else if (cv === REMOVE)
|
|
@@ -162,17 +162,17 @@ async function visitAsync(node, visitor) {
|
|
|
162
162
|
visitAsync.BREAK = BREAK;
|
|
163
163
|
visitAsync.SKIP = SKIP;
|
|
164
164
|
visitAsync.REMOVE = REMOVE;
|
|
165
|
-
async function visitAsync_(key, node, visitor,
|
|
166
|
-
const ctrl = await callVisitor(key, node, visitor,
|
|
165
|
+
async function visitAsync_(key, node, visitor, path14) {
|
|
166
|
+
const ctrl = await callVisitor(key, node, visitor, path14);
|
|
167
167
|
if (isNode(ctrl) || isPair(ctrl)) {
|
|
168
|
-
replaceNode(key,
|
|
169
|
-
return visitAsync_(key, ctrl, visitor,
|
|
168
|
+
replaceNode(key, path14, ctrl);
|
|
169
|
+
return visitAsync_(key, ctrl, visitor, path14);
|
|
170
170
|
}
|
|
171
171
|
if (typeof ctrl !== "symbol") {
|
|
172
172
|
if (isCollection(node)) {
|
|
173
|
-
|
|
173
|
+
path14 = Object.freeze(path14.concat(node));
|
|
174
174
|
for (let i = 0; i < node.items.length; ++i) {
|
|
175
|
-
const ci = await visitAsync_(i, node.items[i], visitor,
|
|
175
|
+
const ci = await visitAsync_(i, node.items[i], visitor, path14);
|
|
176
176
|
if (typeof ci === "number")
|
|
177
177
|
i = ci - 1;
|
|
178
178
|
else if (ci === BREAK)
|
|
@@ -183,13 +183,13 @@ async function visitAsync_(key, node, visitor, path13) {
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
} else if (isPair(node)) {
|
|
186
|
-
|
|
187
|
-
const ck = await visitAsync_("key", node.key, visitor,
|
|
186
|
+
path14 = Object.freeze(path14.concat(node));
|
|
187
|
+
const ck = await visitAsync_("key", node.key, visitor, path14);
|
|
188
188
|
if (ck === BREAK)
|
|
189
189
|
return BREAK;
|
|
190
190
|
else if (ck === REMOVE)
|
|
191
191
|
node.key = null;
|
|
192
|
-
const cv = await visitAsync_("value", node.value, visitor,
|
|
192
|
+
const cv = await visitAsync_("value", node.value, visitor, path14);
|
|
193
193
|
if (cv === BREAK)
|
|
194
194
|
return BREAK;
|
|
195
195
|
else if (cv === REMOVE)
|
|
@@ -216,23 +216,23 @@ function initVisitor(visitor) {
|
|
|
216
216
|
}
|
|
217
217
|
return visitor;
|
|
218
218
|
}
|
|
219
|
-
function callVisitor(key, node, visitor,
|
|
219
|
+
function callVisitor(key, node, visitor, path14) {
|
|
220
220
|
if (typeof visitor === "function")
|
|
221
|
-
return visitor(key, node,
|
|
221
|
+
return visitor(key, node, path14);
|
|
222
222
|
if (isMap(node))
|
|
223
|
-
return visitor.Map?.(key, node,
|
|
223
|
+
return visitor.Map?.(key, node, path14);
|
|
224
224
|
if (isSeq(node))
|
|
225
|
-
return visitor.Seq?.(key, node,
|
|
225
|
+
return visitor.Seq?.(key, node, path14);
|
|
226
226
|
if (isPair(node))
|
|
227
|
-
return visitor.Pair?.(key, node,
|
|
227
|
+
return visitor.Pair?.(key, node, path14);
|
|
228
228
|
if (isScalar(node))
|
|
229
|
-
return visitor.Scalar?.(key, node,
|
|
229
|
+
return visitor.Scalar?.(key, node, path14);
|
|
230
230
|
if (isAlias(node))
|
|
231
|
-
return visitor.Alias?.(key, node,
|
|
231
|
+
return visitor.Alias?.(key, node, path14);
|
|
232
232
|
return void 0;
|
|
233
233
|
}
|
|
234
|
-
function replaceNode(key,
|
|
235
|
-
const parent =
|
|
234
|
+
function replaceNode(key, path14, node) {
|
|
235
|
+
const parent = path14[path14.length - 1];
|
|
236
236
|
if (isCollection(parent)) {
|
|
237
237
|
parent.items[key] = node;
|
|
238
238
|
} else if (isPair(parent)) {
|
|
@@ -761,10 +761,10 @@ function createNode(value, tagName, ctx) {
|
|
|
761
761
|
}
|
|
762
762
|
|
|
763
763
|
// ../../node_modules/yaml/browser/dist/nodes/Collection.js
|
|
764
|
-
function collectionFromPath(schema4,
|
|
764
|
+
function collectionFromPath(schema4, path14, value) {
|
|
765
765
|
let v = value;
|
|
766
|
-
for (let i =
|
|
767
|
-
const k =
|
|
766
|
+
for (let i = path14.length - 1; i >= 0; --i) {
|
|
767
|
+
const k = path14[i];
|
|
768
768
|
if (typeof k === "number" && Number.isInteger(k) && k >= 0) {
|
|
769
769
|
const a = [];
|
|
770
770
|
a[k] = v;
|
|
@@ -783,7 +783,7 @@ function collectionFromPath(schema4, path13, value) {
|
|
|
783
783
|
sourceObjects: /* @__PURE__ */ new Map()
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
|
-
var isEmptyPath = (
|
|
786
|
+
var isEmptyPath = (path14) => path14 == null || typeof path14 === "object" && !!path14[Symbol.iterator]().next().done;
|
|
787
787
|
var Collection = class extends NodeBase {
|
|
788
788
|
constructor(type, schema4) {
|
|
789
789
|
super(type);
|
|
@@ -813,11 +813,11 @@ var Collection = class extends NodeBase {
|
|
|
813
813
|
* be a Pair instance or a `{ key, value }` object, which may not have a key
|
|
814
814
|
* that already exists in the map.
|
|
815
815
|
*/
|
|
816
|
-
addIn(
|
|
817
|
-
if (isEmptyPath(
|
|
816
|
+
addIn(path14, value) {
|
|
817
|
+
if (isEmptyPath(path14))
|
|
818
818
|
this.add(value);
|
|
819
819
|
else {
|
|
820
|
-
const [key, ...rest] =
|
|
820
|
+
const [key, ...rest] = path14;
|
|
821
821
|
const node = this.get(key, true);
|
|
822
822
|
if (isCollection(node))
|
|
823
823
|
node.addIn(rest, value);
|
|
@@ -831,8 +831,8 @@ var Collection = class extends NodeBase {
|
|
|
831
831
|
* Removes a value from the collection.
|
|
832
832
|
* @returns `true` if the item was found and removed.
|
|
833
833
|
*/
|
|
834
|
-
deleteIn(
|
|
835
|
-
const [key, ...rest] =
|
|
834
|
+
deleteIn(path14) {
|
|
835
|
+
const [key, ...rest] = path14;
|
|
836
836
|
if (rest.length === 0)
|
|
837
837
|
return this.delete(key);
|
|
838
838
|
const node = this.get(key, true);
|
|
@@ -846,8 +846,8 @@ var Collection = class extends NodeBase {
|
|
|
846
846
|
* scalar values from their surrounding node; to disable set `keepScalar` to
|
|
847
847
|
* `true` (collections are always returned intact).
|
|
848
848
|
*/
|
|
849
|
-
getIn(
|
|
850
|
-
const [key, ...rest] =
|
|
849
|
+
getIn(path14, keepScalar) {
|
|
850
|
+
const [key, ...rest] = path14;
|
|
851
851
|
const node = this.get(key, true);
|
|
852
852
|
if (rest.length === 0)
|
|
853
853
|
return !keepScalar && isScalar(node) ? node.value : node;
|
|
@@ -865,8 +865,8 @@ var Collection = class extends NodeBase {
|
|
|
865
865
|
/**
|
|
866
866
|
* Checks if the collection includes a value with the key `key`.
|
|
867
867
|
*/
|
|
868
|
-
hasIn(
|
|
869
|
-
const [key, ...rest] =
|
|
868
|
+
hasIn(path14) {
|
|
869
|
+
const [key, ...rest] = path14;
|
|
870
870
|
if (rest.length === 0)
|
|
871
871
|
return this.has(key);
|
|
872
872
|
const node = this.get(key, true);
|
|
@@ -876,8 +876,8 @@ var Collection = class extends NodeBase {
|
|
|
876
876
|
* Sets a value in this collection. For `!!set`, `value` needs to be a
|
|
877
877
|
* boolean to add/remove the item from the set.
|
|
878
878
|
*/
|
|
879
|
-
setIn(
|
|
880
|
-
const [key, ...rest] =
|
|
879
|
+
setIn(path14, value) {
|
|
880
|
+
const [key, ...rest] = path14;
|
|
881
881
|
if (rest.length === 0) {
|
|
882
882
|
this.set(key, value);
|
|
883
883
|
} else {
|
|
@@ -3016,9 +3016,9 @@ var Document = class _Document {
|
|
|
3016
3016
|
this.contents.add(value);
|
|
3017
3017
|
}
|
|
3018
3018
|
/** Adds a value to the document. */
|
|
3019
|
-
addIn(
|
|
3019
|
+
addIn(path14, value) {
|
|
3020
3020
|
if (assertCollection(this.contents))
|
|
3021
|
-
this.contents.addIn(
|
|
3021
|
+
this.contents.addIn(path14, value);
|
|
3022
3022
|
}
|
|
3023
3023
|
/**
|
|
3024
3024
|
* Create a new `Alias` node, ensuring that the target `node` has the required anchor.
|
|
@@ -3093,14 +3093,14 @@ var Document = class _Document {
|
|
|
3093
3093
|
* Removes a value from the document.
|
|
3094
3094
|
* @returns `true` if the item was found and removed.
|
|
3095
3095
|
*/
|
|
3096
|
-
deleteIn(
|
|
3097
|
-
if (isEmptyPath(
|
|
3096
|
+
deleteIn(path14) {
|
|
3097
|
+
if (isEmptyPath(path14)) {
|
|
3098
3098
|
if (this.contents == null)
|
|
3099
3099
|
return false;
|
|
3100
3100
|
this.contents = null;
|
|
3101
3101
|
return true;
|
|
3102
3102
|
}
|
|
3103
|
-
return assertCollection(this.contents) ? this.contents.deleteIn(
|
|
3103
|
+
return assertCollection(this.contents) ? this.contents.deleteIn(path14) : false;
|
|
3104
3104
|
}
|
|
3105
3105
|
/**
|
|
3106
3106
|
* Returns item at `key`, or `undefined` if not found. By default unwraps
|
|
@@ -3115,10 +3115,10 @@ var Document = class _Document {
|
|
|
3115
3115
|
* scalar values from their surrounding node; to disable set `keepScalar` to
|
|
3116
3116
|
* `true` (collections are always returned intact).
|
|
3117
3117
|
*/
|
|
3118
|
-
getIn(
|
|
3119
|
-
if (isEmptyPath(
|
|
3118
|
+
getIn(path14, keepScalar) {
|
|
3119
|
+
if (isEmptyPath(path14))
|
|
3120
3120
|
return !keepScalar && isScalar(this.contents) ? this.contents.value : this.contents;
|
|
3121
|
-
return isCollection(this.contents) ? this.contents.getIn(
|
|
3121
|
+
return isCollection(this.contents) ? this.contents.getIn(path14, keepScalar) : void 0;
|
|
3122
3122
|
}
|
|
3123
3123
|
/**
|
|
3124
3124
|
* Checks if the document includes a value with the key `key`.
|
|
@@ -3129,10 +3129,10 @@ var Document = class _Document {
|
|
|
3129
3129
|
/**
|
|
3130
3130
|
* Checks if the document includes a value at `path`.
|
|
3131
3131
|
*/
|
|
3132
|
-
hasIn(
|
|
3133
|
-
if (isEmptyPath(
|
|
3132
|
+
hasIn(path14) {
|
|
3133
|
+
if (isEmptyPath(path14))
|
|
3134
3134
|
return this.contents !== void 0;
|
|
3135
|
-
return isCollection(this.contents) ? this.contents.hasIn(
|
|
3135
|
+
return isCollection(this.contents) ? this.contents.hasIn(path14) : false;
|
|
3136
3136
|
}
|
|
3137
3137
|
/**
|
|
3138
3138
|
* Sets a value in this document. For `!!set`, `value` needs to be a
|
|
@@ -3149,13 +3149,13 @@ var Document = class _Document {
|
|
|
3149
3149
|
* Sets a value in this document. For `!!set`, `value` needs to be a
|
|
3150
3150
|
* boolean to add/remove the item from the set.
|
|
3151
3151
|
*/
|
|
3152
|
-
setIn(
|
|
3153
|
-
if (isEmptyPath(
|
|
3152
|
+
setIn(path14, value) {
|
|
3153
|
+
if (isEmptyPath(path14)) {
|
|
3154
3154
|
this.contents = value;
|
|
3155
3155
|
} else if (this.contents == null) {
|
|
3156
|
-
this.contents = collectionFromPath(this.schema, Array.from(
|
|
3156
|
+
this.contents = collectionFromPath(this.schema, Array.from(path14), value);
|
|
3157
3157
|
} else if (assertCollection(this.contents)) {
|
|
3158
|
-
this.contents.setIn(
|
|
3158
|
+
this.contents.setIn(path14, value);
|
|
3159
3159
|
}
|
|
3160
3160
|
}
|
|
3161
3161
|
/**
|
|
@@ -4951,9 +4951,9 @@ function visit2(cst, visitor) {
|
|
|
4951
4951
|
visit2.BREAK = BREAK2;
|
|
4952
4952
|
visit2.SKIP = SKIP2;
|
|
4953
4953
|
visit2.REMOVE = REMOVE2;
|
|
4954
|
-
visit2.itemAtPath = (cst,
|
|
4954
|
+
visit2.itemAtPath = (cst, path14) => {
|
|
4955
4955
|
let item = cst;
|
|
4956
|
-
for (const [field, index] of
|
|
4956
|
+
for (const [field, index] of path14) {
|
|
4957
4957
|
const tok = item?.[field];
|
|
4958
4958
|
if (tok && "items" in tok) {
|
|
4959
4959
|
item = tok.items[index];
|
|
@@ -4962,23 +4962,23 @@ visit2.itemAtPath = (cst, path13) => {
|
|
|
4962
4962
|
}
|
|
4963
4963
|
return item;
|
|
4964
4964
|
};
|
|
4965
|
-
visit2.parentCollection = (cst,
|
|
4966
|
-
const parent = visit2.itemAtPath(cst,
|
|
4967
|
-
const field =
|
|
4965
|
+
visit2.parentCollection = (cst, path14) => {
|
|
4966
|
+
const parent = visit2.itemAtPath(cst, path14.slice(0, -1));
|
|
4967
|
+
const field = path14[path14.length - 1][0];
|
|
4968
4968
|
const coll = parent?.[field];
|
|
4969
4969
|
if (coll && "items" in coll)
|
|
4970
4970
|
return coll;
|
|
4971
4971
|
throw new Error("Parent collection not found");
|
|
4972
4972
|
};
|
|
4973
|
-
function _visit(
|
|
4974
|
-
let ctrl = visitor(item,
|
|
4973
|
+
function _visit(path14, item, visitor) {
|
|
4974
|
+
let ctrl = visitor(item, path14);
|
|
4975
4975
|
if (typeof ctrl === "symbol")
|
|
4976
4976
|
return ctrl;
|
|
4977
4977
|
for (const field of ["key", "value"]) {
|
|
4978
4978
|
const token = item[field];
|
|
4979
4979
|
if (token && "items" in token) {
|
|
4980
4980
|
for (let i = 0; i < token.items.length; ++i) {
|
|
4981
|
-
const ci = _visit(Object.freeze(
|
|
4981
|
+
const ci = _visit(Object.freeze(path14.concat([[field, i]])), token.items[i], visitor);
|
|
4982
4982
|
if (typeof ci === "number")
|
|
4983
4983
|
i = ci - 1;
|
|
4984
4984
|
else if (ci === BREAK2)
|
|
@@ -4989,10 +4989,10 @@ function _visit(path13, item, visitor) {
|
|
|
4989
4989
|
}
|
|
4990
4990
|
}
|
|
4991
4991
|
if (typeof ctrl === "function" && field === "key")
|
|
4992
|
-
ctrl = ctrl(item,
|
|
4992
|
+
ctrl = ctrl(item, path14);
|
|
4993
4993
|
}
|
|
4994
4994
|
}
|
|
4995
|
-
return typeof ctrl === "function" ? ctrl(item,
|
|
4995
|
+
return typeof ctrl === "function" ? ctrl(item, path14) : ctrl;
|
|
4996
4996
|
}
|
|
4997
4997
|
|
|
4998
4998
|
// ../../node_modules/yaml/browser/dist/parse/cst.js
|
|
@@ -6656,6 +6656,2052 @@ function admittedMacBuilderSlot(env = process.env) {
|
|
|
6656
6656
|
return windowAdmission() !== null;
|
|
6657
6657
|
}
|
|
6658
6658
|
|
|
6659
|
+
// src/generated/swift-c-predefines.json
|
|
6660
|
+
var swift_c_predefines_default = {
|
|
6661
|
+
release: "swift-6.4.0-RELEASE-custom-8be2e4a7a393b003",
|
|
6662
|
+
languages: {
|
|
6663
|
+
c: {
|
|
6664
|
+
TARGET_IPHONE_SIMULATOR: "1",
|
|
6665
|
+
TARGET_OS_DRIVERKIT: "0",
|
|
6666
|
+
TARGET_OS_EMBEDDED: "0",
|
|
6667
|
+
TARGET_OS_FIRMWARE: "0",
|
|
6668
|
+
TARGET_OS_IOS: "1",
|
|
6669
|
+
TARGET_OS_IPHONE: "1",
|
|
6670
|
+
TARGET_OS_LINUX: "0",
|
|
6671
|
+
TARGET_OS_MAC: "1",
|
|
6672
|
+
TARGET_OS_MACCATALYST: "0",
|
|
6673
|
+
TARGET_OS_NANO: "0",
|
|
6674
|
+
TARGET_OS_OSX: "0",
|
|
6675
|
+
TARGET_OS_SIMULATOR: "1",
|
|
6676
|
+
TARGET_OS_TV: "0",
|
|
6677
|
+
TARGET_OS_UEFI: "0",
|
|
6678
|
+
TARGET_OS_UIKITFORMAC: "0",
|
|
6679
|
+
TARGET_OS_UNIX: "0",
|
|
6680
|
+
TARGET_OS_VISION: "0",
|
|
6681
|
+
TARGET_OS_WATCH: "0",
|
|
6682
|
+
TARGET_OS_WIN32: "0",
|
|
6683
|
+
TARGET_OS_WINDOWS: "0",
|
|
6684
|
+
_LP64: "1",
|
|
6685
|
+
__AARCH64EL__: "1",
|
|
6686
|
+
__AARCH64_CMODEL_SMALL__: "1",
|
|
6687
|
+
__AARCH64_SIMD__: "1",
|
|
6688
|
+
__APPLE_CC__: "6000",
|
|
6689
|
+
__APPLE_EMBEDDED_SIMULATOR__: "1",
|
|
6690
|
+
__APPLE__: "1",
|
|
6691
|
+
__ARM64_ARCH_8__: "1",
|
|
6692
|
+
__ARM_64BIT_STATE: "1",
|
|
6693
|
+
__ARM_ACLE: "202420",
|
|
6694
|
+
__ARM_ACLE_VERSION: "(year,quarter,patch) (100 * (year) + 10 * (quarter) + (patch))",
|
|
6695
|
+
__ARM_ALIGN_MAX_STACK_PWR: "4",
|
|
6696
|
+
__ARM_ARCH: "8",
|
|
6697
|
+
__ARM_ARCH_ISA_A64: "1",
|
|
6698
|
+
__ARM_ARCH_PROFILE: "'A'",
|
|
6699
|
+
__ARM_FEATURE_AES: "1",
|
|
6700
|
+
__ARM_FEATURE_ATOMICS: "1",
|
|
6701
|
+
__ARM_FEATURE_CLZ: "1",
|
|
6702
|
+
__ARM_FEATURE_COMPLEX: "1",
|
|
6703
|
+
__ARM_FEATURE_CRC32: "1",
|
|
6704
|
+
__ARM_FEATURE_CRYPTO: "1",
|
|
6705
|
+
__ARM_FEATURE_DIRECTED_ROUNDING: "1",
|
|
6706
|
+
__ARM_FEATURE_DIV: "1",
|
|
6707
|
+
__ARM_FEATURE_DOTPROD: "1",
|
|
6708
|
+
__ARM_FEATURE_FMA: "1",
|
|
6709
|
+
__ARM_FEATURE_FP16_FML: "1",
|
|
6710
|
+
__ARM_FEATURE_FP16_SCALAR_ARITHMETIC: "1",
|
|
6711
|
+
__ARM_FEATURE_FP16_VECTOR_ARITHMETIC: "1",
|
|
6712
|
+
__ARM_FEATURE_IDIV: "1",
|
|
6713
|
+
__ARM_FEATURE_JCVT: "1",
|
|
6714
|
+
__ARM_FEATURE_LDREX: "0xF",
|
|
6715
|
+
__ARM_FEATURE_NUMERIC_MAXMIN: "1",
|
|
6716
|
+
__ARM_FEATURE_PAUTH: "1",
|
|
6717
|
+
__ARM_FEATURE_QRDMX: "1",
|
|
6718
|
+
__ARM_FEATURE_RCPC: "1",
|
|
6719
|
+
__ARM_FEATURE_SHA2: "1",
|
|
6720
|
+
__ARM_FEATURE_SHA3: "1",
|
|
6721
|
+
__ARM_FEATURE_SHA512: "1",
|
|
6722
|
+
__ARM_FEATURE_UNALIGNED: "1",
|
|
6723
|
+
__ARM_FP: "0xE",
|
|
6724
|
+
__ARM_FP16_ARGS: "1",
|
|
6725
|
+
__ARM_FP16_FORMAT_IEEE: "1",
|
|
6726
|
+
__ARM_NEON: "1",
|
|
6727
|
+
__ARM_NEON_FP: "0xE",
|
|
6728
|
+
__ARM_NEON_SVE_BRIDGE: "1",
|
|
6729
|
+
__ARM_NEON__: "1",
|
|
6730
|
+
__ARM_PCS_AAPCS64: "1",
|
|
6731
|
+
__ARM_SIZEOF_MINIMAL_ENUM: "4",
|
|
6732
|
+
__ARM_SIZEOF_WCHAR_T: "4",
|
|
6733
|
+
__ARM_STATE_ZA: "1",
|
|
6734
|
+
__ARM_STATE_ZT0: "1",
|
|
6735
|
+
__ATOMIC_ACQUIRE: "2",
|
|
6736
|
+
__ATOMIC_ACQ_REL: "4",
|
|
6737
|
+
__ATOMIC_CONSUME: "1",
|
|
6738
|
+
__ATOMIC_RELAXED: "0",
|
|
6739
|
+
__ATOMIC_RELEASE: "3",
|
|
6740
|
+
__ATOMIC_SEQ_CST: "5",
|
|
6741
|
+
__BIGGEST_ALIGNMENT__: "8",
|
|
6742
|
+
__BITINT_MAXWIDTH__: "128",
|
|
6743
|
+
__BLOCKS__: "1",
|
|
6744
|
+
__BOOL_WIDTH__: "1",
|
|
6745
|
+
__BYTE_ORDER__: "__ORDER_LITTLE_ENDIAN__",
|
|
6746
|
+
__CHAR16_TYPE__: "unsigned short",
|
|
6747
|
+
__CHAR32_TYPE__: "unsigned int",
|
|
6748
|
+
__CHAR_BIT__: "8",
|
|
6749
|
+
__CLANG_ATOMIC_BOOL_LOCK_FREE: "2",
|
|
6750
|
+
__CLANG_ATOMIC_CHAR16_T_LOCK_FREE: "2",
|
|
6751
|
+
__CLANG_ATOMIC_CHAR32_T_LOCK_FREE: "2",
|
|
6752
|
+
__CLANG_ATOMIC_CHAR_LOCK_FREE: "2",
|
|
6753
|
+
__CLANG_ATOMIC_INT_LOCK_FREE: "2",
|
|
6754
|
+
__CLANG_ATOMIC_LLONG_LOCK_FREE: "2",
|
|
6755
|
+
__CLANG_ATOMIC_LONG_LOCK_FREE: "2",
|
|
6756
|
+
__CLANG_ATOMIC_POINTER_LOCK_FREE: "2",
|
|
6757
|
+
__CLANG_ATOMIC_SHORT_LOCK_FREE: "2",
|
|
6758
|
+
__CLANG_ATOMIC_WCHAR_T_LOCK_FREE: "2",
|
|
6759
|
+
__CONSTANT_CFSTRINGS__: "1",
|
|
6760
|
+
__DBL_DECIMAL_DIG__: "17",
|
|
6761
|
+
__DBL_DENORM_MIN__: "4.9406564584124654e-324",
|
|
6762
|
+
__DBL_DIG__: "15",
|
|
6763
|
+
__DBL_EPSILON__: "2.2204460492503131e-16",
|
|
6764
|
+
__DBL_HAS_DENORM__: "1",
|
|
6765
|
+
__DBL_HAS_INFINITY__: "1",
|
|
6766
|
+
__DBL_HAS_QUIET_NAN__: "1",
|
|
6767
|
+
__DBL_MANT_DIG__: "53",
|
|
6768
|
+
__DBL_MAX_10_EXP__: "308",
|
|
6769
|
+
__DBL_MAX_EXP__: "1024",
|
|
6770
|
+
__DBL_MAX__: "1.7976931348623157e+308",
|
|
6771
|
+
__DBL_MIN_10_EXP__: "(-307)",
|
|
6772
|
+
__DBL_MIN_EXP__: "(-1021)",
|
|
6773
|
+
__DBL_MIN__: "2.2250738585072014e-308",
|
|
6774
|
+
__DBL_NORM_MAX__: "1.7976931348623157e+308",
|
|
6775
|
+
__DECIMAL_DIG__: "__LDBL_DECIMAL_DIG__",
|
|
6776
|
+
__DYNAMIC__: "1",
|
|
6777
|
+
__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__: "70000",
|
|
6778
|
+
__ENVIRONMENT_OS_VERSION_MIN_REQUIRED__: "70000",
|
|
6779
|
+
__FINITE_MATH_ONLY__: "0",
|
|
6780
|
+
__FLT16_DECIMAL_DIG__: "5",
|
|
6781
|
+
__FLT16_DENORM_MIN__: "5.9604644775390625e-8F16",
|
|
6782
|
+
__FLT16_DIG__: "3",
|
|
6783
|
+
__FLT16_EPSILON__: "9.765625e-4F16",
|
|
6784
|
+
__FLT16_HAS_DENORM__: "1",
|
|
6785
|
+
__FLT16_HAS_INFINITY__: "1",
|
|
6786
|
+
__FLT16_HAS_QUIET_NAN__: "1",
|
|
6787
|
+
__FLT16_MANT_DIG__: "11",
|
|
6788
|
+
__FLT16_MAX_10_EXP__: "4",
|
|
6789
|
+
__FLT16_MAX_EXP__: "16",
|
|
6790
|
+
__FLT16_MAX__: "6.5504e+4F16",
|
|
6791
|
+
__FLT16_MIN_10_EXP__: "(-4)",
|
|
6792
|
+
__FLT16_MIN_EXP__: "(-13)",
|
|
6793
|
+
__FLT16_MIN__: "6.103515625e-5F16",
|
|
6794
|
+
__FLT16_NORM_MAX__: "6.5504e+4F16",
|
|
6795
|
+
__FLT_DECIMAL_DIG__: "9",
|
|
6796
|
+
__FLT_DENORM_MIN__: "1.40129846e-45F",
|
|
6797
|
+
__FLT_DIG__: "6",
|
|
6798
|
+
__FLT_EPSILON__: "1.19209290e-7F",
|
|
6799
|
+
__FLT_HAS_DENORM__: "1",
|
|
6800
|
+
__FLT_HAS_INFINITY__: "1",
|
|
6801
|
+
__FLT_HAS_QUIET_NAN__: "1",
|
|
6802
|
+
__FLT_MANT_DIG__: "24",
|
|
6803
|
+
__FLT_MAX_10_EXP__: "38",
|
|
6804
|
+
__FLT_MAX_EXP__: "128",
|
|
6805
|
+
__FLT_MAX__: "3.40282347e+38F",
|
|
6806
|
+
__FLT_MIN_10_EXP__: "(-37)",
|
|
6807
|
+
__FLT_MIN_EXP__: "(-125)",
|
|
6808
|
+
__FLT_MIN__: "1.17549435e-38F",
|
|
6809
|
+
__FLT_NORM_MAX__: "3.40282347e+38F",
|
|
6810
|
+
__FLT_RADIX__: "2",
|
|
6811
|
+
__FPCLASS_NEGINF: "0x0004",
|
|
6812
|
+
__FPCLASS_NEGNORMAL: "0x0008",
|
|
6813
|
+
__FPCLASS_NEGSUBNORMAL: "0x0010",
|
|
6814
|
+
__FPCLASS_NEGZERO: "0x0020",
|
|
6815
|
+
__FPCLASS_POSINF: "0x0200",
|
|
6816
|
+
__FPCLASS_POSNORMAL: "0x0100",
|
|
6817
|
+
__FPCLASS_POSSUBNORMAL: "0x0080",
|
|
6818
|
+
__FPCLASS_POSZERO: "0x0040",
|
|
6819
|
+
__FPCLASS_QNAN: "0x0002",
|
|
6820
|
+
__FPCLASS_SNAN: "0x0001",
|
|
6821
|
+
__FP_FAST_FMA: "1",
|
|
6822
|
+
__FP_FAST_FMAF: "1",
|
|
6823
|
+
__FUNCTION_MULTI_VERSIONING_SUPPORT_LEVEL: "202430",
|
|
6824
|
+
__GCC_ASM_FLAG_OUTPUTS__: "1",
|
|
6825
|
+
__GCC_ATOMIC_BOOL_LOCK_FREE: "2",
|
|
6826
|
+
__GCC_ATOMIC_CHAR16_T_LOCK_FREE: "2",
|
|
6827
|
+
__GCC_ATOMIC_CHAR32_T_LOCK_FREE: "2",
|
|
6828
|
+
__GCC_ATOMIC_CHAR_LOCK_FREE: "2",
|
|
6829
|
+
__GCC_ATOMIC_INT_LOCK_FREE: "2",
|
|
6830
|
+
__GCC_ATOMIC_LLONG_LOCK_FREE: "2",
|
|
6831
|
+
__GCC_ATOMIC_LONG_LOCK_FREE: "2",
|
|
6832
|
+
__GCC_ATOMIC_POINTER_LOCK_FREE: "2",
|
|
6833
|
+
__GCC_ATOMIC_SHORT_LOCK_FREE: "2",
|
|
6834
|
+
__GCC_ATOMIC_TEST_AND_SET_TRUEVAL: "1",
|
|
6835
|
+
__GCC_ATOMIC_WCHAR_T_LOCK_FREE: "2",
|
|
6836
|
+
__GCC_CONSTRUCTIVE_SIZE: "64",
|
|
6837
|
+
__GCC_DESTRUCTIVE_SIZE: "256",
|
|
6838
|
+
__GCC_HAVE_DWARF2_CFI_ASM: "1",
|
|
6839
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1: "1",
|
|
6840
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16: "1",
|
|
6841
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2: "1",
|
|
6842
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4: "1",
|
|
6843
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8: "1",
|
|
6844
|
+
__GNUC_MINOR__: "2",
|
|
6845
|
+
__GNUC_PATCHLEVEL__: "1",
|
|
6846
|
+
__GNUC_STDC_INLINE__: "1",
|
|
6847
|
+
__GNUC__: "4",
|
|
6848
|
+
__GXX_ABI_VERSION: "1002",
|
|
6849
|
+
__HAVE_FUNCTION_MULTI_VERSIONING: "1",
|
|
6850
|
+
__INT16_C: "(c) c",
|
|
6851
|
+
__INT16_C_SUFFIX__: null,
|
|
6852
|
+
__INT16_FMTd__: '"hd"',
|
|
6853
|
+
__INT16_FMTi__: '"hi"',
|
|
6854
|
+
__INT16_MAX__: "32767",
|
|
6855
|
+
__INT16_TYPE__: "short",
|
|
6856
|
+
__INT32_C: "(c) c",
|
|
6857
|
+
__INT32_C_SUFFIX__: null,
|
|
6858
|
+
__INT32_FMTd__: '"d"',
|
|
6859
|
+
__INT32_FMTi__: '"i"',
|
|
6860
|
+
__INT32_MAX__: "2147483647",
|
|
6861
|
+
__INT32_TYPE__: "int",
|
|
6862
|
+
__INT64_C: "(c) c##LL",
|
|
6863
|
+
__INT64_C_SUFFIX__: "LL",
|
|
6864
|
+
__INT64_FMTd__: '"lld"',
|
|
6865
|
+
__INT64_FMTi__: '"lli"',
|
|
6866
|
+
__INT64_MAX__: "9223372036854775807LL",
|
|
6867
|
+
__INT64_TYPE__: "long long int",
|
|
6868
|
+
__INT8_C: "(c) c",
|
|
6869
|
+
__INT8_C_SUFFIX__: null,
|
|
6870
|
+
__INT8_FMTd__: '"hhd"',
|
|
6871
|
+
__INT8_FMTi__: '"hhi"',
|
|
6872
|
+
__INT8_MAX__: "127",
|
|
6873
|
+
__INT8_TYPE__: "signed char",
|
|
6874
|
+
__INTMAX_C: "(c) c##L",
|
|
6875
|
+
__INTMAX_C_SUFFIX__: "L",
|
|
6876
|
+
__INTMAX_FMTd__: '"ld"',
|
|
6877
|
+
__INTMAX_FMTi__: '"li"',
|
|
6878
|
+
__INTMAX_MAX__: "9223372036854775807L",
|
|
6879
|
+
__INTMAX_TYPE__: "long int",
|
|
6880
|
+
__INTMAX_WIDTH__: "64",
|
|
6881
|
+
__INTPTR_FMTd__: '"ld"',
|
|
6882
|
+
__INTPTR_FMTi__: '"li"',
|
|
6883
|
+
__INTPTR_MAX__: "9223372036854775807L",
|
|
6884
|
+
__INTPTR_TYPE__: "long int",
|
|
6885
|
+
__INTPTR_WIDTH__: "64",
|
|
6886
|
+
__INT_FAST16_FMTd__: '"hd"',
|
|
6887
|
+
__INT_FAST16_FMTi__: '"hi"',
|
|
6888
|
+
__INT_FAST16_MAX__: "32767",
|
|
6889
|
+
__INT_FAST16_TYPE__: "short",
|
|
6890
|
+
__INT_FAST16_WIDTH__: "16",
|
|
6891
|
+
__INT_FAST32_FMTd__: '"d"',
|
|
6892
|
+
__INT_FAST32_FMTi__: '"i"',
|
|
6893
|
+
__INT_FAST32_MAX__: "2147483647",
|
|
6894
|
+
__INT_FAST32_TYPE__: "int",
|
|
6895
|
+
__INT_FAST32_WIDTH__: "32",
|
|
6896
|
+
__INT_FAST64_FMTd__: '"lld"',
|
|
6897
|
+
__INT_FAST64_FMTi__: '"lli"',
|
|
6898
|
+
__INT_FAST64_MAX__: "9223372036854775807LL",
|
|
6899
|
+
__INT_FAST64_TYPE__: "long long int",
|
|
6900
|
+
__INT_FAST64_WIDTH__: "64",
|
|
6901
|
+
__INT_FAST8_FMTd__: '"hhd"',
|
|
6902
|
+
__INT_FAST8_FMTi__: '"hhi"',
|
|
6903
|
+
__INT_FAST8_MAX__: "127",
|
|
6904
|
+
__INT_FAST8_TYPE__: "signed char",
|
|
6905
|
+
__INT_FAST8_WIDTH__: "8",
|
|
6906
|
+
__INT_LEAST16_FMTd__: '"hd"',
|
|
6907
|
+
__INT_LEAST16_FMTi__: '"hi"',
|
|
6908
|
+
__INT_LEAST16_MAX__: "32767",
|
|
6909
|
+
__INT_LEAST16_TYPE__: "short",
|
|
6910
|
+
__INT_LEAST16_WIDTH__: "16",
|
|
6911
|
+
__INT_LEAST32_FMTd__: '"d"',
|
|
6912
|
+
__INT_LEAST32_FMTi__: '"i"',
|
|
6913
|
+
__INT_LEAST32_MAX__: "2147483647",
|
|
6914
|
+
__INT_LEAST32_TYPE__: "int",
|
|
6915
|
+
__INT_LEAST32_WIDTH__: "32",
|
|
6916
|
+
__INT_LEAST64_FMTd__: '"lld"',
|
|
6917
|
+
__INT_LEAST64_FMTi__: '"lli"',
|
|
6918
|
+
__INT_LEAST64_MAX__: "9223372036854775807LL",
|
|
6919
|
+
__INT_LEAST64_TYPE__: "long long int",
|
|
6920
|
+
__INT_LEAST64_WIDTH__: "64",
|
|
6921
|
+
__INT_LEAST8_FMTd__: '"hhd"',
|
|
6922
|
+
__INT_LEAST8_FMTi__: '"hhi"',
|
|
6923
|
+
__INT_LEAST8_MAX__: "127",
|
|
6924
|
+
__INT_LEAST8_TYPE__: "signed char",
|
|
6925
|
+
__INT_LEAST8_WIDTH__: "8",
|
|
6926
|
+
__INT_MAX__: "2147483647",
|
|
6927
|
+
__INT_WIDTH__: "32",
|
|
6928
|
+
__LDBL_DECIMAL_DIG__: "17",
|
|
6929
|
+
__LDBL_DENORM_MIN__: "4.9406564584124654e-324L",
|
|
6930
|
+
__LDBL_DIG__: "15",
|
|
6931
|
+
__LDBL_EPSILON__: "2.2204460492503131e-16L",
|
|
6932
|
+
__LDBL_HAS_DENORM__: "1",
|
|
6933
|
+
__LDBL_HAS_INFINITY__: "1",
|
|
6934
|
+
__LDBL_HAS_QUIET_NAN__: "1",
|
|
6935
|
+
__LDBL_MANT_DIG__: "53",
|
|
6936
|
+
__LDBL_MAX_10_EXP__: "308",
|
|
6937
|
+
__LDBL_MAX_EXP__: "1024",
|
|
6938
|
+
__LDBL_MAX__: "1.7976931348623157e+308L",
|
|
6939
|
+
__LDBL_MIN_10_EXP__: "(-307)",
|
|
6940
|
+
__LDBL_MIN_EXP__: "(-1021)",
|
|
6941
|
+
__LDBL_MIN__: "2.2250738585072014e-308L",
|
|
6942
|
+
__LDBL_NORM_MAX__: "1.7976931348623157e+308L",
|
|
6943
|
+
__LITTLE_ENDIAN__: "1",
|
|
6944
|
+
__LLONG_WIDTH__: "64",
|
|
6945
|
+
__LONG_LONG_MAX__: "9223372036854775807LL",
|
|
6946
|
+
__LONG_MAX__: "9223372036854775807L",
|
|
6947
|
+
__LONG_WIDTH__: "64",
|
|
6948
|
+
__LP64__: "1",
|
|
6949
|
+
__MACH__: "1",
|
|
6950
|
+
__MEMORY_SCOPE_DEVICE: "1",
|
|
6951
|
+
__MEMORY_SCOPE_SINGLE: "4",
|
|
6952
|
+
__MEMORY_SCOPE_SYSTEM: "0",
|
|
6953
|
+
__MEMORY_SCOPE_WRKGRP: "2",
|
|
6954
|
+
__MEMORY_SCOPE_WVFRNT: "3",
|
|
6955
|
+
__NO_INLINE__: "1",
|
|
6956
|
+
__NO_MATH_ERRNO__: "1",
|
|
6957
|
+
__OBJC_BOOL_IS_BOOL: "1",
|
|
6958
|
+
__OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES: "3",
|
|
6959
|
+
__OPENCL_MEMORY_SCOPE_DEVICE: "2",
|
|
6960
|
+
__OPENCL_MEMORY_SCOPE_SUB_GROUP: "4",
|
|
6961
|
+
__OPENCL_MEMORY_SCOPE_WORK_GROUP: "1",
|
|
6962
|
+
__OPENCL_MEMORY_SCOPE_WORK_ITEM: "0",
|
|
6963
|
+
__ORDER_BIG_ENDIAN__: "4321",
|
|
6964
|
+
__ORDER_LITTLE_ENDIAN__: "1234",
|
|
6965
|
+
__ORDER_PDP_ENDIAN__: "3412",
|
|
6966
|
+
__PIC__: "2",
|
|
6967
|
+
__POINTER_WIDTH__: "64",
|
|
6968
|
+
__PRAGMA_REDEFINE_EXTNAME: "1",
|
|
6969
|
+
__PTRDIFF_FMTd__: '"ld"',
|
|
6970
|
+
__PTRDIFF_FMTi__: '"li"',
|
|
6971
|
+
__PTRDIFF_MAX__: "9223372036854775807L",
|
|
6972
|
+
__PTRDIFF_TYPE__: "long int",
|
|
6973
|
+
__PTRDIFF_WIDTH__: "64",
|
|
6974
|
+
__REGISTER_PREFIX__: null,
|
|
6975
|
+
__SCHAR_MAX__: "127",
|
|
6976
|
+
__SHRT_MAX__: "32767",
|
|
6977
|
+
__SHRT_WIDTH__: "16",
|
|
6978
|
+
__SIG_ATOMIC_MAX__: "2147483647",
|
|
6979
|
+
__SIG_ATOMIC_WIDTH__: "32",
|
|
6980
|
+
__SIZEOF_DOUBLE__: "8",
|
|
6981
|
+
__SIZEOF_FLOAT__: "4",
|
|
6982
|
+
__SIZEOF_INT128__: "16",
|
|
6983
|
+
__SIZEOF_INT__: "4",
|
|
6984
|
+
__SIZEOF_LONG_DOUBLE__: "8",
|
|
6985
|
+
__SIZEOF_LONG_LONG__: "8",
|
|
6986
|
+
__SIZEOF_LONG__: "8",
|
|
6987
|
+
__SIZEOF_POINTER__: "8",
|
|
6988
|
+
__SIZEOF_PTRDIFF_T__: "8",
|
|
6989
|
+
__SIZEOF_SHORT__: "2",
|
|
6990
|
+
__SIZEOF_SIZE_T__: "8",
|
|
6991
|
+
__SIZEOF_WCHAR_T__: "4",
|
|
6992
|
+
__SIZEOF_WINT_T__: "4",
|
|
6993
|
+
__SIZE_FMTX__: '"lX"',
|
|
6994
|
+
__SIZE_FMTo__: '"lo"',
|
|
6995
|
+
__SIZE_FMTu__: '"lu"',
|
|
6996
|
+
__SIZE_FMTx__: '"lx"',
|
|
6997
|
+
__SIZE_MAX__: "18446744073709551615UL",
|
|
6998
|
+
__SIZE_TYPE__: "long unsigned int",
|
|
6999
|
+
__SIZE_WIDTH__: "64",
|
|
7000
|
+
__SSP__: "1",
|
|
7001
|
+
__STDC_EMBED_EMPTY__: "2",
|
|
7002
|
+
__STDC_EMBED_FOUND__: "1",
|
|
7003
|
+
__STDC_EMBED_NOT_FOUND__: "0",
|
|
7004
|
+
__STDC_HOSTED__: "1",
|
|
7005
|
+
__STDC_NO_THREADS__: "1",
|
|
7006
|
+
__STDC_UTF_16__: "1",
|
|
7007
|
+
__STDC_UTF_32__: "1",
|
|
7008
|
+
__STDC_VERSION__: "201710L",
|
|
7009
|
+
__STDC__: "1",
|
|
7010
|
+
__UINT16_C: "(c) c",
|
|
7011
|
+
__UINT16_C_SUFFIX__: null,
|
|
7012
|
+
__UINT16_FMTX__: '"hX"',
|
|
7013
|
+
__UINT16_FMTo__: '"ho"',
|
|
7014
|
+
__UINT16_FMTu__: '"hu"',
|
|
7015
|
+
__UINT16_FMTx__: '"hx"',
|
|
7016
|
+
__UINT16_MAX__: "65535",
|
|
7017
|
+
__UINT16_TYPE__: "unsigned short",
|
|
7018
|
+
__UINT32_C: "(c) c##U",
|
|
7019
|
+
__UINT32_C_SUFFIX__: "U",
|
|
7020
|
+
__UINT32_FMTX__: '"X"',
|
|
7021
|
+
__UINT32_FMTo__: '"o"',
|
|
7022
|
+
__UINT32_FMTu__: '"u"',
|
|
7023
|
+
__UINT32_FMTx__: '"x"',
|
|
7024
|
+
__UINT32_MAX__: "4294967295U",
|
|
7025
|
+
__UINT32_TYPE__: "unsigned int",
|
|
7026
|
+
__UINT64_C: "(c) c##ULL",
|
|
7027
|
+
__UINT64_C_SUFFIX__: "ULL",
|
|
7028
|
+
__UINT64_FMTX__: '"llX"',
|
|
7029
|
+
__UINT64_FMTo__: '"llo"',
|
|
7030
|
+
__UINT64_FMTu__: '"llu"',
|
|
7031
|
+
__UINT64_FMTx__: '"llx"',
|
|
7032
|
+
__UINT64_MAX__: "18446744073709551615ULL",
|
|
7033
|
+
__UINT64_TYPE__: "long long unsigned int",
|
|
7034
|
+
__UINT8_C: "(c) c",
|
|
7035
|
+
__UINT8_C_SUFFIX__: null,
|
|
7036
|
+
__UINT8_FMTX__: '"hhX"',
|
|
7037
|
+
__UINT8_FMTo__: '"hho"',
|
|
7038
|
+
__UINT8_FMTu__: '"hhu"',
|
|
7039
|
+
__UINT8_FMTx__: '"hhx"',
|
|
7040
|
+
__UINT8_MAX__: "255",
|
|
7041
|
+
__UINT8_TYPE__: "unsigned char",
|
|
7042
|
+
__UINTMAX_C: "(c) c##UL",
|
|
7043
|
+
__UINTMAX_C_SUFFIX__: "UL",
|
|
7044
|
+
__UINTMAX_FMTX__: '"lX"',
|
|
7045
|
+
__UINTMAX_FMTo__: '"lo"',
|
|
7046
|
+
__UINTMAX_FMTu__: '"lu"',
|
|
7047
|
+
__UINTMAX_FMTx__: '"lx"',
|
|
7048
|
+
__UINTMAX_MAX__: "18446744073709551615UL",
|
|
7049
|
+
__UINTMAX_TYPE__: "long unsigned int",
|
|
7050
|
+
__UINTMAX_WIDTH__: "64",
|
|
7051
|
+
__UINTPTR_FMTX__: '"lX"',
|
|
7052
|
+
__UINTPTR_FMTo__: '"lo"',
|
|
7053
|
+
__UINTPTR_FMTu__: '"lu"',
|
|
7054
|
+
__UINTPTR_FMTx__: '"lx"',
|
|
7055
|
+
__UINTPTR_MAX__: "18446744073709551615UL",
|
|
7056
|
+
__UINTPTR_TYPE__: "long unsigned int",
|
|
7057
|
+
__UINTPTR_WIDTH__: "64",
|
|
7058
|
+
__UINT_FAST16_FMTX__: '"hX"',
|
|
7059
|
+
__UINT_FAST16_FMTo__: '"ho"',
|
|
7060
|
+
__UINT_FAST16_FMTu__: '"hu"',
|
|
7061
|
+
__UINT_FAST16_FMTx__: '"hx"',
|
|
7062
|
+
__UINT_FAST16_MAX__: "65535",
|
|
7063
|
+
__UINT_FAST16_TYPE__: "unsigned short",
|
|
7064
|
+
__UINT_FAST32_FMTX__: '"X"',
|
|
7065
|
+
__UINT_FAST32_FMTo__: '"o"',
|
|
7066
|
+
__UINT_FAST32_FMTu__: '"u"',
|
|
7067
|
+
__UINT_FAST32_FMTx__: '"x"',
|
|
7068
|
+
__UINT_FAST32_MAX__: "4294967295U",
|
|
7069
|
+
__UINT_FAST32_TYPE__: "unsigned int",
|
|
7070
|
+
__UINT_FAST64_FMTX__: '"llX"',
|
|
7071
|
+
__UINT_FAST64_FMTo__: '"llo"',
|
|
7072
|
+
__UINT_FAST64_FMTu__: '"llu"',
|
|
7073
|
+
__UINT_FAST64_FMTx__: '"llx"',
|
|
7074
|
+
__UINT_FAST64_MAX__: "18446744073709551615ULL",
|
|
7075
|
+
__UINT_FAST64_TYPE__: "long long unsigned int",
|
|
7076
|
+
__UINT_FAST8_FMTX__: '"hhX"',
|
|
7077
|
+
__UINT_FAST8_FMTo__: '"hho"',
|
|
7078
|
+
__UINT_FAST8_FMTu__: '"hhu"',
|
|
7079
|
+
__UINT_FAST8_FMTx__: '"hhx"',
|
|
7080
|
+
__UINT_FAST8_MAX__: "255",
|
|
7081
|
+
__UINT_FAST8_TYPE__: "unsigned char",
|
|
7082
|
+
__UINT_LEAST16_FMTX__: '"hX"',
|
|
7083
|
+
__UINT_LEAST16_FMTo__: '"ho"',
|
|
7084
|
+
__UINT_LEAST16_FMTu__: '"hu"',
|
|
7085
|
+
__UINT_LEAST16_FMTx__: '"hx"',
|
|
7086
|
+
__UINT_LEAST16_MAX__: "65535",
|
|
7087
|
+
__UINT_LEAST16_TYPE__: "unsigned short",
|
|
7088
|
+
__UINT_LEAST32_FMTX__: '"X"',
|
|
7089
|
+
__UINT_LEAST32_FMTo__: '"o"',
|
|
7090
|
+
__UINT_LEAST32_FMTu__: '"u"',
|
|
7091
|
+
__UINT_LEAST32_FMTx__: '"x"',
|
|
7092
|
+
__UINT_LEAST32_MAX__: "4294967295U",
|
|
7093
|
+
__UINT_LEAST32_TYPE__: "unsigned int",
|
|
7094
|
+
__UINT_LEAST64_FMTX__: '"llX"',
|
|
7095
|
+
__UINT_LEAST64_FMTo__: '"llo"',
|
|
7096
|
+
__UINT_LEAST64_FMTu__: '"llu"',
|
|
7097
|
+
__UINT_LEAST64_FMTx__: '"llx"',
|
|
7098
|
+
__UINT_LEAST64_MAX__: "18446744073709551615ULL",
|
|
7099
|
+
__UINT_LEAST64_TYPE__: "long long unsigned int",
|
|
7100
|
+
__UINT_LEAST8_FMTX__: '"hhX"',
|
|
7101
|
+
__UINT_LEAST8_FMTo__: '"hho"',
|
|
7102
|
+
__UINT_LEAST8_FMTu__: '"hhu"',
|
|
7103
|
+
__UINT_LEAST8_FMTx__: '"hhx"',
|
|
7104
|
+
__UINT_LEAST8_MAX__: "255",
|
|
7105
|
+
__UINT_LEAST8_TYPE__: "unsigned char",
|
|
7106
|
+
__USER_LABEL_PREFIX__: "_",
|
|
7107
|
+
__VERSION__: '"Clang 21.0.0"',
|
|
7108
|
+
__WCHAR_MAX__: "2147483647",
|
|
7109
|
+
__WCHAR_TYPE__: "int",
|
|
7110
|
+
__WCHAR_WIDTH__: "32",
|
|
7111
|
+
__WINT_MAX__: "2147483647",
|
|
7112
|
+
__WINT_TYPE__: "int",
|
|
7113
|
+
__WINT_WIDTH__: "32",
|
|
7114
|
+
__aarch64__: "1",
|
|
7115
|
+
__arm64: "1",
|
|
7116
|
+
__arm64__: "1",
|
|
7117
|
+
__block: "__attribute__((__blocks__(byref)))",
|
|
7118
|
+
__clang__: "1",
|
|
7119
|
+
__clang_literal_encoding__: '"UTF-8"',
|
|
7120
|
+
__clang_major__: "21",
|
|
7121
|
+
__clang_minor__: "0",
|
|
7122
|
+
__clang_patchlevel__: "0",
|
|
7123
|
+
__clang_version__: '"21.0.0 "',
|
|
7124
|
+
__clang_wide_literal_encoding__: '"UTF-32"',
|
|
7125
|
+
__llvm__: "1",
|
|
7126
|
+
__nonnull: "_Nonnull",
|
|
7127
|
+
__null_unspecified: "_Null_unspecified",
|
|
7128
|
+
__nullable: "_Nullable",
|
|
7129
|
+
__pic__: "2",
|
|
7130
|
+
__strong: null,
|
|
7131
|
+
__unsafe_unretained: null,
|
|
7132
|
+
__weak: "__attribute__((objc_gc(weak)))"
|
|
7133
|
+
},
|
|
7134
|
+
"c++": {
|
|
7135
|
+
TARGET_IPHONE_SIMULATOR: "1",
|
|
7136
|
+
TARGET_OS_DRIVERKIT: "0",
|
|
7137
|
+
TARGET_OS_EMBEDDED: "0",
|
|
7138
|
+
TARGET_OS_FIRMWARE: "0",
|
|
7139
|
+
TARGET_OS_IOS: "1",
|
|
7140
|
+
TARGET_OS_IPHONE: "1",
|
|
7141
|
+
TARGET_OS_LINUX: "0",
|
|
7142
|
+
TARGET_OS_MAC: "1",
|
|
7143
|
+
TARGET_OS_MACCATALYST: "0",
|
|
7144
|
+
TARGET_OS_NANO: "0",
|
|
7145
|
+
TARGET_OS_OSX: "0",
|
|
7146
|
+
TARGET_OS_SIMULATOR: "1",
|
|
7147
|
+
TARGET_OS_TV: "0",
|
|
7148
|
+
TARGET_OS_UEFI: "0",
|
|
7149
|
+
TARGET_OS_UIKITFORMAC: "0",
|
|
7150
|
+
TARGET_OS_UNIX: "0",
|
|
7151
|
+
TARGET_OS_VISION: "0",
|
|
7152
|
+
TARGET_OS_WATCH: "0",
|
|
7153
|
+
TARGET_OS_WIN32: "0",
|
|
7154
|
+
TARGET_OS_WINDOWS: "0",
|
|
7155
|
+
_LP64: "1",
|
|
7156
|
+
__AARCH64EL__: "1",
|
|
7157
|
+
__AARCH64_CMODEL_SMALL__: "1",
|
|
7158
|
+
__AARCH64_SIMD__: "1",
|
|
7159
|
+
__APPLE_CC__: "6000",
|
|
7160
|
+
__APPLE_EMBEDDED_SIMULATOR__: "1",
|
|
7161
|
+
__APPLE__: "1",
|
|
7162
|
+
__ARM64_ARCH_8__: "1",
|
|
7163
|
+
__ARM_64BIT_STATE: "1",
|
|
7164
|
+
__ARM_ACLE: "202420",
|
|
7165
|
+
__ARM_ACLE_VERSION: "(year,quarter,patch) (100 * (year) + 10 * (quarter) + (patch))",
|
|
7166
|
+
__ARM_ALIGN_MAX_STACK_PWR: "4",
|
|
7167
|
+
__ARM_ARCH: "8",
|
|
7168
|
+
__ARM_ARCH_ISA_A64: "1",
|
|
7169
|
+
__ARM_ARCH_PROFILE: "'A'",
|
|
7170
|
+
__ARM_FEATURE_AES: "1",
|
|
7171
|
+
__ARM_FEATURE_ATOMICS: "1",
|
|
7172
|
+
__ARM_FEATURE_CLZ: "1",
|
|
7173
|
+
__ARM_FEATURE_COMPLEX: "1",
|
|
7174
|
+
__ARM_FEATURE_CRC32: "1",
|
|
7175
|
+
__ARM_FEATURE_CRYPTO: "1",
|
|
7176
|
+
__ARM_FEATURE_DIRECTED_ROUNDING: "1",
|
|
7177
|
+
__ARM_FEATURE_DIV: "1",
|
|
7178
|
+
__ARM_FEATURE_DOTPROD: "1",
|
|
7179
|
+
__ARM_FEATURE_FMA: "1",
|
|
7180
|
+
__ARM_FEATURE_FP16_FML: "1",
|
|
7181
|
+
__ARM_FEATURE_FP16_SCALAR_ARITHMETIC: "1",
|
|
7182
|
+
__ARM_FEATURE_FP16_VECTOR_ARITHMETIC: "1",
|
|
7183
|
+
__ARM_FEATURE_IDIV: "1",
|
|
7184
|
+
__ARM_FEATURE_JCVT: "1",
|
|
7185
|
+
__ARM_FEATURE_LDREX: "0xF",
|
|
7186
|
+
__ARM_FEATURE_NUMERIC_MAXMIN: "1",
|
|
7187
|
+
__ARM_FEATURE_PAUTH: "1",
|
|
7188
|
+
__ARM_FEATURE_QRDMX: "1",
|
|
7189
|
+
__ARM_FEATURE_RCPC: "1",
|
|
7190
|
+
__ARM_FEATURE_SHA2: "1",
|
|
7191
|
+
__ARM_FEATURE_SHA3: "1",
|
|
7192
|
+
__ARM_FEATURE_SHA512: "1",
|
|
7193
|
+
__ARM_FEATURE_UNALIGNED: "1",
|
|
7194
|
+
__ARM_FP: "0xE",
|
|
7195
|
+
__ARM_FP16_ARGS: "1",
|
|
7196
|
+
__ARM_FP16_FORMAT_IEEE: "1",
|
|
7197
|
+
__ARM_NEON: "1",
|
|
7198
|
+
__ARM_NEON_FP: "0xE",
|
|
7199
|
+
__ARM_NEON_SVE_BRIDGE: "1",
|
|
7200
|
+
__ARM_NEON__: "1",
|
|
7201
|
+
__ARM_PCS_AAPCS64: "1",
|
|
7202
|
+
__ARM_SIZEOF_MINIMAL_ENUM: "4",
|
|
7203
|
+
__ARM_SIZEOF_WCHAR_T: "4",
|
|
7204
|
+
__ARM_STATE_ZA: "1",
|
|
7205
|
+
__ARM_STATE_ZT0: "1",
|
|
7206
|
+
__ATOMIC_ACQUIRE: "2",
|
|
7207
|
+
__ATOMIC_ACQ_REL: "4",
|
|
7208
|
+
__ATOMIC_CONSUME: "1",
|
|
7209
|
+
__ATOMIC_RELAXED: "0",
|
|
7210
|
+
__ATOMIC_RELEASE: "3",
|
|
7211
|
+
__ATOMIC_SEQ_CST: "5",
|
|
7212
|
+
__BIGGEST_ALIGNMENT__: "8",
|
|
7213
|
+
__BITINT_MAXWIDTH__: "128",
|
|
7214
|
+
__BLOCKS__: "1",
|
|
7215
|
+
__BOOL_WIDTH__: "1",
|
|
7216
|
+
__BYTE_ORDER__: "__ORDER_LITTLE_ENDIAN__",
|
|
7217
|
+
__CHAR16_TYPE__: "unsigned short",
|
|
7218
|
+
__CHAR32_TYPE__: "unsigned int",
|
|
7219
|
+
__CHAR_BIT__: "8",
|
|
7220
|
+
__CLANG_ATOMIC_BOOL_LOCK_FREE: "2",
|
|
7221
|
+
__CLANG_ATOMIC_CHAR16_T_LOCK_FREE: "2",
|
|
7222
|
+
__CLANG_ATOMIC_CHAR32_T_LOCK_FREE: "2",
|
|
7223
|
+
__CLANG_ATOMIC_CHAR_LOCK_FREE: "2",
|
|
7224
|
+
__CLANG_ATOMIC_INT_LOCK_FREE: "2",
|
|
7225
|
+
__CLANG_ATOMIC_LLONG_LOCK_FREE: "2",
|
|
7226
|
+
__CLANG_ATOMIC_LONG_LOCK_FREE: "2",
|
|
7227
|
+
__CLANG_ATOMIC_POINTER_LOCK_FREE: "2",
|
|
7228
|
+
__CLANG_ATOMIC_SHORT_LOCK_FREE: "2",
|
|
7229
|
+
__CLANG_ATOMIC_WCHAR_T_LOCK_FREE: "2",
|
|
7230
|
+
__CONSTANT_CFSTRINGS__: "1",
|
|
7231
|
+
__DBL_DECIMAL_DIG__: "17",
|
|
7232
|
+
__DBL_DENORM_MIN__: "4.9406564584124654e-324",
|
|
7233
|
+
__DBL_DIG__: "15",
|
|
7234
|
+
__DBL_EPSILON__: "2.2204460492503131e-16",
|
|
7235
|
+
__DBL_HAS_DENORM__: "1",
|
|
7236
|
+
__DBL_HAS_INFINITY__: "1",
|
|
7237
|
+
__DBL_HAS_QUIET_NAN__: "1",
|
|
7238
|
+
__DBL_MANT_DIG__: "53",
|
|
7239
|
+
__DBL_MAX_10_EXP__: "308",
|
|
7240
|
+
__DBL_MAX_EXP__: "1024",
|
|
7241
|
+
__DBL_MAX__: "1.7976931348623157e+308",
|
|
7242
|
+
__DBL_MIN_10_EXP__: "(-307)",
|
|
7243
|
+
__DBL_MIN_EXP__: "(-1021)",
|
|
7244
|
+
__DBL_MIN__: "2.2250738585072014e-308",
|
|
7245
|
+
__DBL_NORM_MAX__: "1.7976931348623157e+308",
|
|
7246
|
+
__DECIMAL_DIG__: "__LDBL_DECIMAL_DIG__",
|
|
7247
|
+
__DEPRECATED: "1",
|
|
7248
|
+
__DYNAMIC__: "1",
|
|
7249
|
+
__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__: "70000",
|
|
7250
|
+
__ENVIRONMENT_OS_VERSION_MIN_REQUIRED__: "70000",
|
|
7251
|
+
__EXCEPTIONS: "1",
|
|
7252
|
+
__FINITE_MATH_ONLY__: "0",
|
|
7253
|
+
__FLT16_DECIMAL_DIG__: "5",
|
|
7254
|
+
__FLT16_DENORM_MIN__: "5.9604644775390625e-8F16",
|
|
7255
|
+
__FLT16_DIG__: "3",
|
|
7256
|
+
__FLT16_EPSILON__: "9.765625e-4F16",
|
|
7257
|
+
__FLT16_HAS_DENORM__: "1",
|
|
7258
|
+
__FLT16_HAS_INFINITY__: "1",
|
|
7259
|
+
__FLT16_HAS_QUIET_NAN__: "1",
|
|
7260
|
+
__FLT16_MANT_DIG__: "11",
|
|
7261
|
+
__FLT16_MAX_10_EXP__: "4",
|
|
7262
|
+
__FLT16_MAX_EXP__: "16",
|
|
7263
|
+
__FLT16_MAX__: "6.5504e+4F16",
|
|
7264
|
+
__FLT16_MIN_10_EXP__: "(-4)",
|
|
7265
|
+
__FLT16_MIN_EXP__: "(-13)",
|
|
7266
|
+
__FLT16_MIN__: "6.103515625e-5F16",
|
|
7267
|
+
__FLT16_NORM_MAX__: "6.5504e+4F16",
|
|
7268
|
+
__FLT_DECIMAL_DIG__: "9",
|
|
7269
|
+
__FLT_DENORM_MIN__: "1.40129846e-45F",
|
|
7270
|
+
__FLT_DIG__: "6",
|
|
7271
|
+
__FLT_EPSILON__: "1.19209290e-7F",
|
|
7272
|
+
__FLT_HAS_DENORM__: "1",
|
|
7273
|
+
__FLT_HAS_INFINITY__: "1",
|
|
7274
|
+
__FLT_HAS_QUIET_NAN__: "1",
|
|
7275
|
+
__FLT_MANT_DIG__: "24",
|
|
7276
|
+
__FLT_MAX_10_EXP__: "38",
|
|
7277
|
+
__FLT_MAX_EXP__: "128",
|
|
7278
|
+
__FLT_MAX__: "3.40282347e+38F",
|
|
7279
|
+
__FLT_MIN_10_EXP__: "(-37)",
|
|
7280
|
+
__FLT_MIN_EXP__: "(-125)",
|
|
7281
|
+
__FLT_MIN__: "1.17549435e-38F",
|
|
7282
|
+
__FLT_NORM_MAX__: "3.40282347e+38F",
|
|
7283
|
+
__FLT_RADIX__: "2",
|
|
7284
|
+
__FPCLASS_NEGINF: "0x0004",
|
|
7285
|
+
__FPCLASS_NEGNORMAL: "0x0008",
|
|
7286
|
+
__FPCLASS_NEGSUBNORMAL: "0x0010",
|
|
7287
|
+
__FPCLASS_NEGZERO: "0x0020",
|
|
7288
|
+
__FPCLASS_POSINF: "0x0200",
|
|
7289
|
+
__FPCLASS_POSNORMAL: "0x0100",
|
|
7290
|
+
__FPCLASS_POSSUBNORMAL: "0x0080",
|
|
7291
|
+
__FPCLASS_POSZERO: "0x0040",
|
|
7292
|
+
__FPCLASS_QNAN: "0x0002",
|
|
7293
|
+
__FPCLASS_SNAN: "0x0001",
|
|
7294
|
+
__FP_FAST_FMA: "1",
|
|
7295
|
+
__FP_FAST_FMAF: "1",
|
|
7296
|
+
__FUNCTION_MULTI_VERSIONING_SUPPORT_LEVEL: "202430",
|
|
7297
|
+
__GCC_ASM_FLAG_OUTPUTS__: "1",
|
|
7298
|
+
__GCC_ATOMIC_BOOL_LOCK_FREE: "2",
|
|
7299
|
+
__GCC_ATOMIC_CHAR16_T_LOCK_FREE: "2",
|
|
7300
|
+
__GCC_ATOMIC_CHAR32_T_LOCK_FREE: "2",
|
|
7301
|
+
__GCC_ATOMIC_CHAR_LOCK_FREE: "2",
|
|
7302
|
+
__GCC_ATOMIC_INT_LOCK_FREE: "2",
|
|
7303
|
+
__GCC_ATOMIC_LLONG_LOCK_FREE: "2",
|
|
7304
|
+
__GCC_ATOMIC_LONG_LOCK_FREE: "2",
|
|
7305
|
+
__GCC_ATOMIC_POINTER_LOCK_FREE: "2",
|
|
7306
|
+
__GCC_ATOMIC_SHORT_LOCK_FREE: "2",
|
|
7307
|
+
__GCC_ATOMIC_TEST_AND_SET_TRUEVAL: "1",
|
|
7308
|
+
__GCC_ATOMIC_WCHAR_T_LOCK_FREE: "2",
|
|
7309
|
+
__GCC_CONSTRUCTIVE_SIZE: "64",
|
|
7310
|
+
__GCC_DESTRUCTIVE_SIZE: "256",
|
|
7311
|
+
__GCC_HAVE_DWARF2_CFI_ASM: "1",
|
|
7312
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1: "1",
|
|
7313
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16: "1",
|
|
7314
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2: "1",
|
|
7315
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4: "1",
|
|
7316
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8: "1",
|
|
7317
|
+
__GLIBCXX_BITSIZE_INT_N_0: "128",
|
|
7318
|
+
__GLIBCXX_TYPE_INT_N_0: "__int128",
|
|
7319
|
+
__GNUC_GNU_INLINE__: "1",
|
|
7320
|
+
__GNUC_MINOR__: "2",
|
|
7321
|
+
__GNUC_PATCHLEVEL__: "1",
|
|
7322
|
+
__GNUC__: "4",
|
|
7323
|
+
__GNUG__: "4",
|
|
7324
|
+
__GXX_ABI_VERSION: "1002",
|
|
7325
|
+
__GXX_EXPERIMENTAL_CXX0X__: "1",
|
|
7326
|
+
__GXX_RTTI: "1",
|
|
7327
|
+
__GXX_WEAK__: "1",
|
|
7328
|
+
__HAVE_FUNCTION_MULTI_VERSIONING: "1",
|
|
7329
|
+
__INT16_C: "(c) c",
|
|
7330
|
+
__INT16_C_SUFFIX__: null,
|
|
7331
|
+
__INT16_FMTd__: '"hd"',
|
|
7332
|
+
__INT16_FMTi__: '"hi"',
|
|
7333
|
+
__INT16_MAX__: "32767",
|
|
7334
|
+
__INT16_TYPE__: "short",
|
|
7335
|
+
__INT32_C: "(c) c",
|
|
7336
|
+
__INT32_C_SUFFIX__: null,
|
|
7337
|
+
__INT32_FMTd__: '"d"',
|
|
7338
|
+
__INT32_FMTi__: '"i"',
|
|
7339
|
+
__INT32_MAX__: "2147483647",
|
|
7340
|
+
__INT32_TYPE__: "int",
|
|
7341
|
+
__INT64_C: "(c) c##LL",
|
|
7342
|
+
__INT64_C_SUFFIX__: "LL",
|
|
7343
|
+
__INT64_FMTd__: '"lld"',
|
|
7344
|
+
__INT64_FMTi__: '"lli"',
|
|
7345
|
+
__INT64_MAX__: "9223372036854775807LL",
|
|
7346
|
+
__INT64_TYPE__: "long long int",
|
|
7347
|
+
__INT8_C: "(c) c",
|
|
7348
|
+
__INT8_C_SUFFIX__: null,
|
|
7349
|
+
__INT8_FMTd__: '"hhd"',
|
|
7350
|
+
__INT8_FMTi__: '"hhi"',
|
|
7351
|
+
__INT8_MAX__: "127",
|
|
7352
|
+
__INT8_TYPE__: "signed char",
|
|
7353
|
+
__INTMAX_C: "(c) c##L",
|
|
7354
|
+
__INTMAX_C_SUFFIX__: "L",
|
|
7355
|
+
__INTMAX_FMTd__: '"ld"',
|
|
7356
|
+
__INTMAX_FMTi__: '"li"',
|
|
7357
|
+
__INTMAX_MAX__: "9223372036854775807L",
|
|
7358
|
+
__INTMAX_TYPE__: "long int",
|
|
7359
|
+
__INTMAX_WIDTH__: "64",
|
|
7360
|
+
__INTPTR_FMTd__: '"ld"',
|
|
7361
|
+
__INTPTR_FMTi__: '"li"',
|
|
7362
|
+
__INTPTR_MAX__: "9223372036854775807L",
|
|
7363
|
+
__INTPTR_TYPE__: "long int",
|
|
7364
|
+
__INTPTR_WIDTH__: "64",
|
|
7365
|
+
__INT_FAST16_FMTd__: '"hd"',
|
|
7366
|
+
__INT_FAST16_FMTi__: '"hi"',
|
|
7367
|
+
__INT_FAST16_MAX__: "32767",
|
|
7368
|
+
__INT_FAST16_TYPE__: "short",
|
|
7369
|
+
__INT_FAST16_WIDTH__: "16",
|
|
7370
|
+
__INT_FAST32_FMTd__: '"d"',
|
|
7371
|
+
__INT_FAST32_FMTi__: '"i"',
|
|
7372
|
+
__INT_FAST32_MAX__: "2147483647",
|
|
7373
|
+
__INT_FAST32_TYPE__: "int",
|
|
7374
|
+
__INT_FAST32_WIDTH__: "32",
|
|
7375
|
+
__INT_FAST64_FMTd__: '"lld"',
|
|
7376
|
+
__INT_FAST64_FMTi__: '"lli"',
|
|
7377
|
+
__INT_FAST64_MAX__: "9223372036854775807LL",
|
|
7378
|
+
__INT_FAST64_TYPE__: "long long int",
|
|
7379
|
+
__INT_FAST64_WIDTH__: "64",
|
|
7380
|
+
__INT_FAST8_FMTd__: '"hhd"',
|
|
7381
|
+
__INT_FAST8_FMTi__: '"hhi"',
|
|
7382
|
+
__INT_FAST8_MAX__: "127",
|
|
7383
|
+
__INT_FAST8_TYPE__: "signed char",
|
|
7384
|
+
__INT_FAST8_WIDTH__: "8",
|
|
7385
|
+
__INT_LEAST16_FMTd__: '"hd"',
|
|
7386
|
+
__INT_LEAST16_FMTi__: '"hi"',
|
|
7387
|
+
__INT_LEAST16_MAX__: "32767",
|
|
7388
|
+
__INT_LEAST16_TYPE__: "short",
|
|
7389
|
+
__INT_LEAST16_WIDTH__: "16",
|
|
7390
|
+
__INT_LEAST32_FMTd__: '"d"',
|
|
7391
|
+
__INT_LEAST32_FMTi__: '"i"',
|
|
7392
|
+
__INT_LEAST32_MAX__: "2147483647",
|
|
7393
|
+
__INT_LEAST32_TYPE__: "int",
|
|
7394
|
+
__INT_LEAST32_WIDTH__: "32",
|
|
7395
|
+
__INT_LEAST64_FMTd__: '"lld"',
|
|
7396
|
+
__INT_LEAST64_FMTi__: '"lli"',
|
|
7397
|
+
__INT_LEAST64_MAX__: "9223372036854775807LL",
|
|
7398
|
+
__INT_LEAST64_TYPE__: "long long int",
|
|
7399
|
+
__INT_LEAST64_WIDTH__: "64",
|
|
7400
|
+
__INT_LEAST8_FMTd__: '"hhd"',
|
|
7401
|
+
__INT_LEAST8_FMTi__: '"hhi"',
|
|
7402
|
+
__INT_LEAST8_MAX__: "127",
|
|
7403
|
+
__INT_LEAST8_TYPE__: "signed char",
|
|
7404
|
+
__INT_LEAST8_WIDTH__: "8",
|
|
7405
|
+
__INT_MAX__: "2147483647",
|
|
7406
|
+
__INT_WIDTH__: "32",
|
|
7407
|
+
__LDBL_DECIMAL_DIG__: "17",
|
|
7408
|
+
__LDBL_DENORM_MIN__: "4.9406564584124654e-324L",
|
|
7409
|
+
__LDBL_DIG__: "15",
|
|
7410
|
+
__LDBL_EPSILON__: "2.2204460492503131e-16L",
|
|
7411
|
+
__LDBL_HAS_DENORM__: "1",
|
|
7412
|
+
__LDBL_HAS_INFINITY__: "1",
|
|
7413
|
+
__LDBL_HAS_QUIET_NAN__: "1",
|
|
7414
|
+
__LDBL_MANT_DIG__: "53",
|
|
7415
|
+
__LDBL_MAX_10_EXP__: "308",
|
|
7416
|
+
__LDBL_MAX_EXP__: "1024",
|
|
7417
|
+
__LDBL_MAX__: "1.7976931348623157e+308L",
|
|
7418
|
+
__LDBL_MIN_10_EXP__: "(-307)",
|
|
7419
|
+
__LDBL_MIN_EXP__: "(-1021)",
|
|
7420
|
+
__LDBL_MIN__: "2.2250738585072014e-308L",
|
|
7421
|
+
__LDBL_NORM_MAX__: "1.7976931348623157e+308L",
|
|
7422
|
+
__LITTLE_ENDIAN__: "1",
|
|
7423
|
+
__LLONG_WIDTH__: "64",
|
|
7424
|
+
__LONG_LONG_MAX__: "9223372036854775807LL",
|
|
7425
|
+
__LONG_MAX__: "9223372036854775807L",
|
|
7426
|
+
__LONG_WIDTH__: "64",
|
|
7427
|
+
__LP64__: "1",
|
|
7428
|
+
__MACH__: "1",
|
|
7429
|
+
__MEMORY_SCOPE_DEVICE: "1",
|
|
7430
|
+
__MEMORY_SCOPE_SINGLE: "4",
|
|
7431
|
+
__MEMORY_SCOPE_SYSTEM: "0",
|
|
7432
|
+
__MEMORY_SCOPE_WRKGRP: "2",
|
|
7433
|
+
__MEMORY_SCOPE_WVFRNT: "3",
|
|
7434
|
+
__NO_INLINE__: "1",
|
|
7435
|
+
__NO_MATH_ERRNO__: "1",
|
|
7436
|
+
__OBJC_BOOL_IS_BOOL: "1",
|
|
7437
|
+
__OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES: "3",
|
|
7438
|
+
__OPENCL_MEMORY_SCOPE_DEVICE: "2",
|
|
7439
|
+
__OPENCL_MEMORY_SCOPE_SUB_GROUP: "4",
|
|
7440
|
+
__OPENCL_MEMORY_SCOPE_WORK_GROUP: "1",
|
|
7441
|
+
__OPENCL_MEMORY_SCOPE_WORK_ITEM: "0",
|
|
7442
|
+
__ORDER_BIG_ENDIAN__: "4321",
|
|
7443
|
+
__ORDER_LITTLE_ENDIAN__: "1234",
|
|
7444
|
+
__ORDER_PDP_ENDIAN__: "3412",
|
|
7445
|
+
__PIC__: "2",
|
|
7446
|
+
__POINTER_WIDTH__: "64",
|
|
7447
|
+
__PRAGMA_REDEFINE_EXTNAME: "1",
|
|
7448
|
+
__PTRDIFF_FMTd__: '"ld"',
|
|
7449
|
+
__PTRDIFF_FMTi__: '"li"',
|
|
7450
|
+
__PTRDIFF_MAX__: "9223372036854775807L",
|
|
7451
|
+
__PTRDIFF_TYPE__: "long int",
|
|
7452
|
+
__PTRDIFF_WIDTH__: "64",
|
|
7453
|
+
__REGISTER_PREFIX__: null,
|
|
7454
|
+
__SCHAR_MAX__: "127",
|
|
7455
|
+
__SHRT_MAX__: "32767",
|
|
7456
|
+
__SHRT_WIDTH__: "16",
|
|
7457
|
+
__SIG_ATOMIC_MAX__: "2147483647",
|
|
7458
|
+
__SIG_ATOMIC_WIDTH__: "32",
|
|
7459
|
+
__SIZEOF_DOUBLE__: "8",
|
|
7460
|
+
__SIZEOF_FLOAT__: "4",
|
|
7461
|
+
__SIZEOF_INT128__: "16",
|
|
7462
|
+
__SIZEOF_INT__: "4",
|
|
7463
|
+
__SIZEOF_LONG_DOUBLE__: "8",
|
|
7464
|
+
__SIZEOF_LONG_LONG__: "8",
|
|
7465
|
+
__SIZEOF_LONG__: "8",
|
|
7466
|
+
__SIZEOF_POINTER__: "8",
|
|
7467
|
+
__SIZEOF_PTRDIFF_T__: "8",
|
|
7468
|
+
__SIZEOF_SHORT__: "2",
|
|
7469
|
+
__SIZEOF_SIZE_T__: "8",
|
|
7470
|
+
__SIZEOF_WCHAR_T__: "4",
|
|
7471
|
+
__SIZEOF_WINT_T__: "4",
|
|
7472
|
+
__SIZE_FMTX__: '"lX"',
|
|
7473
|
+
__SIZE_FMTo__: '"lo"',
|
|
7474
|
+
__SIZE_FMTu__: '"lu"',
|
|
7475
|
+
__SIZE_FMTx__: '"lx"',
|
|
7476
|
+
__SIZE_MAX__: "18446744073709551615UL",
|
|
7477
|
+
__SIZE_TYPE__: "long unsigned int",
|
|
7478
|
+
__SIZE_WIDTH__: "64",
|
|
7479
|
+
__SSP__: "1",
|
|
7480
|
+
__STDCPP_DEFAULT_NEW_ALIGNMENT__: "16UL",
|
|
7481
|
+
__STDCPP_THREADS__: "1",
|
|
7482
|
+
__STDC_EMBED_EMPTY__: "2",
|
|
7483
|
+
__STDC_EMBED_FOUND__: "1",
|
|
7484
|
+
__STDC_EMBED_NOT_FOUND__: "0",
|
|
7485
|
+
__STDC_HOSTED__: "1",
|
|
7486
|
+
__STDC_NO_THREADS__: "1",
|
|
7487
|
+
__STDC_UTF_16__: "1",
|
|
7488
|
+
__STDC_UTF_32__: "1",
|
|
7489
|
+
__STDC__: "1",
|
|
7490
|
+
__UINT16_C: "(c) c",
|
|
7491
|
+
__UINT16_C_SUFFIX__: null,
|
|
7492
|
+
__UINT16_FMTX__: '"hX"',
|
|
7493
|
+
__UINT16_FMTo__: '"ho"',
|
|
7494
|
+
__UINT16_FMTu__: '"hu"',
|
|
7495
|
+
__UINT16_FMTx__: '"hx"',
|
|
7496
|
+
__UINT16_MAX__: "65535",
|
|
7497
|
+
__UINT16_TYPE__: "unsigned short",
|
|
7498
|
+
__UINT32_C: "(c) c##U",
|
|
7499
|
+
__UINT32_C_SUFFIX__: "U",
|
|
7500
|
+
__UINT32_FMTX__: '"X"',
|
|
7501
|
+
__UINT32_FMTo__: '"o"',
|
|
7502
|
+
__UINT32_FMTu__: '"u"',
|
|
7503
|
+
__UINT32_FMTx__: '"x"',
|
|
7504
|
+
__UINT32_MAX__: "4294967295U",
|
|
7505
|
+
__UINT32_TYPE__: "unsigned int",
|
|
7506
|
+
__UINT64_C: "(c) c##ULL",
|
|
7507
|
+
__UINT64_C_SUFFIX__: "ULL",
|
|
7508
|
+
__UINT64_FMTX__: '"llX"',
|
|
7509
|
+
__UINT64_FMTo__: '"llo"',
|
|
7510
|
+
__UINT64_FMTu__: '"llu"',
|
|
7511
|
+
__UINT64_FMTx__: '"llx"',
|
|
7512
|
+
__UINT64_MAX__: "18446744073709551615ULL",
|
|
7513
|
+
__UINT64_TYPE__: "long long unsigned int",
|
|
7514
|
+
__UINT8_C: "(c) c",
|
|
7515
|
+
__UINT8_C_SUFFIX__: null,
|
|
7516
|
+
__UINT8_FMTX__: '"hhX"',
|
|
7517
|
+
__UINT8_FMTo__: '"hho"',
|
|
7518
|
+
__UINT8_FMTu__: '"hhu"',
|
|
7519
|
+
__UINT8_FMTx__: '"hhx"',
|
|
7520
|
+
__UINT8_MAX__: "255",
|
|
7521
|
+
__UINT8_TYPE__: "unsigned char",
|
|
7522
|
+
__UINTMAX_C: "(c) c##UL",
|
|
7523
|
+
__UINTMAX_C_SUFFIX__: "UL",
|
|
7524
|
+
__UINTMAX_FMTX__: '"lX"',
|
|
7525
|
+
__UINTMAX_FMTo__: '"lo"',
|
|
7526
|
+
__UINTMAX_FMTu__: '"lu"',
|
|
7527
|
+
__UINTMAX_FMTx__: '"lx"',
|
|
7528
|
+
__UINTMAX_MAX__: "18446744073709551615UL",
|
|
7529
|
+
__UINTMAX_TYPE__: "long unsigned int",
|
|
7530
|
+
__UINTMAX_WIDTH__: "64",
|
|
7531
|
+
__UINTPTR_FMTX__: '"lX"',
|
|
7532
|
+
__UINTPTR_FMTo__: '"lo"',
|
|
7533
|
+
__UINTPTR_FMTu__: '"lu"',
|
|
7534
|
+
__UINTPTR_FMTx__: '"lx"',
|
|
7535
|
+
__UINTPTR_MAX__: "18446744073709551615UL",
|
|
7536
|
+
__UINTPTR_TYPE__: "long unsigned int",
|
|
7537
|
+
__UINTPTR_WIDTH__: "64",
|
|
7538
|
+
__UINT_FAST16_FMTX__: '"hX"',
|
|
7539
|
+
__UINT_FAST16_FMTo__: '"ho"',
|
|
7540
|
+
__UINT_FAST16_FMTu__: '"hu"',
|
|
7541
|
+
__UINT_FAST16_FMTx__: '"hx"',
|
|
7542
|
+
__UINT_FAST16_MAX__: "65535",
|
|
7543
|
+
__UINT_FAST16_TYPE__: "unsigned short",
|
|
7544
|
+
__UINT_FAST32_FMTX__: '"X"',
|
|
7545
|
+
__UINT_FAST32_FMTo__: '"o"',
|
|
7546
|
+
__UINT_FAST32_FMTu__: '"u"',
|
|
7547
|
+
__UINT_FAST32_FMTx__: '"x"',
|
|
7548
|
+
__UINT_FAST32_MAX__: "4294967295U",
|
|
7549
|
+
__UINT_FAST32_TYPE__: "unsigned int",
|
|
7550
|
+
__UINT_FAST64_FMTX__: '"llX"',
|
|
7551
|
+
__UINT_FAST64_FMTo__: '"llo"',
|
|
7552
|
+
__UINT_FAST64_FMTu__: '"llu"',
|
|
7553
|
+
__UINT_FAST64_FMTx__: '"llx"',
|
|
7554
|
+
__UINT_FAST64_MAX__: "18446744073709551615ULL",
|
|
7555
|
+
__UINT_FAST64_TYPE__: "long long unsigned int",
|
|
7556
|
+
__UINT_FAST8_FMTX__: '"hhX"',
|
|
7557
|
+
__UINT_FAST8_FMTo__: '"hho"',
|
|
7558
|
+
__UINT_FAST8_FMTu__: '"hhu"',
|
|
7559
|
+
__UINT_FAST8_FMTx__: '"hhx"',
|
|
7560
|
+
__UINT_FAST8_MAX__: "255",
|
|
7561
|
+
__UINT_FAST8_TYPE__: "unsigned char",
|
|
7562
|
+
__UINT_LEAST16_FMTX__: '"hX"',
|
|
7563
|
+
__UINT_LEAST16_FMTo__: '"ho"',
|
|
7564
|
+
__UINT_LEAST16_FMTu__: '"hu"',
|
|
7565
|
+
__UINT_LEAST16_FMTx__: '"hx"',
|
|
7566
|
+
__UINT_LEAST16_MAX__: "65535",
|
|
7567
|
+
__UINT_LEAST16_TYPE__: "unsigned short",
|
|
7568
|
+
__UINT_LEAST32_FMTX__: '"X"',
|
|
7569
|
+
__UINT_LEAST32_FMTo__: '"o"',
|
|
7570
|
+
__UINT_LEAST32_FMTu__: '"u"',
|
|
7571
|
+
__UINT_LEAST32_FMTx__: '"x"',
|
|
7572
|
+
__UINT_LEAST32_MAX__: "4294967295U",
|
|
7573
|
+
__UINT_LEAST32_TYPE__: "unsigned int",
|
|
7574
|
+
__UINT_LEAST64_FMTX__: '"llX"',
|
|
7575
|
+
__UINT_LEAST64_FMTo__: '"llo"',
|
|
7576
|
+
__UINT_LEAST64_FMTu__: '"llu"',
|
|
7577
|
+
__UINT_LEAST64_FMTx__: '"llx"',
|
|
7578
|
+
__UINT_LEAST64_MAX__: "18446744073709551615ULL",
|
|
7579
|
+
__UINT_LEAST64_TYPE__: "long long unsigned int",
|
|
7580
|
+
__UINT_LEAST8_FMTX__: '"hhX"',
|
|
7581
|
+
__UINT_LEAST8_FMTo__: '"hho"',
|
|
7582
|
+
__UINT_LEAST8_FMTu__: '"hhu"',
|
|
7583
|
+
__UINT_LEAST8_FMTx__: '"hhx"',
|
|
7584
|
+
__UINT_LEAST8_MAX__: "255",
|
|
7585
|
+
__UINT_LEAST8_TYPE__: "unsigned char",
|
|
7586
|
+
__USER_LABEL_PREFIX__: "_",
|
|
7587
|
+
__VERSION__: '"Clang 21.0.0"',
|
|
7588
|
+
__WCHAR_MAX__: "2147483647",
|
|
7589
|
+
__WCHAR_TYPE__: "int",
|
|
7590
|
+
__WCHAR_WIDTH__: "32",
|
|
7591
|
+
__WINT_MAX__: "2147483647",
|
|
7592
|
+
__WINT_TYPE__: "int",
|
|
7593
|
+
__WINT_WIDTH__: "32",
|
|
7594
|
+
__aarch64__: "1",
|
|
7595
|
+
__arm64: "1",
|
|
7596
|
+
__arm64__: "1",
|
|
7597
|
+
__block: "__attribute__((__blocks__(byref)))",
|
|
7598
|
+
__clang__: "1",
|
|
7599
|
+
__clang_literal_encoding__: '"UTF-8"',
|
|
7600
|
+
__clang_major__: "21",
|
|
7601
|
+
__clang_minor__: "0",
|
|
7602
|
+
__clang_patchlevel__: "0",
|
|
7603
|
+
__clang_version__: '"21.0.0 "',
|
|
7604
|
+
__clang_wide_literal_encoding__: '"UTF-32"',
|
|
7605
|
+
__cplusplus: "201703L",
|
|
7606
|
+
__cpp_aggregate_bases: "201603L",
|
|
7607
|
+
__cpp_aggregate_nsdmi: "201304L",
|
|
7608
|
+
__cpp_alias_templates: "200704L",
|
|
7609
|
+
__cpp_attributes: "200809L",
|
|
7610
|
+
__cpp_binary_literals: "201304L",
|
|
7611
|
+
__cpp_capture_star_this: "201603L",
|
|
7612
|
+
__cpp_constexpr: "201603L",
|
|
7613
|
+
__cpp_constexpr_in_decltype: "201711L",
|
|
7614
|
+
__cpp_decltype: "200707L",
|
|
7615
|
+
__cpp_decltype_auto: "201304L",
|
|
7616
|
+
__cpp_deduction_guides: "201703L",
|
|
7617
|
+
__cpp_delegating_constructors: "200604L",
|
|
7618
|
+
__cpp_deleted_function: "202403L",
|
|
7619
|
+
__cpp_digit_separators: "201309L",
|
|
7620
|
+
__cpp_enumerator_attributes: "201411L",
|
|
7621
|
+
__cpp_exceptions: "199711L",
|
|
7622
|
+
__cpp_fold_expressions: "201603L",
|
|
7623
|
+
__cpp_generic_lambdas: "201304L",
|
|
7624
|
+
__cpp_guaranteed_copy_elision: "201606L",
|
|
7625
|
+
__cpp_hex_float: "201603L",
|
|
7626
|
+
__cpp_if_constexpr: "201606L",
|
|
7627
|
+
__cpp_impl_destroying_delete: "201806L",
|
|
7628
|
+
__cpp_inheriting_constructors: "201511L",
|
|
7629
|
+
__cpp_init_captures: "201304L",
|
|
7630
|
+
__cpp_initializer_lists: "200806L",
|
|
7631
|
+
__cpp_inline_variables: "201606L",
|
|
7632
|
+
__cpp_lambdas: "200907L",
|
|
7633
|
+
__cpp_named_character_escapes: "202207L",
|
|
7634
|
+
__cpp_namespace_attributes: "201411L",
|
|
7635
|
+
__cpp_nested_namespace_definitions: "201411L",
|
|
7636
|
+
__cpp_noexcept_function_type: "201510L",
|
|
7637
|
+
__cpp_nontype_template_args: "201411L",
|
|
7638
|
+
__cpp_nontype_template_parameter_auto: "201606L",
|
|
7639
|
+
__cpp_nsdmi: "200809L",
|
|
7640
|
+
__cpp_pack_indexing: "202311L",
|
|
7641
|
+
__cpp_placeholder_variables: "202306L",
|
|
7642
|
+
__cpp_range_based_for: "201603L",
|
|
7643
|
+
__cpp_raw_strings: "200710L",
|
|
7644
|
+
__cpp_ref_qualifiers: "200710L",
|
|
7645
|
+
__cpp_return_type_deduction: "201304L",
|
|
7646
|
+
__cpp_rtti: "199711L",
|
|
7647
|
+
__cpp_rvalue_references: "200610L",
|
|
7648
|
+
__cpp_static_assert: "202306L",
|
|
7649
|
+
__cpp_static_call_operator: "202207L",
|
|
7650
|
+
__cpp_structured_bindings: "202411L",
|
|
7651
|
+
__cpp_template_auto: "201606L",
|
|
7652
|
+
__cpp_template_template_args: "201611L",
|
|
7653
|
+
__cpp_threadsafe_static_init: "200806L",
|
|
7654
|
+
__cpp_unicode_characters: "200704L",
|
|
7655
|
+
__cpp_unicode_literals: "200710L",
|
|
7656
|
+
__cpp_user_defined_literals: "200809L",
|
|
7657
|
+
__cpp_variable_templates: "201304L",
|
|
7658
|
+
__cpp_variadic_friend: "202403L",
|
|
7659
|
+
__cpp_variadic_templates: "200704L",
|
|
7660
|
+
__cpp_variadic_using: "201611L",
|
|
7661
|
+
__llvm__: "1",
|
|
7662
|
+
__nonnull: "_Nonnull",
|
|
7663
|
+
__null_unspecified: "_Null_unspecified",
|
|
7664
|
+
__nullable: "_Nullable",
|
|
7665
|
+
__pic__: "2",
|
|
7666
|
+
__private_extern__: "extern",
|
|
7667
|
+
__strong: null,
|
|
7668
|
+
__unsafe_unretained: null,
|
|
7669
|
+
__weak: "__attribute__((objc_gc(weak)))"
|
|
7670
|
+
},
|
|
7671
|
+
"objective-c": {
|
|
7672
|
+
IBAction: "void)__attribute__((ibaction)",
|
|
7673
|
+
IBInspectable: null,
|
|
7674
|
+
IBOutlet: "__attribute__((iboutlet))",
|
|
7675
|
+
IBOutletCollection: "(ClassName) __attribute__((iboutletcollection(ClassName)))",
|
|
7676
|
+
IB_DESIGNABLE: null,
|
|
7677
|
+
OBJC_NEW_PROPERTIES: "1",
|
|
7678
|
+
OBJC_ZEROCOST_EXCEPTIONS: "1",
|
|
7679
|
+
TARGET_IPHONE_SIMULATOR: "1",
|
|
7680
|
+
TARGET_OS_DRIVERKIT: "0",
|
|
7681
|
+
TARGET_OS_EMBEDDED: "0",
|
|
7682
|
+
TARGET_OS_FIRMWARE: "0",
|
|
7683
|
+
TARGET_OS_IOS: "1",
|
|
7684
|
+
TARGET_OS_IPHONE: "1",
|
|
7685
|
+
TARGET_OS_LINUX: "0",
|
|
7686
|
+
TARGET_OS_MAC: "1",
|
|
7687
|
+
TARGET_OS_MACCATALYST: "0",
|
|
7688
|
+
TARGET_OS_NANO: "0",
|
|
7689
|
+
TARGET_OS_OSX: "0",
|
|
7690
|
+
TARGET_OS_SIMULATOR: "1",
|
|
7691
|
+
TARGET_OS_TV: "0",
|
|
7692
|
+
TARGET_OS_UEFI: "0",
|
|
7693
|
+
TARGET_OS_UIKITFORMAC: "0",
|
|
7694
|
+
TARGET_OS_UNIX: "0",
|
|
7695
|
+
TARGET_OS_VISION: "0",
|
|
7696
|
+
TARGET_OS_WATCH: "0",
|
|
7697
|
+
TARGET_OS_WIN32: "0",
|
|
7698
|
+
TARGET_OS_WINDOWS: "0",
|
|
7699
|
+
_LP64: "1",
|
|
7700
|
+
__AARCH64EL__: "1",
|
|
7701
|
+
__AARCH64_CMODEL_SMALL__: "1",
|
|
7702
|
+
__AARCH64_SIMD__: "1",
|
|
7703
|
+
__APPLE_CC__: "6000",
|
|
7704
|
+
__APPLE_EMBEDDED_SIMULATOR__: "1",
|
|
7705
|
+
__APPLE__: "1",
|
|
7706
|
+
__ARM64_ARCH_8__: "1",
|
|
7707
|
+
__ARM_64BIT_STATE: "1",
|
|
7708
|
+
__ARM_ACLE: "202420",
|
|
7709
|
+
__ARM_ACLE_VERSION: "(year,quarter,patch) (100 * (year) + 10 * (quarter) + (patch))",
|
|
7710
|
+
__ARM_ALIGN_MAX_STACK_PWR: "4",
|
|
7711
|
+
__ARM_ARCH: "8",
|
|
7712
|
+
__ARM_ARCH_ISA_A64: "1",
|
|
7713
|
+
__ARM_ARCH_PROFILE: "'A'",
|
|
7714
|
+
__ARM_FEATURE_AES: "1",
|
|
7715
|
+
__ARM_FEATURE_ATOMICS: "1",
|
|
7716
|
+
__ARM_FEATURE_CLZ: "1",
|
|
7717
|
+
__ARM_FEATURE_COMPLEX: "1",
|
|
7718
|
+
__ARM_FEATURE_CRC32: "1",
|
|
7719
|
+
__ARM_FEATURE_CRYPTO: "1",
|
|
7720
|
+
__ARM_FEATURE_DIRECTED_ROUNDING: "1",
|
|
7721
|
+
__ARM_FEATURE_DIV: "1",
|
|
7722
|
+
__ARM_FEATURE_DOTPROD: "1",
|
|
7723
|
+
__ARM_FEATURE_FMA: "1",
|
|
7724
|
+
__ARM_FEATURE_FP16_FML: "1",
|
|
7725
|
+
__ARM_FEATURE_FP16_SCALAR_ARITHMETIC: "1",
|
|
7726
|
+
__ARM_FEATURE_FP16_VECTOR_ARITHMETIC: "1",
|
|
7727
|
+
__ARM_FEATURE_IDIV: "1",
|
|
7728
|
+
__ARM_FEATURE_JCVT: "1",
|
|
7729
|
+
__ARM_FEATURE_LDREX: "0xF",
|
|
7730
|
+
__ARM_FEATURE_NUMERIC_MAXMIN: "1",
|
|
7731
|
+
__ARM_FEATURE_PAUTH: "1",
|
|
7732
|
+
__ARM_FEATURE_QRDMX: "1",
|
|
7733
|
+
__ARM_FEATURE_RCPC: "1",
|
|
7734
|
+
__ARM_FEATURE_SHA2: "1",
|
|
7735
|
+
__ARM_FEATURE_SHA3: "1",
|
|
7736
|
+
__ARM_FEATURE_SHA512: "1",
|
|
7737
|
+
__ARM_FEATURE_UNALIGNED: "1",
|
|
7738
|
+
__ARM_FP: "0xE",
|
|
7739
|
+
__ARM_FP16_ARGS: "1",
|
|
7740
|
+
__ARM_FP16_FORMAT_IEEE: "1",
|
|
7741
|
+
__ARM_NEON: "1",
|
|
7742
|
+
__ARM_NEON_FP: "0xE",
|
|
7743
|
+
__ARM_NEON_SVE_BRIDGE: "1",
|
|
7744
|
+
__ARM_NEON__: "1",
|
|
7745
|
+
__ARM_PCS_AAPCS64: "1",
|
|
7746
|
+
__ARM_SIZEOF_MINIMAL_ENUM: "4",
|
|
7747
|
+
__ARM_SIZEOF_WCHAR_T: "4",
|
|
7748
|
+
__ARM_STATE_ZA: "1",
|
|
7749
|
+
__ARM_STATE_ZT0: "1",
|
|
7750
|
+
__ATOMIC_ACQUIRE: "2",
|
|
7751
|
+
__ATOMIC_ACQ_REL: "4",
|
|
7752
|
+
__ATOMIC_CONSUME: "1",
|
|
7753
|
+
__ATOMIC_RELAXED: "0",
|
|
7754
|
+
__ATOMIC_RELEASE: "3",
|
|
7755
|
+
__ATOMIC_SEQ_CST: "5",
|
|
7756
|
+
__BIGGEST_ALIGNMENT__: "8",
|
|
7757
|
+
__BITINT_MAXWIDTH__: "128",
|
|
7758
|
+
__BLOCKS__: "1",
|
|
7759
|
+
__BOOL_WIDTH__: "1",
|
|
7760
|
+
__BYTE_ORDER__: "__ORDER_LITTLE_ENDIAN__",
|
|
7761
|
+
__CHAR16_TYPE__: "unsigned short",
|
|
7762
|
+
__CHAR32_TYPE__: "unsigned int",
|
|
7763
|
+
__CHAR_BIT__: "8",
|
|
7764
|
+
__CLANG_ATOMIC_BOOL_LOCK_FREE: "2",
|
|
7765
|
+
__CLANG_ATOMIC_CHAR16_T_LOCK_FREE: "2",
|
|
7766
|
+
__CLANG_ATOMIC_CHAR32_T_LOCK_FREE: "2",
|
|
7767
|
+
__CLANG_ATOMIC_CHAR_LOCK_FREE: "2",
|
|
7768
|
+
__CLANG_ATOMIC_INT_LOCK_FREE: "2",
|
|
7769
|
+
__CLANG_ATOMIC_LLONG_LOCK_FREE: "2",
|
|
7770
|
+
__CLANG_ATOMIC_LONG_LOCK_FREE: "2",
|
|
7771
|
+
__CLANG_ATOMIC_POINTER_LOCK_FREE: "2",
|
|
7772
|
+
__CLANG_ATOMIC_SHORT_LOCK_FREE: "2",
|
|
7773
|
+
__CLANG_ATOMIC_WCHAR_T_LOCK_FREE: "2",
|
|
7774
|
+
__CONSTANT_CFSTRINGS__: "1",
|
|
7775
|
+
__DBL_DECIMAL_DIG__: "17",
|
|
7776
|
+
__DBL_DENORM_MIN__: "4.9406564584124654e-324",
|
|
7777
|
+
__DBL_DIG__: "15",
|
|
7778
|
+
__DBL_EPSILON__: "2.2204460492503131e-16",
|
|
7779
|
+
__DBL_HAS_DENORM__: "1",
|
|
7780
|
+
__DBL_HAS_INFINITY__: "1",
|
|
7781
|
+
__DBL_HAS_QUIET_NAN__: "1",
|
|
7782
|
+
__DBL_MANT_DIG__: "53",
|
|
7783
|
+
__DBL_MAX_10_EXP__: "308",
|
|
7784
|
+
__DBL_MAX_EXP__: "1024",
|
|
7785
|
+
__DBL_MAX__: "1.7976931348623157e+308",
|
|
7786
|
+
__DBL_MIN_10_EXP__: "(-307)",
|
|
7787
|
+
__DBL_MIN_EXP__: "(-1021)",
|
|
7788
|
+
__DBL_MIN__: "2.2250738585072014e-308",
|
|
7789
|
+
__DBL_NORM_MAX__: "1.7976931348623157e+308",
|
|
7790
|
+
__DECIMAL_DIG__: "__LDBL_DECIMAL_DIG__",
|
|
7791
|
+
__DYNAMIC__: "1",
|
|
7792
|
+
__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__: "70000",
|
|
7793
|
+
__ENVIRONMENT_OS_VERSION_MIN_REQUIRED__: "70000",
|
|
7794
|
+
__EXCEPTIONS: "1",
|
|
7795
|
+
__FINITE_MATH_ONLY__: "0",
|
|
7796
|
+
__FLT16_DECIMAL_DIG__: "5",
|
|
7797
|
+
__FLT16_DENORM_MIN__: "5.9604644775390625e-8F16",
|
|
7798
|
+
__FLT16_DIG__: "3",
|
|
7799
|
+
__FLT16_EPSILON__: "9.765625e-4F16",
|
|
7800
|
+
__FLT16_HAS_DENORM__: "1",
|
|
7801
|
+
__FLT16_HAS_INFINITY__: "1",
|
|
7802
|
+
__FLT16_HAS_QUIET_NAN__: "1",
|
|
7803
|
+
__FLT16_MANT_DIG__: "11",
|
|
7804
|
+
__FLT16_MAX_10_EXP__: "4",
|
|
7805
|
+
__FLT16_MAX_EXP__: "16",
|
|
7806
|
+
__FLT16_MAX__: "6.5504e+4F16",
|
|
7807
|
+
__FLT16_MIN_10_EXP__: "(-4)",
|
|
7808
|
+
__FLT16_MIN_EXP__: "(-13)",
|
|
7809
|
+
__FLT16_MIN__: "6.103515625e-5F16",
|
|
7810
|
+
__FLT16_NORM_MAX__: "6.5504e+4F16",
|
|
7811
|
+
__FLT_DECIMAL_DIG__: "9",
|
|
7812
|
+
__FLT_DENORM_MIN__: "1.40129846e-45F",
|
|
7813
|
+
__FLT_DIG__: "6",
|
|
7814
|
+
__FLT_EPSILON__: "1.19209290e-7F",
|
|
7815
|
+
__FLT_HAS_DENORM__: "1",
|
|
7816
|
+
__FLT_HAS_INFINITY__: "1",
|
|
7817
|
+
__FLT_HAS_QUIET_NAN__: "1",
|
|
7818
|
+
__FLT_MANT_DIG__: "24",
|
|
7819
|
+
__FLT_MAX_10_EXP__: "38",
|
|
7820
|
+
__FLT_MAX_EXP__: "128",
|
|
7821
|
+
__FLT_MAX__: "3.40282347e+38F",
|
|
7822
|
+
__FLT_MIN_10_EXP__: "(-37)",
|
|
7823
|
+
__FLT_MIN_EXP__: "(-125)",
|
|
7824
|
+
__FLT_MIN__: "1.17549435e-38F",
|
|
7825
|
+
__FLT_NORM_MAX__: "3.40282347e+38F",
|
|
7826
|
+
__FLT_RADIX__: "2",
|
|
7827
|
+
__FPCLASS_NEGINF: "0x0004",
|
|
7828
|
+
__FPCLASS_NEGNORMAL: "0x0008",
|
|
7829
|
+
__FPCLASS_NEGSUBNORMAL: "0x0010",
|
|
7830
|
+
__FPCLASS_NEGZERO: "0x0020",
|
|
7831
|
+
__FPCLASS_POSINF: "0x0200",
|
|
7832
|
+
__FPCLASS_POSNORMAL: "0x0100",
|
|
7833
|
+
__FPCLASS_POSSUBNORMAL: "0x0080",
|
|
7834
|
+
__FPCLASS_POSZERO: "0x0040",
|
|
7835
|
+
__FPCLASS_QNAN: "0x0002",
|
|
7836
|
+
__FPCLASS_SNAN: "0x0001",
|
|
7837
|
+
__FP_FAST_FMA: "1",
|
|
7838
|
+
__FP_FAST_FMAF: "1",
|
|
7839
|
+
__FUNCTION_MULTI_VERSIONING_SUPPORT_LEVEL: "202430",
|
|
7840
|
+
__GCC_ASM_FLAG_OUTPUTS__: "1",
|
|
7841
|
+
__GCC_ATOMIC_BOOL_LOCK_FREE: "2",
|
|
7842
|
+
__GCC_ATOMIC_CHAR16_T_LOCK_FREE: "2",
|
|
7843
|
+
__GCC_ATOMIC_CHAR32_T_LOCK_FREE: "2",
|
|
7844
|
+
__GCC_ATOMIC_CHAR_LOCK_FREE: "2",
|
|
7845
|
+
__GCC_ATOMIC_INT_LOCK_FREE: "2",
|
|
7846
|
+
__GCC_ATOMIC_LLONG_LOCK_FREE: "2",
|
|
7847
|
+
__GCC_ATOMIC_LONG_LOCK_FREE: "2",
|
|
7848
|
+
__GCC_ATOMIC_POINTER_LOCK_FREE: "2",
|
|
7849
|
+
__GCC_ATOMIC_SHORT_LOCK_FREE: "2",
|
|
7850
|
+
__GCC_ATOMIC_TEST_AND_SET_TRUEVAL: "1",
|
|
7851
|
+
__GCC_ATOMIC_WCHAR_T_LOCK_FREE: "2",
|
|
7852
|
+
__GCC_CONSTRUCTIVE_SIZE: "64",
|
|
7853
|
+
__GCC_DESTRUCTIVE_SIZE: "256",
|
|
7854
|
+
__GCC_HAVE_DWARF2_CFI_ASM: "1",
|
|
7855
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1: "1",
|
|
7856
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16: "1",
|
|
7857
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2: "1",
|
|
7858
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4: "1",
|
|
7859
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8: "1",
|
|
7860
|
+
__GNUC_MINOR__: "2",
|
|
7861
|
+
__GNUC_PATCHLEVEL__: "1",
|
|
7862
|
+
__GNUC_STDC_INLINE__: "1",
|
|
7863
|
+
__GNUC__: "4",
|
|
7864
|
+
__GXX_ABI_VERSION: "1002",
|
|
7865
|
+
__HAVE_FUNCTION_MULTI_VERSIONING: "1",
|
|
7866
|
+
__INT16_C: "(c) c",
|
|
7867
|
+
__INT16_C_SUFFIX__: null,
|
|
7868
|
+
__INT16_FMTd__: '"hd"',
|
|
7869
|
+
__INT16_FMTi__: '"hi"',
|
|
7870
|
+
__INT16_MAX__: "32767",
|
|
7871
|
+
__INT16_TYPE__: "short",
|
|
7872
|
+
__INT32_C: "(c) c",
|
|
7873
|
+
__INT32_C_SUFFIX__: null,
|
|
7874
|
+
__INT32_FMTd__: '"d"',
|
|
7875
|
+
__INT32_FMTi__: '"i"',
|
|
7876
|
+
__INT32_MAX__: "2147483647",
|
|
7877
|
+
__INT32_TYPE__: "int",
|
|
7878
|
+
__INT64_C: "(c) c##LL",
|
|
7879
|
+
__INT64_C_SUFFIX__: "LL",
|
|
7880
|
+
__INT64_FMTd__: '"lld"',
|
|
7881
|
+
__INT64_FMTi__: '"lli"',
|
|
7882
|
+
__INT64_MAX__: "9223372036854775807LL",
|
|
7883
|
+
__INT64_TYPE__: "long long int",
|
|
7884
|
+
__INT8_C: "(c) c",
|
|
7885
|
+
__INT8_C_SUFFIX__: null,
|
|
7886
|
+
__INT8_FMTd__: '"hhd"',
|
|
7887
|
+
__INT8_FMTi__: '"hhi"',
|
|
7888
|
+
__INT8_MAX__: "127",
|
|
7889
|
+
__INT8_TYPE__: "signed char",
|
|
7890
|
+
__INTMAX_C: "(c) c##L",
|
|
7891
|
+
__INTMAX_C_SUFFIX__: "L",
|
|
7892
|
+
__INTMAX_FMTd__: '"ld"',
|
|
7893
|
+
__INTMAX_FMTi__: '"li"',
|
|
7894
|
+
__INTMAX_MAX__: "9223372036854775807L",
|
|
7895
|
+
__INTMAX_TYPE__: "long int",
|
|
7896
|
+
__INTMAX_WIDTH__: "64",
|
|
7897
|
+
__INTPTR_FMTd__: '"ld"',
|
|
7898
|
+
__INTPTR_FMTi__: '"li"',
|
|
7899
|
+
__INTPTR_MAX__: "9223372036854775807L",
|
|
7900
|
+
__INTPTR_TYPE__: "long int",
|
|
7901
|
+
__INTPTR_WIDTH__: "64",
|
|
7902
|
+
__INT_FAST16_FMTd__: '"hd"',
|
|
7903
|
+
__INT_FAST16_FMTi__: '"hi"',
|
|
7904
|
+
__INT_FAST16_MAX__: "32767",
|
|
7905
|
+
__INT_FAST16_TYPE__: "short",
|
|
7906
|
+
__INT_FAST16_WIDTH__: "16",
|
|
7907
|
+
__INT_FAST32_FMTd__: '"d"',
|
|
7908
|
+
__INT_FAST32_FMTi__: '"i"',
|
|
7909
|
+
__INT_FAST32_MAX__: "2147483647",
|
|
7910
|
+
__INT_FAST32_TYPE__: "int",
|
|
7911
|
+
__INT_FAST32_WIDTH__: "32",
|
|
7912
|
+
__INT_FAST64_FMTd__: '"lld"',
|
|
7913
|
+
__INT_FAST64_FMTi__: '"lli"',
|
|
7914
|
+
__INT_FAST64_MAX__: "9223372036854775807LL",
|
|
7915
|
+
__INT_FAST64_TYPE__: "long long int",
|
|
7916
|
+
__INT_FAST64_WIDTH__: "64",
|
|
7917
|
+
__INT_FAST8_FMTd__: '"hhd"',
|
|
7918
|
+
__INT_FAST8_FMTi__: '"hhi"',
|
|
7919
|
+
__INT_FAST8_MAX__: "127",
|
|
7920
|
+
__INT_FAST8_TYPE__: "signed char",
|
|
7921
|
+
__INT_FAST8_WIDTH__: "8",
|
|
7922
|
+
__INT_LEAST16_FMTd__: '"hd"',
|
|
7923
|
+
__INT_LEAST16_FMTi__: '"hi"',
|
|
7924
|
+
__INT_LEAST16_MAX__: "32767",
|
|
7925
|
+
__INT_LEAST16_TYPE__: "short",
|
|
7926
|
+
__INT_LEAST16_WIDTH__: "16",
|
|
7927
|
+
__INT_LEAST32_FMTd__: '"d"',
|
|
7928
|
+
__INT_LEAST32_FMTi__: '"i"',
|
|
7929
|
+
__INT_LEAST32_MAX__: "2147483647",
|
|
7930
|
+
__INT_LEAST32_TYPE__: "int",
|
|
7931
|
+
__INT_LEAST32_WIDTH__: "32",
|
|
7932
|
+
__INT_LEAST64_FMTd__: '"lld"',
|
|
7933
|
+
__INT_LEAST64_FMTi__: '"lli"',
|
|
7934
|
+
__INT_LEAST64_MAX__: "9223372036854775807LL",
|
|
7935
|
+
__INT_LEAST64_TYPE__: "long long int",
|
|
7936
|
+
__INT_LEAST64_WIDTH__: "64",
|
|
7937
|
+
__INT_LEAST8_FMTd__: '"hhd"',
|
|
7938
|
+
__INT_LEAST8_FMTi__: '"hhi"',
|
|
7939
|
+
__INT_LEAST8_MAX__: "127",
|
|
7940
|
+
__INT_LEAST8_TYPE__: "signed char",
|
|
7941
|
+
__INT_LEAST8_WIDTH__: "8",
|
|
7942
|
+
__INT_MAX__: "2147483647",
|
|
7943
|
+
__INT_WIDTH__: "32",
|
|
7944
|
+
__LDBL_DECIMAL_DIG__: "17",
|
|
7945
|
+
__LDBL_DENORM_MIN__: "4.9406564584124654e-324L",
|
|
7946
|
+
__LDBL_DIG__: "15",
|
|
7947
|
+
__LDBL_EPSILON__: "2.2204460492503131e-16L",
|
|
7948
|
+
__LDBL_HAS_DENORM__: "1",
|
|
7949
|
+
__LDBL_HAS_INFINITY__: "1",
|
|
7950
|
+
__LDBL_HAS_QUIET_NAN__: "1",
|
|
7951
|
+
__LDBL_MANT_DIG__: "53",
|
|
7952
|
+
__LDBL_MAX_10_EXP__: "308",
|
|
7953
|
+
__LDBL_MAX_EXP__: "1024",
|
|
7954
|
+
__LDBL_MAX__: "1.7976931348623157e+308L",
|
|
7955
|
+
__LDBL_MIN_10_EXP__: "(-307)",
|
|
7956
|
+
__LDBL_MIN_EXP__: "(-1021)",
|
|
7957
|
+
__LDBL_MIN__: "2.2250738585072014e-308L",
|
|
7958
|
+
__LDBL_NORM_MAX__: "1.7976931348623157e+308L",
|
|
7959
|
+
__LITTLE_ENDIAN__: "1",
|
|
7960
|
+
__LLONG_WIDTH__: "64",
|
|
7961
|
+
__LONG_LONG_MAX__: "9223372036854775807LL",
|
|
7962
|
+
__LONG_MAX__: "9223372036854775807L",
|
|
7963
|
+
__LONG_WIDTH__: "64",
|
|
7964
|
+
__LP64__: "1",
|
|
7965
|
+
__MACH__: "1",
|
|
7966
|
+
__MEMORY_SCOPE_DEVICE: "1",
|
|
7967
|
+
__MEMORY_SCOPE_SINGLE: "4",
|
|
7968
|
+
__MEMORY_SCOPE_SYSTEM: "0",
|
|
7969
|
+
__MEMORY_SCOPE_WRKGRP: "2",
|
|
7970
|
+
__MEMORY_SCOPE_WVFRNT: "3",
|
|
7971
|
+
__NEXT_RUNTIME__: "1",
|
|
7972
|
+
__NO_INLINE__: "1",
|
|
7973
|
+
__NO_MATH_ERRNO__: "1",
|
|
7974
|
+
__OBJC2__: "1",
|
|
7975
|
+
__OBJC_BOOL_IS_BOOL: "1",
|
|
7976
|
+
__OBJC__: "1",
|
|
7977
|
+
__OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES: "3",
|
|
7978
|
+
__OPENCL_MEMORY_SCOPE_DEVICE: "2",
|
|
7979
|
+
__OPENCL_MEMORY_SCOPE_SUB_GROUP: "4",
|
|
7980
|
+
__OPENCL_MEMORY_SCOPE_WORK_GROUP: "1",
|
|
7981
|
+
__OPENCL_MEMORY_SCOPE_WORK_ITEM: "0",
|
|
7982
|
+
__ORDER_BIG_ENDIAN__: "4321",
|
|
7983
|
+
__ORDER_LITTLE_ENDIAN__: "1234",
|
|
7984
|
+
__ORDER_PDP_ENDIAN__: "3412",
|
|
7985
|
+
__PIC__: "2",
|
|
7986
|
+
__POINTER_WIDTH__: "64",
|
|
7987
|
+
__PRAGMA_REDEFINE_EXTNAME: "1",
|
|
7988
|
+
__PTRDIFF_FMTd__: '"ld"',
|
|
7989
|
+
__PTRDIFF_FMTi__: '"li"',
|
|
7990
|
+
__PTRDIFF_MAX__: "9223372036854775807L",
|
|
7991
|
+
__PTRDIFF_TYPE__: "long int",
|
|
7992
|
+
__PTRDIFF_WIDTH__: "64",
|
|
7993
|
+
__REGISTER_PREFIX__: null,
|
|
7994
|
+
__SCHAR_MAX__: "127",
|
|
7995
|
+
__SHRT_MAX__: "32767",
|
|
7996
|
+
__SHRT_WIDTH__: "16",
|
|
7997
|
+
__SIG_ATOMIC_MAX__: "2147483647",
|
|
7998
|
+
__SIG_ATOMIC_WIDTH__: "32",
|
|
7999
|
+
__SIZEOF_DOUBLE__: "8",
|
|
8000
|
+
__SIZEOF_FLOAT__: "4",
|
|
8001
|
+
__SIZEOF_INT128__: "16",
|
|
8002
|
+
__SIZEOF_INT__: "4",
|
|
8003
|
+
__SIZEOF_LONG_DOUBLE__: "8",
|
|
8004
|
+
__SIZEOF_LONG_LONG__: "8",
|
|
8005
|
+
__SIZEOF_LONG__: "8",
|
|
8006
|
+
__SIZEOF_POINTER__: "8",
|
|
8007
|
+
__SIZEOF_PTRDIFF_T__: "8",
|
|
8008
|
+
__SIZEOF_SHORT__: "2",
|
|
8009
|
+
__SIZEOF_SIZE_T__: "8",
|
|
8010
|
+
__SIZEOF_WCHAR_T__: "4",
|
|
8011
|
+
__SIZEOF_WINT_T__: "4",
|
|
8012
|
+
__SIZE_FMTX__: '"lX"',
|
|
8013
|
+
__SIZE_FMTo__: '"lo"',
|
|
8014
|
+
__SIZE_FMTu__: '"lu"',
|
|
8015
|
+
__SIZE_FMTx__: '"lx"',
|
|
8016
|
+
__SIZE_MAX__: "18446744073709551615UL",
|
|
8017
|
+
__SIZE_TYPE__: "long unsigned int",
|
|
8018
|
+
__SIZE_WIDTH__: "64",
|
|
8019
|
+
__SSP__: "1",
|
|
8020
|
+
__STDC_EMBED_EMPTY__: "2",
|
|
8021
|
+
__STDC_EMBED_FOUND__: "1",
|
|
8022
|
+
__STDC_EMBED_NOT_FOUND__: "0",
|
|
8023
|
+
__STDC_HOSTED__: "1",
|
|
8024
|
+
__STDC_NO_THREADS__: "1",
|
|
8025
|
+
__STDC_UTF_16__: "1",
|
|
8026
|
+
__STDC_UTF_32__: "1",
|
|
8027
|
+
__STDC_VERSION__: "201112L",
|
|
8028
|
+
__STDC__: "1",
|
|
8029
|
+
__UINT16_C: "(c) c",
|
|
8030
|
+
__UINT16_C_SUFFIX__: null,
|
|
8031
|
+
__UINT16_FMTX__: '"hX"',
|
|
8032
|
+
__UINT16_FMTo__: '"ho"',
|
|
8033
|
+
__UINT16_FMTu__: '"hu"',
|
|
8034
|
+
__UINT16_FMTx__: '"hx"',
|
|
8035
|
+
__UINT16_MAX__: "65535",
|
|
8036
|
+
__UINT16_TYPE__: "unsigned short",
|
|
8037
|
+
__UINT32_C: "(c) c##U",
|
|
8038
|
+
__UINT32_C_SUFFIX__: "U",
|
|
8039
|
+
__UINT32_FMTX__: '"X"',
|
|
8040
|
+
__UINT32_FMTo__: '"o"',
|
|
8041
|
+
__UINT32_FMTu__: '"u"',
|
|
8042
|
+
__UINT32_FMTx__: '"x"',
|
|
8043
|
+
__UINT32_MAX__: "4294967295U",
|
|
8044
|
+
__UINT32_TYPE__: "unsigned int",
|
|
8045
|
+
__UINT64_C: "(c) c##ULL",
|
|
8046
|
+
__UINT64_C_SUFFIX__: "ULL",
|
|
8047
|
+
__UINT64_FMTX__: '"llX"',
|
|
8048
|
+
__UINT64_FMTo__: '"llo"',
|
|
8049
|
+
__UINT64_FMTu__: '"llu"',
|
|
8050
|
+
__UINT64_FMTx__: '"llx"',
|
|
8051
|
+
__UINT64_MAX__: "18446744073709551615ULL",
|
|
8052
|
+
__UINT64_TYPE__: "long long unsigned int",
|
|
8053
|
+
__UINT8_C: "(c) c",
|
|
8054
|
+
__UINT8_C_SUFFIX__: null,
|
|
8055
|
+
__UINT8_FMTX__: '"hhX"',
|
|
8056
|
+
__UINT8_FMTo__: '"hho"',
|
|
8057
|
+
__UINT8_FMTu__: '"hhu"',
|
|
8058
|
+
__UINT8_FMTx__: '"hhx"',
|
|
8059
|
+
__UINT8_MAX__: "255",
|
|
8060
|
+
__UINT8_TYPE__: "unsigned char",
|
|
8061
|
+
__UINTMAX_C: "(c) c##UL",
|
|
8062
|
+
__UINTMAX_C_SUFFIX__: "UL",
|
|
8063
|
+
__UINTMAX_FMTX__: '"lX"',
|
|
8064
|
+
__UINTMAX_FMTo__: '"lo"',
|
|
8065
|
+
__UINTMAX_FMTu__: '"lu"',
|
|
8066
|
+
__UINTMAX_FMTx__: '"lx"',
|
|
8067
|
+
__UINTMAX_MAX__: "18446744073709551615UL",
|
|
8068
|
+
__UINTMAX_TYPE__: "long unsigned int",
|
|
8069
|
+
__UINTMAX_WIDTH__: "64",
|
|
8070
|
+
__UINTPTR_FMTX__: '"lX"',
|
|
8071
|
+
__UINTPTR_FMTo__: '"lo"',
|
|
8072
|
+
__UINTPTR_FMTu__: '"lu"',
|
|
8073
|
+
__UINTPTR_FMTx__: '"lx"',
|
|
8074
|
+
__UINTPTR_MAX__: "18446744073709551615UL",
|
|
8075
|
+
__UINTPTR_TYPE__: "long unsigned int",
|
|
8076
|
+
__UINTPTR_WIDTH__: "64",
|
|
8077
|
+
__UINT_FAST16_FMTX__: '"hX"',
|
|
8078
|
+
__UINT_FAST16_FMTo__: '"ho"',
|
|
8079
|
+
__UINT_FAST16_FMTu__: '"hu"',
|
|
8080
|
+
__UINT_FAST16_FMTx__: '"hx"',
|
|
8081
|
+
__UINT_FAST16_MAX__: "65535",
|
|
8082
|
+
__UINT_FAST16_TYPE__: "unsigned short",
|
|
8083
|
+
__UINT_FAST32_FMTX__: '"X"',
|
|
8084
|
+
__UINT_FAST32_FMTo__: '"o"',
|
|
8085
|
+
__UINT_FAST32_FMTu__: '"u"',
|
|
8086
|
+
__UINT_FAST32_FMTx__: '"x"',
|
|
8087
|
+
__UINT_FAST32_MAX__: "4294967295U",
|
|
8088
|
+
__UINT_FAST32_TYPE__: "unsigned int",
|
|
8089
|
+
__UINT_FAST64_FMTX__: '"llX"',
|
|
8090
|
+
__UINT_FAST64_FMTo__: '"llo"',
|
|
8091
|
+
__UINT_FAST64_FMTu__: '"llu"',
|
|
8092
|
+
__UINT_FAST64_FMTx__: '"llx"',
|
|
8093
|
+
__UINT_FAST64_MAX__: "18446744073709551615ULL",
|
|
8094
|
+
__UINT_FAST64_TYPE__: "long long unsigned int",
|
|
8095
|
+
__UINT_FAST8_FMTX__: '"hhX"',
|
|
8096
|
+
__UINT_FAST8_FMTo__: '"hho"',
|
|
8097
|
+
__UINT_FAST8_FMTu__: '"hhu"',
|
|
8098
|
+
__UINT_FAST8_FMTx__: '"hhx"',
|
|
8099
|
+
__UINT_FAST8_MAX__: "255",
|
|
8100
|
+
__UINT_FAST8_TYPE__: "unsigned char",
|
|
8101
|
+
__UINT_LEAST16_FMTX__: '"hX"',
|
|
8102
|
+
__UINT_LEAST16_FMTo__: '"ho"',
|
|
8103
|
+
__UINT_LEAST16_FMTu__: '"hu"',
|
|
8104
|
+
__UINT_LEAST16_FMTx__: '"hx"',
|
|
8105
|
+
__UINT_LEAST16_MAX__: "65535",
|
|
8106
|
+
__UINT_LEAST16_TYPE__: "unsigned short",
|
|
8107
|
+
__UINT_LEAST32_FMTX__: '"X"',
|
|
8108
|
+
__UINT_LEAST32_FMTo__: '"o"',
|
|
8109
|
+
__UINT_LEAST32_FMTu__: '"u"',
|
|
8110
|
+
__UINT_LEAST32_FMTx__: '"x"',
|
|
8111
|
+
__UINT_LEAST32_MAX__: "4294967295U",
|
|
8112
|
+
__UINT_LEAST32_TYPE__: "unsigned int",
|
|
8113
|
+
__UINT_LEAST64_FMTX__: '"llX"',
|
|
8114
|
+
__UINT_LEAST64_FMTo__: '"llo"',
|
|
8115
|
+
__UINT_LEAST64_FMTu__: '"llu"',
|
|
8116
|
+
__UINT_LEAST64_FMTx__: '"llx"',
|
|
8117
|
+
__UINT_LEAST64_MAX__: "18446744073709551615ULL",
|
|
8118
|
+
__UINT_LEAST64_TYPE__: "long long unsigned int",
|
|
8119
|
+
__UINT_LEAST8_FMTX__: '"hhX"',
|
|
8120
|
+
__UINT_LEAST8_FMTo__: '"hho"',
|
|
8121
|
+
__UINT_LEAST8_FMTu__: '"hhu"',
|
|
8122
|
+
__UINT_LEAST8_FMTx__: '"hhx"',
|
|
8123
|
+
__UINT_LEAST8_MAX__: "255",
|
|
8124
|
+
__UINT_LEAST8_TYPE__: "unsigned char",
|
|
8125
|
+
__USER_LABEL_PREFIX__: "_",
|
|
8126
|
+
__VERSION__: '"Clang 21.0.0"',
|
|
8127
|
+
__WCHAR_MAX__: "2147483647",
|
|
8128
|
+
__WCHAR_TYPE__: "int",
|
|
8129
|
+
__WCHAR_WIDTH__: "32",
|
|
8130
|
+
__WINT_MAX__: "2147483647",
|
|
8131
|
+
__WINT_TYPE__: "int",
|
|
8132
|
+
__WINT_WIDTH__: "32",
|
|
8133
|
+
__aarch64__: "1",
|
|
8134
|
+
__arm64: "1",
|
|
8135
|
+
__arm64__: "1",
|
|
8136
|
+
__autoreleasing: "__attribute__((objc_ownership(autoreleasing)))",
|
|
8137
|
+
__block: "__attribute__((__blocks__(byref)))",
|
|
8138
|
+
__clang__: "1",
|
|
8139
|
+
__clang_literal_encoding__: '"UTF-8"',
|
|
8140
|
+
__clang_major__: "21",
|
|
8141
|
+
__clang_minor__: "0",
|
|
8142
|
+
__clang_patchlevel__: "0",
|
|
8143
|
+
__clang_version__: '"21.0.0 "',
|
|
8144
|
+
__clang_wide_literal_encoding__: '"UTF-32"',
|
|
8145
|
+
__llvm__: "1",
|
|
8146
|
+
__nonnull: "_Nonnull",
|
|
8147
|
+
__null_unspecified: "_Null_unspecified",
|
|
8148
|
+
__nullable: "_Nullable",
|
|
8149
|
+
__pic__: "2",
|
|
8150
|
+
__strong: "__attribute__((objc_ownership(strong)))",
|
|
8151
|
+
__unsafe_unretained: "__attribute__((objc_ownership(none)))",
|
|
8152
|
+
__weak: "__attribute__((objc_ownership(weak)))"
|
|
8153
|
+
},
|
|
8154
|
+
"objective-c++": {
|
|
8155
|
+
IBAction: "void)__attribute__((ibaction)",
|
|
8156
|
+
IBInspectable: null,
|
|
8157
|
+
IBOutlet: "__attribute__((iboutlet))",
|
|
8158
|
+
IBOutletCollection: "(ClassName) __attribute__((iboutletcollection(ClassName)))",
|
|
8159
|
+
IB_DESIGNABLE: null,
|
|
8160
|
+
OBJC_NEW_PROPERTIES: "1",
|
|
8161
|
+
OBJC_ZEROCOST_EXCEPTIONS: "1",
|
|
8162
|
+
TARGET_IPHONE_SIMULATOR: "1",
|
|
8163
|
+
TARGET_OS_DRIVERKIT: "0",
|
|
8164
|
+
TARGET_OS_EMBEDDED: "0",
|
|
8165
|
+
TARGET_OS_FIRMWARE: "0",
|
|
8166
|
+
TARGET_OS_IOS: "1",
|
|
8167
|
+
TARGET_OS_IPHONE: "1",
|
|
8168
|
+
TARGET_OS_LINUX: "0",
|
|
8169
|
+
TARGET_OS_MAC: "1",
|
|
8170
|
+
TARGET_OS_MACCATALYST: "0",
|
|
8171
|
+
TARGET_OS_NANO: "0",
|
|
8172
|
+
TARGET_OS_OSX: "0",
|
|
8173
|
+
TARGET_OS_SIMULATOR: "1",
|
|
8174
|
+
TARGET_OS_TV: "0",
|
|
8175
|
+
TARGET_OS_UEFI: "0",
|
|
8176
|
+
TARGET_OS_UIKITFORMAC: "0",
|
|
8177
|
+
TARGET_OS_UNIX: "0",
|
|
8178
|
+
TARGET_OS_VISION: "0",
|
|
8179
|
+
TARGET_OS_WATCH: "0",
|
|
8180
|
+
TARGET_OS_WIN32: "0",
|
|
8181
|
+
TARGET_OS_WINDOWS: "0",
|
|
8182
|
+
_LP64: "1",
|
|
8183
|
+
__AARCH64EL__: "1",
|
|
8184
|
+
__AARCH64_CMODEL_SMALL__: "1",
|
|
8185
|
+
__AARCH64_SIMD__: "1",
|
|
8186
|
+
__APPLE_CC__: "6000",
|
|
8187
|
+
__APPLE_EMBEDDED_SIMULATOR__: "1",
|
|
8188
|
+
__APPLE__: "1",
|
|
8189
|
+
__ARM64_ARCH_8__: "1",
|
|
8190
|
+
__ARM_64BIT_STATE: "1",
|
|
8191
|
+
__ARM_ACLE: "202420",
|
|
8192
|
+
__ARM_ACLE_VERSION: "(year,quarter,patch) (100 * (year) + 10 * (quarter) + (patch))",
|
|
8193
|
+
__ARM_ALIGN_MAX_STACK_PWR: "4",
|
|
8194
|
+
__ARM_ARCH: "8",
|
|
8195
|
+
__ARM_ARCH_ISA_A64: "1",
|
|
8196
|
+
__ARM_ARCH_PROFILE: "'A'",
|
|
8197
|
+
__ARM_FEATURE_AES: "1",
|
|
8198
|
+
__ARM_FEATURE_ATOMICS: "1",
|
|
8199
|
+
__ARM_FEATURE_CLZ: "1",
|
|
8200
|
+
__ARM_FEATURE_COMPLEX: "1",
|
|
8201
|
+
__ARM_FEATURE_CRC32: "1",
|
|
8202
|
+
__ARM_FEATURE_CRYPTO: "1",
|
|
8203
|
+
__ARM_FEATURE_DIRECTED_ROUNDING: "1",
|
|
8204
|
+
__ARM_FEATURE_DIV: "1",
|
|
8205
|
+
__ARM_FEATURE_DOTPROD: "1",
|
|
8206
|
+
__ARM_FEATURE_FMA: "1",
|
|
8207
|
+
__ARM_FEATURE_FP16_FML: "1",
|
|
8208
|
+
__ARM_FEATURE_FP16_SCALAR_ARITHMETIC: "1",
|
|
8209
|
+
__ARM_FEATURE_FP16_VECTOR_ARITHMETIC: "1",
|
|
8210
|
+
__ARM_FEATURE_IDIV: "1",
|
|
8211
|
+
__ARM_FEATURE_JCVT: "1",
|
|
8212
|
+
__ARM_FEATURE_LDREX: "0xF",
|
|
8213
|
+
__ARM_FEATURE_NUMERIC_MAXMIN: "1",
|
|
8214
|
+
__ARM_FEATURE_PAUTH: "1",
|
|
8215
|
+
__ARM_FEATURE_QRDMX: "1",
|
|
8216
|
+
__ARM_FEATURE_RCPC: "1",
|
|
8217
|
+
__ARM_FEATURE_SHA2: "1",
|
|
8218
|
+
__ARM_FEATURE_SHA3: "1",
|
|
8219
|
+
__ARM_FEATURE_SHA512: "1",
|
|
8220
|
+
__ARM_FEATURE_UNALIGNED: "1",
|
|
8221
|
+
__ARM_FP: "0xE",
|
|
8222
|
+
__ARM_FP16_ARGS: "1",
|
|
8223
|
+
__ARM_FP16_FORMAT_IEEE: "1",
|
|
8224
|
+
__ARM_NEON: "1",
|
|
8225
|
+
__ARM_NEON_FP: "0xE",
|
|
8226
|
+
__ARM_NEON_SVE_BRIDGE: "1",
|
|
8227
|
+
__ARM_NEON__: "1",
|
|
8228
|
+
__ARM_PCS_AAPCS64: "1",
|
|
8229
|
+
__ARM_SIZEOF_MINIMAL_ENUM: "4",
|
|
8230
|
+
__ARM_SIZEOF_WCHAR_T: "4",
|
|
8231
|
+
__ARM_STATE_ZA: "1",
|
|
8232
|
+
__ARM_STATE_ZT0: "1",
|
|
8233
|
+
__ATOMIC_ACQUIRE: "2",
|
|
8234
|
+
__ATOMIC_ACQ_REL: "4",
|
|
8235
|
+
__ATOMIC_CONSUME: "1",
|
|
8236
|
+
__ATOMIC_RELAXED: "0",
|
|
8237
|
+
__ATOMIC_RELEASE: "3",
|
|
8238
|
+
__ATOMIC_SEQ_CST: "5",
|
|
8239
|
+
__BIGGEST_ALIGNMENT__: "8",
|
|
8240
|
+
__BITINT_MAXWIDTH__: "128",
|
|
8241
|
+
__BLOCKS__: "1",
|
|
8242
|
+
__BOOL_WIDTH__: "1",
|
|
8243
|
+
__BYTE_ORDER__: "__ORDER_LITTLE_ENDIAN__",
|
|
8244
|
+
__CHAR16_TYPE__: "unsigned short",
|
|
8245
|
+
__CHAR32_TYPE__: "unsigned int",
|
|
8246
|
+
__CHAR_BIT__: "8",
|
|
8247
|
+
__CLANG_ATOMIC_BOOL_LOCK_FREE: "2",
|
|
8248
|
+
__CLANG_ATOMIC_CHAR16_T_LOCK_FREE: "2",
|
|
8249
|
+
__CLANG_ATOMIC_CHAR32_T_LOCK_FREE: "2",
|
|
8250
|
+
__CLANG_ATOMIC_CHAR_LOCK_FREE: "2",
|
|
8251
|
+
__CLANG_ATOMIC_INT_LOCK_FREE: "2",
|
|
8252
|
+
__CLANG_ATOMIC_LLONG_LOCK_FREE: "2",
|
|
8253
|
+
__CLANG_ATOMIC_LONG_LOCK_FREE: "2",
|
|
8254
|
+
__CLANG_ATOMIC_POINTER_LOCK_FREE: "2",
|
|
8255
|
+
__CLANG_ATOMIC_SHORT_LOCK_FREE: "2",
|
|
8256
|
+
__CLANG_ATOMIC_WCHAR_T_LOCK_FREE: "2",
|
|
8257
|
+
__CONSTANT_CFSTRINGS__: "1",
|
|
8258
|
+
__DBL_DECIMAL_DIG__: "17",
|
|
8259
|
+
__DBL_DENORM_MIN__: "4.9406564584124654e-324",
|
|
8260
|
+
__DBL_DIG__: "15",
|
|
8261
|
+
__DBL_EPSILON__: "2.2204460492503131e-16",
|
|
8262
|
+
__DBL_HAS_DENORM__: "1",
|
|
8263
|
+
__DBL_HAS_INFINITY__: "1",
|
|
8264
|
+
__DBL_HAS_QUIET_NAN__: "1",
|
|
8265
|
+
__DBL_MANT_DIG__: "53",
|
|
8266
|
+
__DBL_MAX_10_EXP__: "308",
|
|
8267
|
+
__DBL_MAX_EXP__: "1024",
|
|
8268
|
+
__DBL_MAX__: "1.7976931348623157e+308",
|
|
8269
|
+
__DBL_MIN_10_EXP__: "(-307)",
|
|
8270
|
+
__DBL_MIN_EXP__: "(-1021)",
|
|
8271
|
+
__DBL_MIN__: "2.2250738585072014e-308",
|
|
8272
|
+
__DBL_NORM_MAX__: "1.7976931348623157e+308",
|
|
8273
|
+
__DECIMAL_DIG__: "__LDBL_DECIMAL_DIG__",
|
|
8274
|
+
__DEPRECATED: "1",
|
|
8275
|
+
__DYNAMIC__: "1",
|
|
8276
|
+
__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__: "70000",
|
|
8277
|
+
__ENVIRONMENT_OS_VERSION_MIN_REQUIRED__: "70000",
|
|
8278
|
+
__EXCEPTIONS: "1",
|
|
8279
|
+
__FINITE_MATH_ONLY__: "0",
|
|
8280
|
+
__FLT16_DECIMAL_DIG__: "5",
|
|
8281
|
+
__FLT16_DENORM_MIN__: "5.9604644775390625e-8F16",
|
|
8282
|
+
__FLT16_DIG__: "3",
|
|
8283
|
+
__FLT16_EPSILON__: "9.765625e-4F16",
|
|
8284
|
+
__FLT16_HAS_DENORM__: "1",
|
|
8285
|
+
__FLT16_HAS_INFINITY__: "1",
|
|
8286
|
+
__FLT16_HAS_QUIET_NAN__: "1",
|
|
8287
|
+
__FLT16_MANT_DIG__: "11",
|
|
8288
|
+
__FLT16_MAX_10_EXP__: "4",
|
|
8289
|
+
__FLT16_MAX_EXP__: "16",
|
|
8290
|
+
__FLT16_MAX__: "6.5504e+4F16",
|
|
8291
|
+
__FLT16_MIN_10_EXP__: "(-4)",
|
|
8292
|
+
__FLT16_MIN_EXP__: "(-13)",
|
|
8293
|
+
__FLT16_MIN__: "6.103515625e-5F16",
|
|
8294
|
+
__FLT16_NORM_MAX__: "6.5504e+4F16",
|
|
8295
|
+
__FLT_DECIMAL_DIG__: "9",
|
|
8296
|
+
__FLT_DENORM_MIN__: "1.40129846e-45F",
|
|
8297
|
+
__FLT_DIG__: "6",
|
|
8298
|
+
__FLT_EPSILON__: "1.19209290e-7F",
|
|
8299
|
+
__FLT_HAS_DENORM__: "1",
|
|
8300
|
+
__FLT_HAS_INFINITY__: "1",
|
|
8301
|
+
__FLT_HAS_QUIET_NAN__: "1",
|
|
8302
|
+
__FLT_MANT_DIG__: "24",
|
|
8303
|
+
__FLT_MAX_10_EXP__: "38",
|
|
8304
|
+
__FLT_MAX_EXP__: "128",
|
|
8305
|
+
__FLT_MAX__: "3.40282347e+38F",
|
|
8306
|
+
__FLT_MIN_10_EXP__: "(-37)",
|
|
8307
|
+
__FLT_MIN_EXP__: "(-125)",
|
|
8308
|
+
__FLT_MIN__: "1.17549435e-38F",
|
|
8309
|
+
__FLT_NORM_MAX__: "3.40282347e+38F",
|
|
8310
|
+
__FLT_RADIX__: "2",
|
|
8311
|
+
__FPCLASS_NEGINF: "0x0004",
|
|
8312
|
+
__FPCLASS_NEGNORMAL: "0x0008",
|
|
8313
|
+
__FPCLASS_NEGSUBNORMAL: "0x0010",
|
|
8314
|
+
__FPCLASS_NEGZERO: "0x0020",
|
|
8315
|
+
__FPCLASS_POSINF: "0x0200",
|
|
8316
|
+
__FPCLASS_POSNORMAL: "0x0100",
|
|
8317
|
+
__FPCLASS_POSSUBNORMAL: "0x0080",
|
|
8318
|
+
__FPCLASS_POSZERO: "0x0040",
|
|
8319
|
+
__FPCLASS_QNAN: "0x0002",
|
|
8320
|
+
__FPCLASS_SNAN: "0x0001",
|
|
8321
|
+
__FP_FAST_FMA: "1",
|
|
8322
|
+
__FP_FAST_FMAF: "1",
|
|
8323
|
+
__FUNCTION_MULTI_VERSIONING_SUPPORT_LEVEL: "202430",
|
|
8324
|
+
__GCC_ASM_FLAG_OUTPUTS__: "1",
|
|
8325
|
+
__GCC_ATOMIC_BOOL_LOCK_FREE: "2",
|
|
8326
|
+
__GCC_ATOMIC_CHAR16_T_LOCK_FREE: "2",
|
|
8327
|
+
__GCC_ATOMIC_CHAR32_T_LOCK_FREE: "2",
|
|
8328
|
+
__GCC_ATOMIC_CHAR_LOCK_FREE: "2",
|
|
8329
|
+
__GCC_ATOMIC_INT_LOCK_FREE: "2",
|
|
8330
|
+
__GCC_ATOMIC_LLONG_LOCK_FREE: "2",
|
|
8331
|
+
__GCC_ATOMIC_LONG_LOCK_FREE: "2",
|
|
8332
|
+
__GCC_ATOMIC_POINTER_LOCK_FREE: "2",
|
|
8333
|
+
__GCC_ATOMIC_SHORT_LOCK_FREE: "2",
|
|
8334
|
+
__GCC_ATOMIC_TEST_AND_SET_TRUEVAL: "1",
|
|
8335
|
+
__GCC_ATOMIC_WCHAR_T_LOCK_FREE: "2",
|
|
8336
|
+
__GCC_CONSTRUCTIVE_SIZE: "64",
|
|
8337
|
+
__GCC_DESTRUCTIVE_SIZE: "256",
|
|
8338
|
+
__GCC_HAVE_DWARF2_CFI_ASM: "1",
|
|
8339
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1: "1",
|
|
8340
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16: "1",
|
|
8341
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2: "1",
|
|
8342
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4: "1",
|
|
8343
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8: "1",
|
|
8344
|
+
__GLIBCXX_BITSIZE_INT_N_0: "128",
|
|
8345
|
+
__GLIBCXX_TYPE_INT_N_0: "__int128",
|
|
8346
|
+
__GNUC_GNU_INLINE__: "1",
|
|
8347
|
+
__GNUC_MINOR__: "2",
|
|
8348
|
+
__GNUC_PATCHLEVEL__: "1",
|
|
8349
|
+
__GNUC__: "4",
|
|
8350
|
+
__GNUG__: "4",
|
|
8351
|
+
__GXX_ABI_VERSION: "1002",
|
|
8352
|
+
__GXX_EXPERIMENTAL_CXX0X__: "1",
|
|
8353
|
+
__GXX_RTTI: "1",
|
|
8354
|
+
__GXX_WEAK__: "1",
|
|
8355
|
+
__HAVE_FUNCTION_MULTI_VERSIONING: "1",
|
|
8356
|
+
__INT16_C: "(c) c",
|
|
8357
|
+
__INT16_C_SUFFIX__: null,
|
|
8358
|
+
__INT16_FMTd__: '"hd"',
|
|
8359
|
+
__INT16_FMTi__: '"hi"',
|
|
8360
|
+
__INT16_MAX__: "32767",
|
|
8361
|
+
__INT16_TYPE__: "short",
|
|
8362
|
+
__INT32_C: "(c) c",
|
|
8363
|
+
__INT32_C_SUFFIX__: null,
|
|
8364
|
+
__INT32_FMTd__: '"d"',
|
|
8365
|
+
__INT32_FMTi__: '"i"',
|
|
8366
|
+
__INT32_MAX__: "2147483647",
|
|
8367
|
+
__INT32_TYPE__: "int",
|
|
8368
|
+
__INT64_C: "(c) c##LL",
|
|
8369
|
+
__INT64_C_SUFFIX__: "LL",
|
|
8370
|
+
__INT64_FMTd__: '"lld"',
|
|
8371
|
+
__INT64_FMTi__: '"lli"',
|
|
8372
|
+
__INT64_MAX__: "9223372036854775807LL",
|
|
8373
|
+
__INT64_TYPE__: "long long int",
|
|
8374
|
+
__INT8_C: "(c) c",
|
|
8375
|
+
__INT8_C_SUFFIX__: null,
|
|
8376
|
+
__INT8_FMTd__: '"hhd"',
|
|
8377
|
+
__INT8_FMTi__: '"hhi"',
|
|
8378
|
+
__INT8_MAX__: "127",
|
|
8379
|
+
__INT8_TYPE__: "signed char",
|
|
8380
|
+
__INTMAX_C: "(c) c##L",
|
|
8381
|
+
__INTMAX_C_SUFFIX__: "L",
|
|
8382
|
+
__INTMAX_FMTd__: '"ld"',
|
|
8383
|
+
__INTMAX_FMTi__: '"li"',
|
|
8384
|
+
__INTMAX_MAX__: "9223372036854775807L",
|
|
8385
|
+
__INTMAX_TYPE__: "long int",
|
|
8386
|
+
__INTMAX_WIDTH__: "64",
|
|
8387
|
+
__INTPTR_FMTd__: '"ld"',
|
|
8388
|
+
__INTPTR_FMTi__: '"li"',
|
|
8389
|
+
__INTPTR_MAX__: "9223372036854775807L",
|
|
8390
|
+
__INTPTR_TYPE__: "long int",
|
|
8391
|
+
__INTPTR_WIDTH__: "64",
|
|
8392
|
+
__INT_FAST16_FMTd__: '"hd"',
|
|
8393
|
+
__INT_FAST16_FMTi__: '"hi"',
|
|
8394
|
+
__INT_FAST16_MAX__: "32767",
|
|
8395
|
+
__INT_FAST16_TYPE__: "short",
|
|
8396
|
+
__INT_FAST16_WIDTH__: "16",
|
|
8397
|
+
__INT_FAST32_FMTd__: '"d"',
|
|
8398
|
+
__INT_FAST32_FMTi__: '"i"',
|
|
8399
|
+
__INT_FAST32_MAX__: "2147483647",
|
|
8400
|
+
__INT_FAST32_TYPE__: "int",
|
|
8401
|
+
__INT_FAST32_WIDTH__: "32",
|
|
8402
|
+
__INT_FAST64_FMTd__: '"lld"',
|
|
8403
|
+
__INT_FAST64_FMTi__: '"lli"',
|
|
8404
|
+
__INT_FAST64_MAX__: "9223372036854775807LL",
|
|
8405
|
+
__INT_FAST64_TYPE__: "long long int",
|
|
8406
|
+
__INT_FAST64_WIDTH__: "64",
|
|
8407
|
+
__INT_FAST8_FMTd__: '"hhd"',
|
|
8408
|
+
__INT_FAST8_FMTi__: '"hhi"',
|
|
8409
|
+
__INT_FAST8_MAX__: "127",
|
|
8410
|
+
__INT_FAST8_TYPE__: "signed char",
|
|
8411
|
+
__INT_FAST8_WIDTH__: "8",
|
|
8412
|
+
__INT_LEAST16_FMTd__: '"hd"',
|
|
8413
|
+
__INT_LEAST16_FMTi__: '"hi"',
|
|
8414
|
+
__INT_LEAST16_MAX__: "32767",
|
|
8415
|
+
__INT_LEAST16_TYPE__: "short",
|
|
8416
|
+
__INT_LEAST16_WIDTH__: "16",
|
|
8417
|
+
__INT_LEAST32_FMTd__: '"d"',
|
|
8418
|
+
__INT_LEAST32_FMTi__: '"i"',
|
|
8419
|
+
__INT_LEAST32_MAX__: "2147483647",
|
|
8420
|
+
__INT_LEAST32_TYPE__: "int",
|
|
8421
|
+
__INT_LEAST32_WIDTH__: "32",
|
|
8422
|
+
__INT_LEAST64_FMTd__: '"lld"',
|
|
8423
|
+
__INT_LEAST64_FMTi__: '"lli"',
|
|
8424
|
+
__INT_LEAST64_MAX__: "9223372036854775807LL",
|
|
8425
|
+
__INT_LEAST64_TYPE__: "long long int",
|
|
8426
|
+
__INT_LEAST64_WIDTH__: "64",
|
|
8427
|
+
__INT_LEAST8_FMTd__: '"hhd"',
|
|
8428
|
+
__INT_LEAST8_FMTi__: '"hhi"',
|
|
8429
|
+
__INT_LEAST8_MAX__: "127",
|
|
8430
|
+
__INT_LEAST8_TYPE__: "signed char",
|
|
8431
|
+
__INT_LEAST8_WIDTH__: "8",
|
|
8432
|
+
__INT_MAX__: "2147483647",
|
|
8433
|
+
__INT_WIDTH__: "32",
|
|
8434
|
+
__LDBL_DECIMAL_DIG__: "17",
|
|
8435
|
+
__LDBL_DENORM_MIN__: "4.9406564584124654e-324L",
|
|
8436
|
+
__LDBL_DIG__: "15",
|
|
8437
|
+
__LDBL_EPSILON__: "2.2204460492503131e-16L",
|
|
8438
|
+
__LDBL_HAS_DENORM__: "1",
|
|
8439
|
+
__LDBL_HAS_INFINITY__: "1",
|
|
8440
|
+
__LDBL_HAS_QUIET_NAN__: "1",
|
|
8441
|
+
__LDBL_MANT_DIG__: "53",
|
|
8442
|
+
__LDBL_MAX_10_EXP__: "308",
|
|
8443
|
+
__LDBL_MAX_EXP__: "1024",
|
|
8444
|
+
__LDBL_MAX__: "1.7976931348623157e+308L",
|
|
8445
|
+
__LDBL_MIN_10_EXP__: "(-307)",
|
|
8446
|
+
__LDBL_MIN_EXP__: "(-1021)",
|
|
8447
|
+
__LDBL_MIN__: "2.2250738585072014e-308L",
|
|
8448
|
+
__LDBL_NORM_MAX__: "1.7976931348623157e+308L",
|
|
8449
|
+
__LITTLE_ENDIAN__: "1",
|
|
8450
|
+
__LLONG_WIDTH__: "64",
|
|
8451
|
+
__LONG_LONG_MAX__: "9223372036854775807LL",
|
|
8452
|
+
__LONG_MAX__: "9223372036854775807L",
|
|
8453
|
+
__LONG_WIDTH__: "64",
|
|
8454
|
+
__LP64__: "1",
|
|
8455
|
+
__MACH__: "1",
|
|
8456
|
+
__MEMORY_SCOPE_DEVICE: "1",
|
|
8457
|
+
__MEMORY_SCOPE_SINGLE: "4",
|
|
8458
|
+
__MEMORY_SCOPE_SYSTEM: "0",
|
|
8459
|
+
__MEMORY_SCOPE_WRKGRP: "2",
|
|
8460
|
+
__MEMORY_SCOPE_WVFRNT: "3",
|
|
8461
|
+
__NEXT_RUNTIME__: "1",
|
|
8462
|
+
__NO_INLINE__: "1",
|
|
8463
|
+
__NO_MATH_ERRNO__: "1",
|
|
8464
|
+
__OBJC2__: "1",
|
|
8465
|
+
__OBJC_BOOL_IS_BOOL: "1",
|
|
8466
|
+
__OBJC__: "1",
|
|
8467
|
+
__OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES: "3",
|
|
8468
|
+
__OPENCL_MEMORY_SCOPE_DEVICE: "2",
|
|
8469
|
+
__OPENCL_MEMORY_SCOPE_SUB_GROUP: "4",
|
|
8470
|
+
__OPENCL_MEMORY_SCOPE_WORK_GROUP: "1",
|
|
8471
|
+
__OPENCL_MEMORY_SCOPE_WORK_ITEM: "0",
|
|
8472
|
+
__ORDER_BIG_ENDIAN__: "4321",
|
|
8473
|
+
__ORDER_LITTLE_ENDIAN__: "1234",
|
|
8474
|
+
__ORDER_PDP_ENDIAN__: "3412",
|
|
8475
|
+
__PIC__: "2",
|
|
8476
|
+
__POINTER_WIDTH__: "64",
|
|
8477
|
+
__PRAGMA_REDEFINE_EXTNAME: "1",
|
|
8478
|
+
__PTRDIFF_FMTd__: '"ld"',
|
|
8479
|
+
__PTRDIFF_FMTi__: '"li"',
|
|
8480
|
+
__PTRDIFF_MAX__: "9223372036854775807L",
|
|
8481
|
+
__PTRDIFF_TYPE__: "long int",
|
|
8482
|
+
__PTRDIFF_WIDTH__: "64",
|
|
8483
|
+
__REGISTER_PREFIX__: null,
|
|
8484
|
+
__SCHAR_MAX__: "127",
|
|
8485
|
+
__SHRT_MAX__: "32767",
|
|
8486
|
+
__SHRT_WIDTH__: "16",
|
|
8487
|
+
__SIG_ATOMIC_MAX__: "2147483647",
|
|
8488
|
+
__SIG_ATOMIC_WIDTH__: "32",
|
|
8489
|
+
__SIZEOF_DOUBLE__: "8",
|
|
8490
|
+
__SIZEOF_FLOAT__: "4",
|
|
8491
|
+
__SIZEOF_INT128__: "16",
|
|
8492
|
+
__SIZEOF_INT__: "4",
|
|
8493
|
+
__SIZEOF_LONG_DOUBLE__: "8",
|
|
8494
|
+
__SIZEOF_LONG_LONG__: "8",
|
|
8495
|
+
__SIZEOF_LONG__: "8",
|
|
8496
|
+
__SIZEOF_POINTER__: "8",
|
|
8497
|
+
__SIZEOF_PTRDIFF_T__: "8",
|
|
8498
|
+
__SIZEOF_SHORT__: "2",
|
|
8499
|
+
__SIZEOF_SIZE_T__: "8",
|
|
8500
|
+
__SIZEOF_WCHAR_T__: "4",
|
|
8501
|
+
__SIZEOF_WINT_T__: "4",
|
|
8502
|
+
__SIZE_FMTX__: '"lX"',
|
|
8503
|
+
__SIZE_FMTo__: '"lo"',
|
|
8504
|
+
__SIZE_FMTu__: '"lu"',
|
|
8505
|
+
__SIZE_FMTx__: '"lx"',
|
|
8506
|
+
__SIZE_MAX__: "18446744073709551615UL",
|
|
8507
|
+
__SIZE_TYPE__: "long unsigned int",
|
|
8508
|
+
__SIZE_WIDTH__: "64",
|
|
8509
|
+
__SSP__: "1",
|
|
8510
|
+
__STDCPP_DEFAULT_NEW_ALIGNMENT__: "16UL",
|
|
8511
|
+
__STDCPP_THREADS__: "1",
|
|
8512
|
+
__STDC_EMBED_EMPTY__: "2",
|
|
8513
|
+
__STDC_EMBED_FOUND__: "1",
|
|
8514
|
+
__STDC_EMBED_NOT_FOUND__: "0",
|
|
8515
|
+
__STDC_HOSTED__: "1",
|
|
8516
|
+
__STDC_NO_THREADS__: "1",
|
|
8517
|
+
__STDC_UTF_16__: "1",
|
|
8518
|
+
__STDC_UTF_32__: "1",
|
|
8519
|
+
__STDC__: "1",
|
|
8520
|
+
__UINT16_C: "(c) c",
|
|
8521
|
+
__UINT16_C_SUFFIX__: null,
|
|
8522
|
+
__UINT16_FMTX__: '"hX"',
|
|
8523
|
+
__UINT16_FMTo__: '"ho"',
|
|
8524
|
+
__UINT16_FMTu__: '"hu"',
|
|
8525
|
+
__UINT16_FMTx__: '"hx"',
|
|
8526
|
+
__UINT16_MAX__: "65535",
|
|
8527
|
+
__UINT16_TYPE__: "unsigned short",
|
|
8528
|
+
__UINT32_C: "(c) c##U",
|
|
8529
|
+
__UINT32_C_SUFFIX__: "U",
|
|
8530
|
+
__UINT32_FMTX__: '"X"',
|
|
8531
|
+
__UINT32_FMTo__: '"o"',
|
|
8532
|
+
__UINT32_FMTu__: '"u"',
|
|
8533
|
+
__UINT32_FMTx__: '"x"',
|
|
8534
|
+
__UINT32_MAX__: "4294967295U",
|
|
8535
|
+
__UINT32_TYPE__: "unsigned int",
|
|
8536
|
+
__UINT64_C: "(c) c##ULL",
|
|
8537
|
+
__UINT64_C_SUFFIX__: "ULL",
|
|
8538
|
+
__UINT64_FMTX__: '"llX"',
|
|
8539
|
+
__UINT64_FMTo__: '"llo"',
|
|
8540
|
+
__UINT64_FMTu__: '"llu"',
|
|
8541
|
+
__UINT64_FMTx__: '"llx"',
|
|
8542
|
+
__UINT64_MAX__: "18446744073709551615ULL",
|
|
8543
|
+
__UINT64_TYPE__: "long long unsigned int",
|
|
8544
|
+
__UINT8_C: "(c) c",
|
|
8545
|
+
__UINT8_C_SUFFIX__: null,
|
|
8546
|
+
__UINT8_FMTX__: '"hhX"',
|
|
8547
|
+
__UINT8_FMTo__: '"hho"',
|
|
8548
|
+
__UINT8_FMTu__: '"hhu"',
|
|
8549
|
+
__UINT8_FMTx__: '"hhx"',
|
|
8550
|
+
__UINT8_MAX__: "255",
|
|
8551
|
+
__UINT8_TYPE__: "unsigned char",
|
|
8552
|
+
__UINTMAX_C: "(c) c##UL",
|
|
8553
|
+
__UINTMAX_C_SUFFIX__: "UL",
|
|
8554
|
+
__UINTMAX_FMTX__: '"lX"',
|
|
8555
|
+
__UINTMAX_FMTo__: '"lo"',
|
|
8556
|
+
__UINTMAX_FMTu__: '"lu"',
|
|
8557
|
+
__UINTMAX_FMTx__: '"lx"',
|
|
8558
|
+
__UINTMAX_MAX__: "18446744073709551615UL",
|
|
8559
|
+
__UINTMAX_TYPE__: "long unsigned int",
|
|
8560
|
+
__UINTMAX_WIDTH__: "64",
|
|
8561
|
+
__UINTPTR_FMTX__: '"lX"',
|
|
8562
|
+
__UINTPTR_FMTo__: '"lo"',
|
|
8563
|
+
__UINTPTR_FMTu__: '"lu"',
|
|
8564
|
+
__UINTPTR_FMTx__: '"lx"',
|
|
8565
|
+
__UINTPTR_MAX__: "18446744073709551615UL",
|
|
8566
|
+
__UINTPTR_TYPE__: "long unsigned int",
|
|
8567
|
+
__UINTPTR_WIDTH__: "64",
|
|
8568
|
+
__UINT_FAST16_FMTX__: '"hX"',
|
|
8569
|
+
__UINT_FAST16_FMTo__: '"ho"',
|
|
8570
|
+
__UINT_FAST16_FMTu__: '"hu"',
|
|
8571
|
+
__UINT_FAST16_FMTx__: '"hx"',
|
|
8572
|
+
__UINT_FAST16_MAX__: "65535",
|
|
8573
|
+
__UINT_FAST16_TYPE__: "unsigned short",
|
|
8574
|
+
__UINT_FAST32_FMTX__: '"X"',
|
|
8575
|
+
__UINT_FAST32_FMTo__: '"o"',
|
|
8576
|
+
__UINT_FAST32_FMTu__: '"u"',
|
|
8577
|
+
__UINT_FAST32_FMTx__: '"x"',
|
|
8578
|
+
__UINT_FAST32_MAX__: "4294967295U",
|
|
8579
|
+
__UINT_FAST32_TYPE__: "unsigned int",
|
|
8580
|
+
__UINT_FAST64_FMTX__: '"llX"',
|
|
8581
|
+
__UINT_FAST64_FMTo__: '"llo"',
|
|
8582
|
+
__UINT_FAST64_FMTu__: '"llu"',
|
|
8583
|
+
__UINT_FAST64_FMTx__: '"llx"',
|
|
8584
|
+
__UINT_FAST64_MAX__: "18446744073709551615ULL",
|
|
8585
|
+
__UINT_FAST64_TYPE__: "long long unsigned int",
|
|
8586
|
+
__UINT_FAST8_FMTX__: '"hhX"',
|
|
8587
|
+
__UINT_FAST8_FMTo__: '"hho"',
|
|
8588
|
+
__UINT_FAST8_FMTu__: '"hhu"',
|
|
8589
|
+
__UINT_FAST8_FMTx__: '"hhx"',
|
|
8590
|
+
__UINT_FAST8_MAX__: "255",
|
|
8591
|
+
__UINT_FAST8_TYPE__: "unsigned char",
|
|
8592
|
+
__UINT_LEAST16_FMTX__: '"hX"',
|
|
8593
|
+
__UINT_LEAST16_FMTo__: '"ho"',
|
|
8594
|
+
__UINT_LEAST16_FMTu__: '"hu"',
|
|
8595
|
+
__UINT_LEAST16_FMTx__: '"hx"',
|
|
8596
|
+
__UINT_LEAST16_MAX__: "65535",
|
|
8597
|
+
__UINT_LEAST16_TYPE__: "unsigned short",
|
|
8598
|
+
__UINT_LEAST32_FMTX__: '"X"',
|
|
8599
|
+
__UINT_LEAST32_FMTo__: '"o"',
|
|
8600
|
+
__UINT_LEAST32_FMTu__: '"u"',
|
|
8601
|
+
__UINT_LEAST32_FMTx__: '"x"',
|
|
8602
|
+
__UINT_LEAST32_MAX__: "4294967295U",
|
|
8603
|
+
__UINT_LEAST32_TYPE__: "unsigned int",
|
|
8604
|
+
__UINT_LEAST64_FMTX__: '"llX"',
|
|
8605
|
+
__UINT_LEAST64_FMTo__: '"llo"',
|
|
8606
|
+
__UINT_LEAST64_FMTu__: '"llu"',
|
|
8607
|
+
__UINT_LEAST64_FMTx__: '"llx"',
|
|
8608
|
+
__UINT_LEAST64_MAX__: "18446744073709551615ULL",
|
|
8609
|
+
__UINT_LEAST64_TYPE__: "long long unsigned int",
|
|
8610
|
+
__UINT_LEAST8_FMTX__: '"hhX"',
|
|
8611
|
+
__UINT_LEAST8_FMTo__: '"hho"',
|
|
8612
|
+
__UINT_LEAST8_FMTu__: '"hhu"',
|
|
8613
|
+
__UINT_LEAST8_FMTx__: '"hhx"',
|
|
8614
|
+
__UINT_LEAST8_MAX__: "255",
|
|
8615
|
+
__UINT_LEAST8_TYPE__: "unsigned char",
|
|
8616
|
+
__USER_LABEL_PREFIX__: "_",
|
|
8617
|
+
__VERSION__: '"Clang 21.0.0"',
|
|
8618
|
+
__WCHAR_MAX__: "2147483647",
|
|
8619
|
+
__WCHAR_TYPE__: "int",
|
|
8620
|
+
__WCHAR_WIDTH__: "32",
|
|
8621
|
+
__WINT_MAX__: "2147483647",
|
|
8622
|
+
__WINT_TYPE__: "int",
|
|
8623
|
+
__WINT_WIDTH__: "32",
|
|
8624
|
+
__aarch64__: "1",
|
|
8625
|
+
__arm64: "1",
|
|
8626
|
+
__arm64__: "1",
|
|
8627
|
+
__autoreleasing: "__attribute__((objc_ownership(autoreleasing)))",
|
|
8628
|
+
__block: "__attribute__((__blocks__(byref)))",
|
|
8629
|
+
__clang__: "1",
|
|
8630
|
+
__clang_literal_encoding__: '"UTF-8"',
|
|
8631
|
+
__clang_major__: "21",
|
|
8632
|
+
__clang_minor__: "0",
|
|
8633
|
+
__clang_patchlevel__: "0",
|
|
8634
|
+
__clang_version__: '"21.0.0 "',
|
|
8635
|
+
__clang_wide_literal_encoding__: '"UTF-32"',
|
|
8636
|
+
__cplusplus: "201703L",
|
|
8637
|
+
__cpp_aggregate_bases: "201603L",
|
|
8638
|
+
__cpp_aggregate_nsdmi: "201304L",
|
|
8639
|
+
__cpp_alias_templates: "200704L",
|
|
8640
|
+
__cpp_attributes: "200809L",
|
|
8641
|
+
__cpp_binary_literals: "201304L",
|
|
8642
|
+
__cpp_capture_star_this: "201603L",
|
|
8643
|
+
__cpp_constexpr: "201603L",
|
|
8644
|
+
__cpp_constexpr_in_decltype: "201711L",
|
|
8645
|
+
__cpp_decltype: "200707L",
|
|
8646
|
+
__cpp_decltype_auto: "201304L",
|
|
8647
|
+
__cpp_deduction_guides: "201703L",
|
|
8648
|
+
__cpp_delegating_constructors: "200604L",
|
|
8649
|
+
__cpp_deleted_function: "202403L",
|
|
8650
|
+
__cpp_digit_separators: "201309L",
|
|
8651
|
+
__cpp_enumerator_attributes: "201411L",
|
|
8652
|
+
__cpp_exceptions: "199711L",
|
|
8653
|
+
__cpp_fold_expressions: "201603L",
|
|
8654
|
+
__cpp_generic_lambdas: "201304L",
|
|
8655
|
+
__cpp_guaranteed_copy_elision: "201606L",
|
|
8656
|
+
__cpp_hex_float: "201603L",
|
|
8657
|
+
__cpp_if_constexpr: "201606L",
|
|
8658
|
+
__cpp_impl_destroying_delete: "201806L",
|
|
8659
|
+
__cpp_inheriting_constructors: "201511L",
|
|
8660
|
+
__cpp_init_captures: "201304L",
|
|
8661
|
+
__cpp_initializer_lists: "200806L",
|
|
8662
|
+
__cpp_inline_variables: "201606L",
|
|
8663
|
+
__cpp_lambdas: "200907L",
|
|
8664
|
+
__cpp_named_character_escapes: "202207L",
|
|
8665
|
+
__cpp_namespace_attributes: "201411L",
|
|
8666
|
+
__cpp_nested_namespace_definitions: "201411L",
|
|
8667
|
+
__cpp_noexcept_function_type: "201510L",
|
|
8668
|
+
__cpp_nontype_template_args: "201411L",
|
|
8669
|
+
__cpp_nontype_template_parameter_auto: "201606L",
|
|
8670
|
+
__cpp_nsdmi: "200809L",
|
|
8671
|
+
__cpp_pack_indexing: "202311L",
|
|
8672
|
+
__cpp_placeholder_variables: "202306L",
|
|
8673
|
+
__cpp_range_based_for: "201603L",
|
|
8674
|
+
__cpp_raw_strings: "200710L",
|
|
8675
|
+
__cpp_ref_qualifiers: "200710L",
|
|
8676
|
+
__cpp_return_type_deduction: "201304L",
|
|
8677
|
+
__cpp_rtti: "199711L",
|
|
8678
|
+
__cpp_rvalue_references: "200610L",
|
|
8679
|
+
__cpp_static_assert: "202306L",
|
|
8680
|
+
__cpp_static_call_operator: "202207L",
|
|
8681
|
+
__cpp_structured_bindings: "202411L",
|
|
8682
|
+
__cpp_template_auto: "201606L",
|
|
8683
|
+
__cpp_template_template_args: "201611L",
|
|
8684
|
+
__cpp_threadsafe_static_init: "200806L",
|
|
8685
|
+
__cpp_unicode_characters: "200704L",
|
|
8686
|
+
__cpp_unicode_literals: "200710L",
|
|
8687
|
+
__cpp_user_defined_literals: "200809L",
|
|
8688
|
+
__cpp_variable_templates: "201304L",
|
|
8689
|
+
__cpp_variadic_friend: "202403L",
|
|
8690
|
+
__cpp_variadic_templates: "200704L",
|
|
8691
|
+
__cpp_variadic_using: "201611L",
|
|
8692
|
+
__llvm__: "1",
|
|
8693
|
+
__nonnull: "_Nonnull",
|
|
8694
|
+
__null_unspecified: "_Null_unspecified",
|
|
8695
|
+
__nullable: "_Nullable",
|
|
8696
|
+
__pic__: "2",
|
|
8697
|
+
__private_extern__: "extern",
|
|
8698
|
+
__strong: "__attribute__((objc_ownership(strong)))",
|
|
8699
|
+
__unsafe_unretained: "__attribute__((objc_ownership(none)))",
|
|
8700
|
+
__weak: "__attribute__((objc_ownership(weak)))"
|
|
8701
|
+
}
|
|
8702
|
+
}
|
|
8703
|
+
};
|
|
8704
|
+
|
|
6659
8705
|
// src/home-paths.ts
|
|
6660
8706
|
import { randomUUID } from "node:crypto";
|
|
6661
8707
|
import fs from "node:fs";
|
|
@@ -7376,9 +9422,9 @@ var EXCERPT = /^(\s*)(\d+)( \| )(.*)$/;
|
|
|
7376
9422
|
var MARKER = /^(\s*)( \| )(.*)$/;
|
|
7377
9423
|
function designTimeDiagnostic(output, files) {
|
|
7378
9424
|
const rewritten = /* @__PURE__ */ new Map();
|
|
7379
|
-
const linesOf = (
|
|
9425
|
+
const linesOf = (path14) => {
|
|
7380
9426
|
const file = Object.keys(files).find(
|
|
7381
|
-
(name2) => name2.endsWith(".swift") && (
|
|
9427
|
+
(name2) => name2.endsWith(".swift") && (path14 === name2 || path14.endsWith(`/${name2}`))
|
|
7382
9428
|
);
|
|
7383
9429
|
if (file === void 0) return null;
|
|
7384
9430
|
let lines = rewritten.get(file);
|
|
@@ -7542,6 +9588,29 @@ function swiftToolchainBin(release) {
|
|
|
7542
9588
|
return path4.join(peachHome(), "swift", "toolchains", release, "usr/bin");
|
|
7543
9589
|
return (process.env.PATH ?? "").split(path4.delimiter).find((dir) => dir && fs2.existsSync(path4.join(dir, "swift"))) ?? image;
|
|
7544
9590
|
}
|
|
9591
|
+
var SWIFT_AUTOLINK_LINKER = ".peach-wasm-ld";
|
|
9592
|
+
function writeSwiftAutolinkLinker(directory, toolchainBin) {
|
|
9593
|
+
const linker = path4.join(directory, SWIFT_AUTOLINK_LINKER);
|
|
9594
|
+
const script = `#!/bin/sh
|
|
9595
|
+
set -eu
|
|
9596
|
+
for arg in "$@"; do
|
|
9597
|
+
case $arg in
|
|
9598
|
+
@*)
|
|
9599
|
+
rsp=\${arg#@}
|
|
9600
|
+
awk 'BEGIN { RS = " "; ORS = " " } /^"-l/ { if (seen[$0]++) next } { print }' "$rsp" > "$rsp.dedup"
|
|
9601
|
+
mv "$rsp.dedup" "$rsp"
|
|
9602
|
+
;;
|
|
9603
|
+
esac
|
|
9604
|
+
done
|
|
9605
|
+
exec ${JSON.stringify(path4.join(toolchainBin, "wasm-ld"))} "$@"
|
|
9606
|
+
`;
|
|
9607
|
+
if (fs2.existsSync(linker) && fs2.readFileSync(linker, "utf8") === script) return linker;
|
|
9608
|
+
fs2.mkdirSync(directory, { recursive: true });
|
|
9609
|
+
const next = `${linker}.${process.pid}`;
|
|
9610
|
+
fs2.writeFileSync(next, script, { mode: 493 });
|
|
9611
|
+
fs2.renameSync(next, linker);
|
|
9612
|
+
return linker;
|
|
9613
|
+
}
|
|
7545
9614
|
function peachHome() {
|
|
7546
9615
|
const override = process.env.PEACH_HOME;
|
|
7547
9616
|
return override ? path4.resolve(override) : path4.join(os.homedir(), ".peach");
|
|
@@ -9063,9 +11132,9 @@ function swiftObjCImports(graphs, options) {
|
|
|
9063
11132
|
|
|
9064
11133
|
// src/swift-objc-metadata.ts
|
|
9065
11134
|
import { spawnSync as spawnSync5 } from "node:child_process";
|
|
9066
|
-
import { createHash as
|
|
11135
|
+
import { createHash as createHash8 } from "node:crypto";
|
|
9067
11136
|
import fs4 from "node:fs";
|
|
9068
|
-
import
|
|
11137
|
+
import path10 from "node:path";
|
|
9069
11138
|
|
|
9070
11139
|
// src/swift-objc-sdk.ts
|
|
9071
11140
|
import path6 from "node:path";
|
|
@@ -9132,7 +11201,7 @@ function swiftObjCPlatformFlags(toolchainBin, minimum) {
|
|
|
9132
11201
|
);
|
|
9133
11202
|
const flags = [
|
|
9134
11203
|
...result.stdout.matchAll(
|
|
9135
|
-
/^#define (TARGET_OS_\w+|TARGET_IPHONE_SIMULATOR|__APPLE\w*__|__MACH__|__ENVIRONMENT_\w
|
|
11204
|
+
/^#define (TARGET_OS_\w+|TARGET_IPHONE_SIMULATOR|__APPLE\w*__|__MACH__|__ENVIRONMENT_\w+|__nonnull|__nullable|__null_unspecified) (.*)$/gm
|
|
9136
11205
|
)
|
|
9137
11206
|
].map(([, name2, value]) => `-D${name2}=${value}`);
|
|
9138
11207
|
if (!flags.includes("-D__APPLE__=1") || !flags.includes("-D__MACH__=1"))
|
|
@@ -9217,6 +11286,39 @@ function iosDeploymentMinimum(version) {
|
|
|
9217
11286
|
return Number(parts[1]) * 1e4 + Number(parts[2] ?? 0) * 100 + Number(parts[3] ?? 0);
|
|
9218
11287
|
}
|
|
9219
11288
|
var headerFiles = (dir) => fs3.readdirSync(dir, { recursive: true, encoding: "utf8" }).filter((file) => file.endsWith(".h")).sort();
|
|
11289
|
+
function moduleMapHeaders(modulemap, directoryHeaders = []) {
|
|
11290
|
+
const tokens = (fs3.readFileSync(modulemap, "utf8").match(/\/\*[\s\S]*?\*\/|\/\/[^\n]*|"[^"]*"|[\w.*]+|[{}\[\]]/g) ?? []).filter((token) => !token.startsWith("/"));
|
|
11291
|
+
const open = [];
|
|
11292
|
+
const declared = [];
|
|
11293
|
+
const excluded = [];
|
|
11294
|
+
const topLevel = [];
|
|
11295
|
+
let moduleBody = false;
|
|
11296
|
+
for (const [i, token] of tokens.entries()) {
|
|
11297
|
+
if (token === "module") moduleBody = tokens[i - 1] !== "extern";
|
|
11298
|
+
else if (token === "}") open.pop();
|
|
11299
|
+
else if (token === "{") {
|
|
11300
|
+
if (moduleBody) {
|
|
11301
|
+
declared.push([]);
|
|
11302
|
+
excluded.push(/* @__PURE__ */ new Set());
|
|
11303
|
+
if (open.every((index) => index < 0)) topLevel.push(declared.length - 1);
|
|
11304
|
+
open.push(declared.length - 1);
|
|
11305
|
+
} else open.push(-1);
|
|
11306
|
+
moduleBody = false;
|
|
11307
|
+
} else if (token === "header" && tokens[i + 1]?.startsWith('"')) {
|
|
11308
|
+
const index = open.findLast((owner) => owner >= 0);
|
|
11309
|
+
if (index === void 0) continue;
|
|
11310
|
+
const header = tokens[i + 1].slice(1, -1);
|
|
11311
|
+
if (tokens[i - 1] === "exclude") excluded[index].add(header);
|
|
11312
|
+
else declared[index].push(header);
|
|
11313
|
+
}
|
|
11314
|
+
}
|
|
11315
|
+
const headers = declared.flatMap(
|
|
11316
|
+
(list, index) => list.filter((header) => !excluded[index].has(header))
|
|
11317
|
+
);
|
|
11318
|
+
if (headers.length > 0) return headers;
|
|
11319
|
+
const topExcluded = new Set(topLevel.flatMap((index) => [...excluded[index]]));
|
|
11320
|
+
return directoryHeaders.filter((header) => !topExcluded.has(header));
|
|
11321
|
+
}
|
|
9220
11322
|
function missingHeader(missing) {
|
|
9221
11323
|
const lines = ["#import <Foundation/Foundation.h>", "#import <UIKit/UIKit.h>"];
|
|
9222
11324
|
for (const [name2, kind] of missing) if (kind === "macro") lines.push(`#define ${name2}`);
|
|
@@ -9479,9 +11581,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir2, work, original) {
|
|
|
9479
11581
|
};
|
|
9480
11582
|
}
|
|
9481
11583
|
function objcDeclarationAST(surface, framework, toolchainBin, search, work, originalFlags, target) {
|
|
9482
|
-
const roots =
|
|
9483
|
-
...fs3.readFileSync(surface.modulemap, "utf8").matchAll(/(?:umbrella\s+)?header\s+"([^"]+)"/g)
|
|
9484
|
-
].map((match) => match[1]);
|
|
11584
|
+
const roots = moduleMapHeaders(surface.modulemap);
|
|
9485
11585
|
const probe = path8.join(work, "declarations.m");
|
|
9486
11586
|
fs3.writeFileSync(
|
|
9487
11587
|
probe,
|
|
@@ -9574,9 +11674,7 @@ function enumValues(graphs, surface, framework, toolchainBin, search, work, orig
|
|
|
9574
11674
|
}
|
|
9575
11675
|
const values = /* @__PURE__ */ new Map();
|
|
9576
11676
|
if (wanted.size === 0) return values;
|
|
9577
|
-
const roots =
|
|
9578
|
-
...fs3.readFileSync(surface.modulemap, "utf8").matchAll(/(?:umbrella\s+)?header\s+"([^"]+)"/g)
|
|
9579
|
-
].map((match) => match[1]);
|
|
11677
|
+
const roots = moduleMapHeaders(surface.modulemap);
|
|
9580
11678
|
const probe = path8.join(work, "values.m");
|
|
9581
11679
|
fs3.writeFileSync(
|
|
9582
11680
|
probe,
|
|
@@ -9663,6 +11761,63 @@ function constantValue(node) {
|
|
|
9663
11761
|
return null;
|
|
9664
11762
|
}
|
|
9665
11763
|
|
|
11764
|
+
// src/swift-standin-digest.ts
|
|
11765
|
+
import { createHash as createHash7 } from "node:crypto";
|
|
11766
|
+
import { existsSync as existsSync2, readFileSync as readFileSync5 } from "node:fs";
|
|
11767
|
+
import path9 from "node:path";
|
|
11768
|
+
var STANDIN_DIGEST_ENTRYPOINTS = [
|
|
11769
|
+
"swift-standins.ts",
|
|
11770
|
+
"swift-objc-compile.ts",
|
|
11771
|
+
"swift-objc-metadata.ts"
|
|
11772
|
+
];
|
|
11773
|
+
var SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
11774
|
+
function resolveImport(fromDir, specifier) {
|
|
11775
|
+
if (!specifier.startsWith(".")) return null;
|
|
11776
|
+
const absolute = path9.resolve(fromDir, specifier);
|
|
11777
|
+
for (const candidate of [
|
|
11778
|
+
absolute,
|
|
11779
|
+
`${absolute}.ts`,
|
|
11780
|
+
`${absolute}.tsx`,
|
|
11781
|
+
path9.join(absolute, "index.ts")
|
|
11782
|
+
])
|
|
11783
|
+
if (existsSync2(candidate)) return candidate;
|
|
11784
|
+
return null;
|
|
11785
|
+
}
|
|
11786
|
+
function standinDigestFiles(srcDir = import.meta.dirname) {
|
|
11787
|
+
for (const entry of STANDIN_DIGEST_ENTRYPOINTS)
|
|
11788
|
+
if (!existsSync2(path9.join(srcDir, entry)))
|
|
11789
|
+
throw new Error(`stand-in digest entrypoint is missing: ${entry}`);
|
|
11790
|
+
const files = [];
|
|
11791
|
+
const seen = /* @__PURE__ */ new Set();
|
|
11792
|
+
const queue = STANDIN_DIGEST_ENTRYPOINTS.map((file) => path9.join(srcDir, file));
|
|
11793
|
+
while (queue.length > 0) {
|
|
11794
|
+
const file = queue.pop();
|
|
11795
|
+
if (seen.has(file)) continue;
|
|
11796
|
+
seen.add(file);
|
|
11797
|
+
files.push(file);
|
|
11798
|
+
for (const match of readFileSync5(file, "utf8").matchAll(SPECIFIER)) {
|
|
11799
|
+
const specifier = match[1] ?? match[2];
|
|
11800
|
+
if (!specifier.startsWith(".")) continue;
|
|
11801
|
+
const hit = resolveImport(path9.dirname(file), specifier);
|
|
11802
|
+
if (hit) queue.push(hit);
|
|
11803
|
+
}
|
|
11804
|
+
}
|
|
11805
|
+
return files.sort();
|
|
11806
|
+
}
|
|
11807
|
+
function standinSourceDigest(srcDir = import.meta.dirname) {
|
|
11808
|
+
const entries = STANDIN_DIGEST_ENTRYPOINTS.map((file) => path9.join(srcDir, file));
|
|
11809
|
+
if (entries.every((file) => !existsSync2(file)))
|
|
11810
|
+
return createHash7("sha256").update(readFileSync5(import.meta.filename)).digest("hex");
|
|
11811
|
+
const hash2 = createHash7("sha256");
|
|
11812
|
+
for (const file of standinDigestFiles(srcDir)) {
|
|
11813
|
+
const key = path9.relative(srcDir, file);
|
|
11814
|
+
const bytes = readFileSync5(file);
|
|
11815
|
+
hash2.update(`${Buffer.byteLength(key)}:${key}${bytes.length}:`).update(bytes);
|
|
11816
|
+
}
|
|
11817
|
+
return hash2.digest("hex");
|
|
11818
|
+
}
|
|
11819
|
+
var STANDIN_SOURCE_DIGEST = standinSourceDigest();
|
|
11820
|
+
|
|
9666
11821
|
// src/swift-objc-metadata.ts
|
|
9667
11822
|
function validateObjcPeerStartupLibraries(libraries) {
|
|
9668
11823
|
function fail(name2, detail) {
|
|
@@ -9877,6 +12032,40 @@ function splitManifestArguments(source) {
|
|
|
9877
12032
|
if (final) arguments_.push(final);
|
|
9878
12033
|
return arguments_;
|
|
9879
12034
|
}
|
|
12035
|
+
function swiftManifestPackages(manifest) {
|
|
12036
|
+
return new Map(
|
|
12037
|
+
manifestCalls(manifest, ["package"]).flatMap(({ flat }) => {
|
|
12038
|
+
const directory = /\bpath\s*:\s*"([^"]+)"/.exec(flat)?.[1];
|
|
12039
|
+
if (!directory) return [];
|
|
12040
|
+
const name2 = /\bname\s*:\s*"([^"]+)"/.exec(flat)?.[1] ?? directory.split("/").pop();
|
|
12041
|
+
return [[name2.toLowerCase(), directory]];
|
|
12042
|
+
})
|
|
12043
|
+
);
|
|
12044
|
+
}
|
|
12045
|
+
var SWIFT_NATIVE_TRANSLATION_UNIT_EXTENSIONS = [
|
|
12046
|
+
".c",
|
|
12047
|
+
".cc",
|
|
12048
|
+
".cpp",
|
|
12049
|
+
".cxx",
|
|
12050
|
+
".m",
|
|
12051
|
+
".mm"
|
|
12052
|
+
];
|
|
12053
|
+
function isSwiftNativeTranslationUnit(file) {
|
|
12054
|
+
return SWIFT_NATIVE_TRANSLATION_UNIT_EXTENSIONS.some(
|
|
12055
|
+
(extension) => file.endsWith(extension)
|
|
12056
|
+
);
|
|
12057
|
+
}
|
|
12058
|
+
var SWIFT_NATIVE_SOURCE_EXTENSIONS = [
|
|
12059
|
+
...SWIFT_NATIVE_TRANSLATION_UNIT_EXTENSIONS,
|
|
12060
|
+
".h",
|
|
12061
|
+
".hh",
|
|
12062
|
+
".hpp",
|
|
12063
|
+
".hxx",
|
|
12064
|
+
".pch",
|
|
12065
|
+
".inc",
|
|
12066
|
+
".inl",
|
|
12067
|
+
".modulemap"
|
|
12068
|
+
];
|
|
9880
12069
|
function swiftTargetModuleName(name2) {
|
|
9881
12070
|
return name2.replace(/[^A-Za-z0-9_]/g, "_").replace(/^[0-9]/, "_");
|
|
9882
12071
|
}
|
|
@@ -9892,31 +12081,46 @@ var swiftEscapes = {
|
|
|
9892
12081
|
r: "\r",
|
|
9893
12082
|
t: " "
|
|
9894
12083
|
};
|
|
12084
|
+
function swiftStringValue(raw2, context) {
|
|
12085
|
+
return raw2.replace(/\\(.)/g, (_, escape) => {
|
|
12086
|
+
const value = swiftEscapes[escape];
|
|
12087
|
+
if (value === void 0)
|
|
12088
|
+
throw new Error(
|
|
12089
|
+
`Unsupported ${escape === "(" ? "interpolation" : `escape \\${escape}`} in ${context}`
|
|
12090
|
+
);
|
|
12091
|
+
return value;
|
|
12092
|
+
});
|
|
12093
|
+
}
|
|
12094
|
+
function bracketBody(text3, openIndex) {
|
|
12095
|
+
let depth = 1;
|
|
12096
|
+
let index = openIndex;
|
|
12097
|
+
for (; index < text3.length && depth > 0; index++) {
|
|
12098
|
+
const char = text3[index];
|
|
12099
|
+
if (char === '"') {
|
|
12100
|
+
for (index++; index < text3.length && text3[index] !== '"'; index++)
|
|
12101
|
+
if (text3[index] === "\\") index++;
|
|
12102
|
+
} else if (char === "[") depth++;
|
|
12103
|
+
else if (char === "]") depth--;
|
|
12104
|
+
}
|
|
12105
|
+
return text3.slice(openIndex, index - 1);
|
|
12106
|
+
}
|
|
9895
12107
|
function settingsBlocks(call, tool) {
|
|
9896
12108
|
const bodies = [];
|
|
9897
|
-
for (const open of call.matchAll(new RegExp(`\\b${tool}Settings\\s*:\\s*\\[`, "g")))
|
|
9898
|
-
|
|
9899
|
-
let index = open.index + open[0].length;
|
|
9900
|
-
const start = index;
|
|
9901
|
-
for (; index < call.length && depth > 0; index++) {
|
|
9902
|
-
const char = call[index];
|
|
9903
|
-
if (char === '"') {
|
|
9904
|
-
for (index++; index < call.length && call[index] !== '"'; index++)
|
|
9905
|
-
if (call[index] === "\\") index++;
|
|
9906
|
-
} else if (char === "[") depth++;
|
|
9907
|
-
else if (char === "]") depth--;
|
|
9908
|
-
}
|
|
9909
|
-
bodies.push(call.slice(start, index - 1));
|
|
9910
|
-
}
|
|
12109
|
+
for (const open of call.matchAll(new RegExp(`\\b${tool}Settings\\s*:\\s*\\[`, "g")))
|
|
12110
|
+
bodies.push(bracketBody(call, open.index + open[0].length));
|
|
9911
12111
|
return bodies;
|
|
9912
12112
|
}
|
|
9913
|
-
function settingFeatures(call, setting) {
|
|
12113
|
+
function settingFeatures(call, setting, target) {
|
|
9914
12114
|
const found = [];
|
|
9915
12115
|
for (const body of settingsBlocks(call, "swift")) {
|
|
9916
12116
|
if (setting === ".unsafeFlags") {
|
|
9917
|
-
for (const
|
|
9918
|
-
for (const match of
|
|
9919
|
-
|
|
12117
|
+
for (const open of body.matchAll(/\.unsafeFlags\(\s*\[/g))
|
|
12118
|
+
for (const match of bracketBody(body, open.index + open[0].length).matchAll(
|
|
12119
|
+
/"((?:[^"\\]|\\.)*)"/g
|
|
12120
|
+
))
|
|
12121
|
+
found.push(
|
|
12122
|
+
swiftStringValue(match[1], `unsafeFlags of target ${target} (${match[0]})`)
|
|
12123
|
+
);
|
|
9920
12124
|
} else {
|
|
9921
12125
|
const name2 = "([A-Za-z_][A-Za-z0-9_]*(?:=[A-Za-z_][A-Za-z0-9_.-]*)?)";
|
|
9922
12126
|
const pattern = setting === ".enableExperimentalFeature" ? new RegExp(`\\.enableExperimentalFeature\\(\\s*"${name2}"\\s*\\)`, "g") : new RegExp(`\\.enableUpcomingFeature\\(\\s*"${name2}"\\s*\\)`, "g");
|
|
@@ -9933,39 +12137,67 @@ function settingDefines(call, tool) {
|
|
|
9933
12137
|
)) {
|
|
9934
12138
|
const name2 = match[1];
|
|
9935
12139
|
defines.push(
|
|
9936
|
-
match[2] === void 0 ? name2 : `${name2}=${match[2]
|
|
9937
|
-
const value = swiftEscapes[escape];
|
|
9938
|
-
if (value === void 0)
|
|
9939
|
-
throw new Error(
|
|
9940
|
-
`Unsupported escape \\${escape} in the value of macro ${name2}`
|
|
9941
|
-
);
|
|
9942
|
-
return value;
|
|
9943
|
-
})}`
|
|
12140
|
+
match[2] === void 0 ? name2 : `${name2}=${swiftStringValue(match[2], `the value of macro ${name2}`)}`
|
|
9944
12141
|
);
|
|
9945
12142
|
}
|
|
9946
12143
|
}
|
|
9947
12144
|
return defines;
|
|
9948
12145
|
}
|
|
9949
|
-
function
|
|
12146
|
+
function swiftManifestDeclarations(manifest, resourcePaths = []) {
|
|
9950
12147
|
const implicitResources = swiftImplicitResourcePaths(resourcePaths);
|
|
9951
12148
|
const targets = [];
|
|
9952
|
-
const
|
|
12149
|
+
for (const declaration of manifestCalls(manifest, [
|
|
9953
12150
|
"executableTarget",
|
|
9954
12151
|
"target",
|
|
9955
12152
|
"systemLibrary"
|
|
9956
|
-
])
|
|
9957
|
-
|
|
9958
|
-
declarations.flatMap(({ flat }) => {
|
|
9959
|
-
const name2 = /\bname\s*:\s*"([^"]+)"/.exec(flat)?.[1];
|
|
9960
|
-
return name2 ? [name2] : [];
|
|
9961
|
-
})
|
|
9962
|
-
);
|
|
9963
|
-
for (const { kind, flat, call } of declarations) {
|
|
9964
|
-
const executable = kind === "executableTarget";
|
|
12153
|
+
])) {
|
|
12154
|
+
const { kind, flat } = declaration;
|
|
9965
12155
|
const name2 = /\bname\s*:\s*"([^"]+)"/.exec(flat)?.[1];
|
|
9966
12156
|
if (!name2) continue;
|
|
9967
12157
|
const rawPath = /\bpath\s*:\s*"([^"]*)"/.exec(flat)?.[1];
|
|
9968
12158
|
const targetPath = rawPath == null || rawPath === "" ? `Sources/${name2}` : rawPath.replace(/^\.\//, "").replace(/\/+$/, "");
|
|
12159
|
+
const exclude = /\bexclude\s*:\s*\[/.exec(flat);
|
|
12160
|
+
const excluded = [
|
|
12161
|
+
...(exclude ? bracketBody(flat, exclude.index + exclude[0].length) : "").matchAll(
|
|
12162
|
+
/"([^"]+)"/g
|
|
12163
|
+
)
|
|
12164
|
+
].map((match) => match[1].replace(/^\.\//, "").replace(/\/+$/, ""));
|
|
12165
|
+
const prefix = targetPath === "." ? "" : `${targetPath}/`;
|
|
12166
|
+
const resources = /\bresources\s*:/.test(flat) || implicitResources.some((file) => {
|
|
12167
|
+
if (!file.startsWith(prefix)) return false;
|
|
12168
|
+
const relative = file.slice(prefix.length);
|
|
12169
|
+
if (excluded.some(
|
|
12170
|
+
(exclude2) => relative === exclude2 || relative.startsWith(`${exclude2}/`)
|
|
12171
|
+
))
|
|
12172
|
+
return false;
|
|
12173
|
+
return true;
|
|
12174
|
+
});
|
|
12175
|
+
targets.push({
|
|
12176
|
+
...declaration,
|
|
12177
|
+
name: name2,
|
|
12178
|
+
path: targetPath,
|
|
12179
|
+
executable: kind === "executableTarget",
|
|
12180
|
+
resources,
|
|
12181
|
+
exclude: excluded
|
|
12182
|
+
});
|
|
12183
|
+
}
|
|
12184
|
+
return targets;
|
|
12185
|
+
}
|
|
12186
|
+
function swiftManifestTargets(manifest, resourcePaths = []) {
|
|
12187
|
+
const targets = [];
|
|
12188
|
+
const declarations = swiftManifestDeclarations(manifest, resourcePaths);
|
|
12189
|
+
const targetNames = new Set(declarations.map(({ name: name2 }) => name2));
|
|
12190
|
+
for (const {
|
|
12191
|
+
kind,
|
|
12192
|
+
flat,
|
|
12193
|
+
call,
|
|
12194
|
+
name: name2,
|
|
12195
|
+
path: targetPath,
|
|
12196
|
+
executable,
|
|
12197
|
+
resources,
|
|
12198
|
+
exclude: excluded
|
|
12199
|
+
} of declarations) {
|
|
12200
|
+
const publicHeadersPath = /\bpublicHeadersPath\s*:\s*"([^"]*)"/.exec(flat)?.[1];
|
|
9969
12201
|
const languageMode = Number(
|
|
9970
12202
|
/\.swiftLanguageMode\(\s*\.v(\d+)\s*\)/.exec(call)?.[1] ?? "5"
|
|
9971
12203
|
);
|
|
@@ -9974,49 +12206,40 @@ function swiftManifestTargets(manifest, resourcePaths = []) {
|
|
|
9974
12206
|
call.replace(/"(?:\\.|[^"\\])*"/g, "")
|
|
9975
12207
|
);
|
|
9976
12208
|
const defines = settingDefines(call, "swift").map((define) => define.split("=")[0]);
|
|
9977
|
-
const experimentalFeatures = settingFeatures(call, ".enableExperimentalFeature");
|
|
9978
|
-
const upcomingFeatures = settingFeatures(call, ".enableUpcomingFeature");
|
|
9979
|
-
const swiftFlags = settingFeatures(call, ".unsafeFlags");
|
|
12209
|
+
const experimentalFeatures = settingFeatures(call, ".enableExperimentalFeature", name2);
|
|
12210
|
+
const upcomingFeatures = settingFeatures(call, ".enableUpcomingFeature", name2);
|
|
12211
|
+
const swiftFlags = settingFeatures(call, ".unsafeFlags", name2);
|
|
9980
12212
|
const cDefines = settingDefines(call, "c");
|
|
9981
12213
|
const cxxDefines = settingDefines(call, "cxx");
|
|
9982
12214
|
const linkedLibraries = [...call.matchAll(/\.linkedLibrary\(\s*"([^"]+)"\s*\)/g)].map(
|
|
9983
12215
|
(match) => match[1]
|
|
9984
12216
|
);
|
|
9985
|
-
const excluded = [
|
|
9986
|
-
...(/\bexclude\s*:\s*\[([^\]]*)\]/.exec(flat)?.[1] ?? "").matchAll(/"([^"]+)"/g)
|
|
9987
|
-
].map((match) => match[1].replace(/^\.\//, "").replace(/\/+$/, ""));
|
|
9988
|
-
const prefix = targetPath === "." ? "" : `${targetPath}/`;
|
|
9989
|
-
const resources = /\bresources\s*:/.test(flat) || implicitResources.some((file) => {
|
|
9990
|
-
if (!file.startsWith(prefix)) return false;
|
|
9991
|
-
const relative = file.slice(prefix.length);
|
|
9992
|
-
if (excluded.some(
|
|
9993
|
-
(exclude) => relative === exclude || relative.startsWith(`${exclude}/`)
|
|
9994
|
-
))
|
|
9995
|
-
return false;
|
|
9996
|
-
return true;
|
|
9997
|
-
});
|
|
9998
12217
|
const targetArguments = splitManifestArguments(call.slice(0, -1));
|
|
9999
12218
|
const dependencyArgument = targetArguments.find(
|
|
10000
12219
|
(argument) => /^dependencies\s*:/.test(argument)
|
|
10001
12220
|
);
|
|
10002
12221
|
const dependencyList = dependencyArgument?.replace(/^dependencies\s*:\s*/, "").trim();
|
|
10003
|
-
const
|
|
12222
|
+
const dependencies = [];
|
|
10004
12223
|
if (dependencyList?.startsWith("[") && dependencyList.endsWith("]")) {
|
|
10005
12224
|
for (const dependency of splitManifestArguments(dependencyList.slice(1, -1))) {
|
|
12225
|
+
const product = /^\.product\s*\(\s*name\s*:\s*"([^"]+)"\s*,\s*package\s*:\s*"([^"]+)"\s*\)$/.exec(
|
|
12226
|
+
dependency
|
|
12227
|
+
);
|
|
12228
|
+
if (product) {
|
|
12229
|
+
dependencies.push({ kind: "product", name: product[1], package: product[2] });
|
|
12230
|
+
continue;
|
|
12231
|
+
}
|
|
10006
12232
|
const dependencyName = /^"([^"]+)"$/.exec(dependency)?.[1] ?? /^\.(?:target|byName)\s*\(\s*name\s*:\s*"([^"]+)"/.exec(dependency)?.[1];
|
|
10007
12233
|
if (dependencyName && targetNames.has(dependencyName))
|
|
10008
|
-
|
|
12234
|
+
dependencies.push({ kind: "target", name: dependencyName });
|
|
10009
12235
|
}
|
|
10010
12236
|
}
|
|
10011
|
-
const dependencies = [...dependencyNames].map((name3) => ({
|
|
10012
|
-
kind: "target",
|
|
10013
|
-
name: name3
|
|
10014
|
-
}));
|
|
10015
12237
|
targets.push({
|
|
10016
12238
|
name: name2,
|
|
10017
12239
|
path: targetPath,
|
|
10018
12240
|
executable,
|
|
10019
12241
|
...kind === "systemLibrary" ? { systemLibrary: true } : {},
|
|
12242
|
+
...publicHeadersPath === void 0 ? {} : { publicHeadersPath },
|
|
10020
12243
|
languageMode,
|
|
10021
12244
|
mainActorIsolation,
|
|
10022
12245
|
...cxxInterop ? { cxxInterop: true } : {},
|
|
@@ -10057,10 +12280,9 @@ function swiftObjCResourceBundleName(args) {
|
|
|
10057
12280
|
return bundle.path.slice(0, -".bundle".length);
|
|
10058
12281
|
}
|
|
10059
12282
|
function swiftObjCResourceAccessor(bundleName) {
|
|
10060
|
-
|
|
10061
|
-
|
|
10062
|
-
const
|
|
10063
|
-
const finder = `${bundleName}_SWIFTPM_MODULE_BUNDLER_FINDER`;
|
|
12283
|
+
const accessorName = swiftTargetModuleName(bundleName.replace(/[^\x00-\x7f]/gu, "_"));
|
|
12284
|
+
const symbol = `${accessorName}_SWIFTPM_MODULE_BUNDLE`;
|
|
12285
|
+
const finder = `${accessorName}_SWIFTPM_MODULE_BUNDLER_FINDER`;
|
|
10064
12286
|
return {
|
|
10065
12287
|
header: [
|
|
10066
12288
|
"#import <Foundation/Foundation.h>",
|
|
@@ -10085,7 +12307,7 @@ function swiftObjCResourceAccessor(bundleName) {
|
|
|
10085
12307
|
"@end",
|
|
10086
12308
|
"",
|
|
10087
12309
|
`NSBundle* ${symbol}() {`,
|
|
10088
|
-
` NSString *bundleName = @"${
|
|
12310
|
+
` NSString *bundleName = @"${accessorName}";`,
|
|
10089
12311
|
"",
|
|
10090
12312
|
" NSArray<NSURL*> *candidates = @[",
|
|
10091
12313
|
" NSBundle.mainBundle.resourceURL,",
|
|
@@ -10119,16 +12341,16 @@ import {
|
|
|
10119
12341
|
spawn as spawn2,
|
|
10120
12342
|
spawnSync as spawnSync6
|
|
10121
12343
|
} from "node:child_process";
|
|
10122
|
-
import { createHash as
|
|
12344
|
+
import { createHash as createHash9, randomUUID as randomUUID2 } from "node:crypto";
|
|
10123
12345
|
import {
|
|
10124
12346
|
linkSync,
|
|
10125
12347
|
mkdirSync,
|
|
10126
12348
|
readdirSync as readdirSync3,
|
|
10127
|
-
readFileSync as
|
|
12349
|
+
readFileSync as readFileSync6,
|
|
10128
12350
|
rmSync as rmSync2,
|
|
10129
12351
|
writeFileSync as writeFileSync2
|
|
10130
12352
|
} from "node:fs";
|
|
10131
|
-
import
|
|
12353
|
+
import path11 from "node:path";
|
|
10132
12354
|
var POLL_MS = 250;
|
|
10133
12355
|
var START_TOLERANCE_MS = 2e3;
|
|
10134
12356
|
function errorCode(error) {
|
|
@@ -10203,7 +12425,7 @@ function generationNumbers(directory) {
|
|
|
10203
12425
|
function readGeneration(directory, number) {
|
|
10204
12426
|
let owner;
|
|
10205
12427
|
try {
|
|
10206
|
-
owner =
|
|
12428
|
+
owner = readFileSync6(path11.join(directory, name(number, "owner")), "utf8");
|
|
10207
12429
|
} catch (error) {
|
|
10208
12430
|
if (errorCode(error) === "ENOENT") return null;
|
|
10209
12431
|
throw error;
|
|
@@ -10216,7 +12438,7 @@ function readGeneration(directory, number) {
|
|
|
10216
12438
|
}
|
|
10217
12439
|
function readChildren(directory, number) {
|
|
10218
12440
|
const prefix = name(number, "child.");
|
|
10219
|
-
return readdirSync3(directory).filter((entry) => entry.startsWith(prefix)).map((entry) => parseIdentity(
|
|
12441
|
+
return readdirSync3(directory).filter((entry) => entry.startsWith(prefix)).map((entry) => parseIdentity(readFileSync6(path11.join(directory, entry), "utf8")));
|
|
10220
12442
|
}
|
|
10221
12443
|
function groupAlive(table, leader) {
|
|
10222
12444
|
const row = table.find((candidate) => candidate.pid === leader.pid);
|
|
@@ -10224,16 +12446,16 @@ function groupAlive(table, leader) {
|
|
|
10224
12446
|
return table.some((candidate) => candidate.pgid === leader.pid && !candidate.zombie);
|
|
10225
12447
|
}
|
|
10226
12448
|
async function withSwiftRootLock(root, work, signal) {
|
|
10227
|
-
const directory =
|
|
12449
|
+
const directory = path11.join(
|
|
10228
12450
|
rnxHomeDir(),
|
|
10229
12451
|
"cache",
|
|
10230
12452
|
"swift-root-locks",
|
|
10231
|
-
|
|
12453
|
+
createHash9("sha256").update(root).digest("hex").slice(0, 32)
|
|
10232
12454
|
);
|
|
10233
12455
|
mkdirSync(directory, { recursive: true });
|
|
10234
12456
|
const token = randomUUID2();
|
|
10235
12457
|
const owner = JSON.stringify(ownIdentity(process.pid));
|
|
10236
|
-
const pending =
|
|
12458
|
+
const pending = path11.join(directory, `pending.${token}`);
|
|
10237
12459
|
let held = 0;
|
|
10238
12460
|
for (; ; ) {
|
|
10239
12461
|
signal?.throwIfAborted();
|
|
@@ -10254,7 +12476,7 @@ async function withSwiftRootLock(root, work, signal) {
|
|
|
10254
12476
|
}
|
|
10255
12477
|
writeFileSync2(pending, owner);
|
|
10256
12478
|
try {
|
|
10257
|
-
linkSync(pending,
|
|
12479
|
+
linkSync(pending, path11.join(directory, name(newest + 1, "owner")));
|
|
10258
12480
|
} catch (error) {
|
|
10259
12481
|
if (errorCode(error) === "EEXIST") continue;
|
|
10260
12482
|
throw error;
|
|
@@ -10263,7 +12485,7 @@ async function withSwiftRootLock(root, work, signal) {
|
|
|
10263
12485
|
}
|
|
10264
12486
|
const numbers = generationNumbers(directory);
|
|
10265
12487
|
if (numbers.at(-1) !== newest + 1) {
|
|
10266
|
-
rmSync2(
|
|
12488
|
+
rmSync2(path11.join(directory, name(newest + 1, "owner")), { force: true });
|
|
10267
12489
|
continue;
|
|
10268
12490
|
}
|
|
10269
12491
|
held = newest + 1;
|
|
@@ -10271,7 +12493,7 @@ async function withSwiftRootLock(root, work, signal) {
|
|
|
10271
12493
|
if (number < held) {
|
|
10272
12494
|
for (const entry of readdirSync3(directory))
|
|
10273
12495
|
if (entry.startsWith(name(number, "")))
|
|
10274
|
-
rmSync2(
|
|
12496
|
+
rmSync2(path11.join(directory, entry), { force: true });
|
|
10275
12497
|
}
|
|
10276
12498
|
break;
|
|
10277
12499
|
}
|
|
@@ -10295,7 +12517,7 @@ async function withSwiftRootLock(root, work, signal) {
|
|
|
10295
12517
|
const childPending = `${pending}.child.${child.pid}`;
|
|
10296
12518
|
try {
|
|
10297
12519
|
writeFileSync2(childPending, JSON.stringify(ownIdentity(child.pid)));
|
|
10298
|
-
linkSync(childPending,
|
|
12520
|
+
linkSync(childPending, path11.join(directory, name(held, `child.${child.pid}`)));
|
|
10299
12521
|
} finally {
|
|
10300
12522
|
rmSync2(childPending, { force: true });
|
|
10301
12523
|
}
|
|
@@ -10311,23 +12533,37 @@ async function withSwiftRootLock(root, work, signal) {
|
|
|
10311
12533
|
return await work(lease);
|
|
10312
12534
|
} finally {
|
|
10313
12535
|
await Promise.all(children.map((child) => terminateProcessGroup(child, "SIGKILL", 0)));
|
|
10314
|
-
writeFileSync2(
|
|
12536
|
+
writeFileSync2(path11.join(directory, name(held, "released")), "");
|
|
10315
12537
|
}
|
|
10316
12538
|
}
|
|
10317
12539
|
|
|
10318
12540
|
// src/swiftContract.ts
|
|
12541
|
+
var SWIFT_REMOTE_PACKAGES_DIR = "__packages__";
|
|
12542
|
+
var SWIFT_LOCAL_PACKAGES_DIR = "__local_packages__";
|
|
12543
|
+
function isSwiftPackageFiles(value) {
|
|
12544
|
+
return value !== null && typeof value === "object" && !Array.isArray(value) && Object.entries(value).every(
|
|
12545
|
+
([file, bytes]) => isSwiftResourcePath(file) && (file.startsWith(`${SWIFT_REMOTE_PACKAGES_DIR}/`) || file.startsWith(`${SWIFT_LOCAL_PACKAGES_DIR}/`)) && typeof bytes === "string" && /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(bytes)
|
|
12546
|
+
);
|
|
12547
|
+
}
|
|
10319
12548
|
function isSwiftObjCPeerStartup(value) {
|
|
10320
12549
|
return value !== null && typeof value === "object" && "registration" in value && isSwiftResourcePath(value.registration) && value.registration.endsWith(".swift") && Object.keys(value).length === 1;
|
|
10321
12550
|
}
|
|
10322
12551
|
var SWIFT_NATIVE_INPUT_ROOT = "$(PEACH_INPUT_ROOT)";
|
|
10323
12552
|
var SWIFT_NATIVE_SDK_INCLUDE = "$(PEACH_SDK_INCLUDE)";
|
|
10324
12553
|
function isSwiftNativeTargets(value) {
|
|
12554
|
+
return swiftNativeTargetsRefusal(value) === null;
|
|
12555
|
+
}
|
|
12556
|
+
function swiftNativeTargetsRefusal(value) {
|
|
10325
12557
|
const strings = (value2) => Array.isArray(value2) && value2.every((item) => typeof item === "string" && !item.includes("\0"));
|
|
10326
12558
|
const paths = (value2) => strings(value2) && value2.every(isSwiftResourcePath);
|
|
10327
|
-
|
|
10328
|
-
|
|
10329
|
-
|
|
10330
|
-
|
|
12559
|
+
if (!Array.isArray(value)) return "nativeTargets";
|
|
12560
|
+
if (value.length > 128) return "nativeTargets:length";
|
|
12561
|
+
for (const target of value) {
|
|
12562
|
+
if (!target || typeof target !== "object") return "nativeTargets:shape";
|
|
12563
|
+
const field = (name3) => Reflect.get(target, name3);
|
|
12564
|
+
const name2 = typeof field("name") === "string" ? String(field("name")) : "?";
|
|
12565
|
+
const at = (shape) => `nativeTargets:${name2}:${shape}`;
|
|
12566
|
+
const nullablePath = (key) => field(key) === null || isSwiftResourcePath(field(key));
|
|
10331
12567
|
const perFile = field("fileFlags");
|
|
10332
12568
|
const directories = field("sourceDirectories");
|
|
10333
12569
|
const searches = field("headerSearchPaths");
|
|
@@ -10337,21 +12573,48 @@ function isSwiftNativeTargets(value) {
|
|
|
10337
12573
|
const products = field("productHeaders");
|
|
10338
12574
|
const inputPath = (value2) => typeof value2 === "string" && value2.startsWith(`${SWIFT_NATIVE_INPUT_ROOT}/`) && isSwiftResourcePath(value2.slice(SWIFT_NATIVE_INPUT_ROOT.length + 1));
|
|
10339
12575
|
const deployment = field("deploymentTarget");
|
|
10340
|
-
|
|
12576
|
+
const targetName = field("name");
|
|
12577
|
+
if (typeof targetName !== "string" || targetName.length === 0 || targetName.length > 4096 || targetName.includes("\0") || targetName.includes("/") || targetName.includes("\\") || targetName === "." || targetName === "..")
|
|
12578
|
+
return at("name");
|
|
12579
|
+
if (!(deployment === null || typeof deployment === "string" && /^\d+(?:\.\d+){0,2}$/.test(deployment)))
|
|
12580
|
+
return at("deploymentTarget");
|
|
12581
|
+
if (!paths(field("headers"))) return at("headers");
|
|
12582
|
+
if (!paths(field("publicHeaders"))) return at("publicHeaders");
|
|
12583
|
+
if (typeof field("flattensPublicHeaders") !== "boolean")
|
|
12584
|
+
return at("flattensPublicHeaders");
|
|
12585
|
+
if (!nullablePath("bridgingHeader")) return at("bridgingHeader");
|
|
12586
|
+
if (!nullablePath("prefixHeader")) return at("prefixHeader");
|
|
12587
|
+
if (!strings(searches) || !searches.every((item) => item === "." || isSwiftResourcePath(item)))
|
|
12588
|
+
return at("headerSearchPaths");
|
|
12589
|
+
if (!strings(userSearches) || !userSearches.every((item) => item === "." || isSwiftResourcePath(item)))
|
|
12590
|
+
return at("userHeaderSearchPaths");
|
|
12591
|
+
if (!strings(frameworks) || !frameworks.every((item) => item === "." || isSwiftResourcePath(item)))
|
|
12592
|
+
return at("frameworkSearchPaths");
|
|
12593
|
+
if (!Array.isArray(maps) || !maps.every((map2) => {
|
|
10341
12594
|
if (!map2 || typeof map2 !== "object") return false;
|
|
10342
12595
|
const flag = Reflect.get(map2, "flag");
|
|
10343
12596
|
const entries = Reflect.get(map2, "entries");
|
|
10344
12597
|
return (flag === "-I" || flag === "-iquote") && Array.isArray(entries) && entries.every(
|
|
10345
12598
|
(entry) => Array.isArray(entry) && entry.length === 2 && typeof entry[0] === "string" && !entry[0].includes("\0") && (inputPath(entry[1]) || isSwiftResourcePath(entry[1]))
|
|
10346
12599
|
);
|
|
10347
|
-
})
|
|
12600
|
+
}))
|
|
12601
|
+
return at("headerMaps");
|
|
12602
|
+
if (!products || typeof products !== "object" || Array.isArray(products) || !Object.entries(products).every(
|
|
10348
12603
|
([product, file]) => isSwiftResourcePath(product) && isSwiftResourcePath(file)
|
|
10349
|
-
)
|
|
12604
|
+
))
|
|
12605
|
+
return at("productHeaders");
|
|
12606
|
+
if (!strings(field("flags"))) return at("flags");
|
|
12607
|
+
if (!strings(field("cxxFlags"))) return at("cxxFlags");
|
|
12608
|
+
if (!perFile || typeof perFile !== "object" || Array.isArray(perFile) || !Object.entries(perFile).every(
|
|
10350
12609
|
([file, flags]) => isSwiftResourcePath(file) && strings(flags)
|
|
10351
|
-
)
|
|
12610
|
+
))
|
|
12611
|
+
return at("fileFlags");
|
|
12612
|
+
if (!directories || typeof directories !== "object" || Array.isArray(directories) || !Object.entries(directories).every(
|
|
10352
12613
|
([file, directory]) => isSwiftResourcePath(file) && (directory === "." || isSwiftResourcePath(directory))
|
|
10353
|
-
)
|
|
10354
|
-
|
|
12614
|
+
))
|
|
12615
|
+
return at("sourceDirectories");
|
|
12616
|
+
}
|
|
12617
|
+
return null;
|
|
10355
12618
|
}
|
|
10356
12619
|
function isSwiftResourcePath(value) {
|
|
10357
12620
|
return typeof value === "string" && value.length <= 4096 && !value.startsWith("/") && !value.includes("\\") && !value.includes("\0") && value.split("/").every((part) => part !== "" && part !== "." && part !== "..");
|
|
@@ -10367,7 +12630,7 @@ function isSwiftResourceBundles(value) {
|
|
|
10367
12630
|
|
|
10368
12631
|
// src/xcode-header-search.ts
|
|
10369
12632
|
import fs5 from "node:fs";
|
|
10370
|
-
import
|
|
12633
|
+
import path12 from "node:path";
|
|
10371
12634
|
function headerMap(entries) {
|
|
10372
12635
|
const unique = /* @__PURE__ */ new Map();
|
|
10373
12636
|
for (const entry of entries)
|
|
@@ -10414,11 +12677,11 @@ function writeXcodeHeaderSearch(directory, targets) {
|
|
|
10414
12677
|
const productDirectories = /* @__PURE__ */ new Map();
|
|
10415
12678
|
for (const target of targets)
|
|
10416
12679
|
for (const [product, file] of Object.entries(target.productHeaders)) {
|
|
10417
|
-
const listed = productDirectories.get(
|
|
10418
|
-
productDirectories.set(
|
|
10419
|
-
listed.push({ name:
|
|
12680
|
+
const listed = productDirectories.get(path12.dirname(product)) ?? [];
|
|
12681
|
+
productDirectories.set(path12.dirname(product), listed);
|
|
12682
|
+
listed.push({ name: path12.basename(product), file });
|
|
10420
12683
|
}
|
|
10421
|
-
const overlay =
|
|
12684
|
+
const overlay = path12.join(directory, "all-product-headers.yaml");
|
|
10422
12685
|
fs5.writeFileSync(
|
|
10423
12686
|
overlay,
|
|
10424
12687
|
JSON.stringify({
|
|
@@ -10438,7 +12701,7 @@ function writeXcodeHeaderSearch(directory, targets) {
|
|
|
10438
12701
|
const files = [overlay];
|
|
10439
12702
|
const flags = targets.map((target, index) => {
|
|
10440
12703
|
const maps = target.headerMaps.map((map2, order) => {
|
|
10441
|
-
const file =
|
|
12704
|
+
const file = path12.join(directory, `${index}-${order}.hmap`);
|
|
10442
12705
|
fs5.writeFileSync(file, headerMap(map2.entries));
|
|
10443
12706
|
files.push(file);
|
|
10444
12707
|
return { flag: map2.flag, file };
|
|
@@ -10555,9 +12818,9 @@ function swiftBuilderHopTimeoutMs(compileTimeoutMs) {
|
|
|
10555
12818
|
return (compileTimeoutMs ?? SWIFT_BUILDER_DEFAULT_COMPILE_MS) + SWIFT_BUILDER_TRANSPORT_MARGIN_MS;
|
|
10556
12819
|
}
|
|
10557
12820
|
function swiftDistributionAt(root) {
|
|
10558
|
-
const file =
|
|
10559
|
-
if (!
|
|
10560
|
-
return parseSwiftDistributionManifest(JSON.parse(
|
|
12821
|
+
const file = path13.join(root, SWIFT_DISTRIBUTION_MANIFEST);
|
|
12822
|
+
if (!existsSync3(file)) return null;
|
|
12823
|
+
return parseSwiftDistributionManifest(JSON.parse(readFileSync7(file, "utf8")));
|
|
10561
12824
|
}
|
|
10562
12825
|
function swiftModuleSdk(root) {
|
|
10563
12826
|
const pin = swiftDistributionAt(root) ?? swiftSourceSdk(root);
|
|
@@ -10584,7 +12847,7 @@ function swiftModuleInputFiles(root) {
|
|
|
10584
12847
|
"toolchain.json"
|
|
10585
12848
|
];
|
|
10586
12849
|
const walk = (dir) => {
|
|
10587
|
-
for (const entry of readdirSync4(
|
|
12850
|
+
for (const entry of readdirSync4(path13.join(root, dir), {
|
|
10588
12851
|
withFileTypes: true
|
|
10589
12852
|
})) {
|
|
10590
12853
|
const relative = `${dir}/${entry.name}`;
|
|
@@ -10602,61 +12865,65 @@ function swiftMacroPlugins(moduleRoot) {
|
|
|
10602
12865
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
10603
12866
|
if (distribution)
|
|
10604
12867
|
return {
|
|
10605
|
-
libraries: distribution.plugins.map((plugin) =>
|
|
12868
|
+
libraries: distribution.plugins.filter((plugin) => path13.basename(plugin) !== "ExpoModulesMacros").map((plugin) => path13.join(moduleRoot, plugin)),
|
|
12869
|
+
executables: distribution.plugins.filter((plugin) => path13.basename(plugin) === "ExpoModulesMacros").map((plugin) => path13.join(moduleRoot, plugin)),
|
|
10606
12870
|
stale: false
|
|
10607
12871
|
};
|
|
10608
|
-
const dir =
|
|
12872
|
+
const dir = path13.join(moduleRoot, ".build/host/RnxPreviewMacros");
|
|
10609
12873
|
const release = JSON.parse(
|
|
10610
|
-
|
|
12874
|
+
readFileSync7(path13.join(moduleRoot, "toolchain.json"), "utf8")
|
|
10611
12875
|
).release;
|
|
10612
|
-
const compilerStamp =
|
|
12876
|
+
const compilerStamp = path13.join(dir, "compiler-release");
|
|
12877
|
+
const pluginScript = path13.join(moduleRoot, "scripts/build-preview-plugin.sh");
|
|
12878
|
+
const expoPlugin = path13.join(dir, "ExpoModulesMacros");
|
|
10613
12879
|
const ext = process.platform === "darwin" ? "dylib" : "so";
|
|
10614
12880
|
const plugins = [
|
|
10615
12881
|
{
|
|
10616
|
-
library:
|
|
10617
|
-
sources: [
|
|
12882
|
+
library: path13.join(dir, `libRnxPreviewMacros.${ext}`),
|
|
12883
|
+
sources: [path13.join(moduleRoot, "Sources/RnxPreviewMacros/PreviewMacro.swift")]
|
|
10618
12884
|
},
|
|
10619
12885
|
{
|
|
10620
|
-
library:
|
|
12886
|
+
library: path13.join(dir, `libFoundationMacros.${ext}`),
|
|
10621
12887
|
sources: [
|
|
10622
|
-
|
|
10623
|
-
|
|
12888
|
+
path13.join(moduleRoot, "Sources/FoundationMacros/PredicateMacro.swift"),
|
|
12889
|
+
path13.join(moduleRoot, "Sources/SwiftMacroSupport/PredicateExpression.swift")
|
|
10624
12890
|
]
|
|
10625
12891
|
},
|
|
10626
12892
|
{
|
|
10627
|
-
library:
|
|
12893
|
+
library: path13.join(dir, `libTipKitMacros.${ext}`),
|
|
10628
12894
|
sources: [
|
|
10629
|
-
|
|
10630
|
-
|
|
12895
|
+
path13.join(moduleRoot, "Sources/TipKitMacros/TipKitMacros.swift"),
|
|
12896
|
+
path13.join(moduleRoot, "Sources/SwiftMacroSupport/PredicateExpression.swift")
|
|
10631
12897
|
]
|
|
10632
12898
|
}
|
|
10633
12899
|
];
|
|
10634
12900
|
return {
|
|
10635
12901
|
libraries: plugins.map(({ library }) => library),
|
|
10636
|
-
|
|
10637
|
-
|
|
12902
|
+
executables: [expoPlugin],
|
|
12903
|
+
stale: !existsSync3(compilerStamp) || !existsSync3(expoPlugin) || statSync(pluginScript).mtimeMs > statSync(expoPlugin).mtimeMs || readFileSync7(compilerStamp, "utf8").trim() !== release || plugins.some(
|
|
12904
|
+
({ library, sources }) => !existsSync3(library) || sources.some((source) => statSync(source).mtimeMs > statSync(library).mtimeMs)
|
|
10638
12905
|
)
|
|
10639
12906
|
};
|
|
10640
12907
|
}
|
|
10641
12908
|
async function ensureMacroPlugins(moduleRoot, toolchainBin, release, signal) {
|
|
10642
|
-
const { libraries, stale } = swiftMacroPlugins(moduleRoot);
|
|
12909
|
+
const { libraries, executables, stale } = swiftMacroPlugins(moduleRoot);
|
|
10643
12910
|
if (stale) {
|
|
10644
12911
|
await runCompiler(
|
|
10645
12912
|
"sh",
|
|
10646
12913
|
[
|
|
10647
|
-
|
|
12914
|
+
path13.join(moduleRoot, "scripts/build-preview-plugin.sh"),
|
|
10648
12915
|
toolchainBin,
|
|
10649
12916
|
libraries[0]
|
|
10650
12917
|
],
|
|
10651
12918
|
{ signal }
|
|
10652
12919
|
);
|
|
10653
12920
|
writeFileSync3(
|
|
10654
|
-
|
|
12921
|
+
path13.join(path13.dirname(libraries[0]), "compiler-release"),
|
|
10655
12922
|
`${release}
|
|
10656
12923
|
`
|
|
10657
12924
|
);
|
|
10658
12925
|
}
|
|
10659
|
-
return libraries;
|
|
12926
|
+
return { libraries, executables };
|
|
10660
12927
|
}
|
|
10661
12928
|
var linkedModuleDigests = /* @__PURE__ */ new Map();
|
|
10662
12929
|
function clearLinkedModuleDigests(root) {
|
|
@@ -10665,9 +12932,9 @@ function clearLinkedModuleDigests(root) {
|
|
|
10665
12932
|
}
|
|
10666
12933
|
function swiftModuleDigest(root) {
|
|
10667
12934
|
const files = swiftModuleInputFiles(root);
|
|
10668
|
-
const stampHash =
|
|
12935
|
+
const stampHash = createHash10("sha256");
|
|
10669
12936
|
for (const file of files) {
|
|
10670
|
-
const stat = statSync(
|
|
12937
|
+
const stat = statSync(path13.join(root, file), { bigint: true });
|
|
10671
12938
|
stampHash.update(file);
|
|
10672
12939
|
stampHash.update(
|
|
10673
12940
|
`${stat.dev}:${stat.ino}:${stat.size}:${stat.mtimeNs}:${stat.ctimeNs}
|
|
@@ -10677,11 +12944,11 @@ function swiftModuleDigest(root) {
|
|
|
10677
12944
|
const stamp = stampHash.digest("hex");
|
|
10678
12945
|
const cached = linkedModuleDigests.get(root);
|
|
10679
12946
|
if (cached?.stamp === stamp) return cached.digest;
|
|
10680
|
-
const hash2 =
|
|
12947
|
+
const hash2 = createHash10("sha256");
|
|
10681
12948
|
for (const file of files) {
|
|
10682
|
-
hash2.update(
|
|
12949
|
+
hash2.update(createHash10("sha256").update(file).digest());
|
|
10683
12950
|
hash2.update(
|
|
10684
|
-
|
|
12951
|
+
createHash10("sha256").update(readFileSync7(path13.join(root, file))).digest()
|
|
10685
12952
|
);
|
|
10686
12953
|
}
|
|
10687
12954
|
const digest = hash2.digest();
|
|
@@ -10689,7 +12956,7 @@ function swiftModuleDigest(root) {
|
|
|
10689
12956
|
return digest;
|
|
10690
12957
|
}
|
|
10691
12958
|
function swiftProjectBuildKey(moduleRoot, release) {
|
|
10692
|
-
return
|
|
12959
|
+
return createHash10("sha256").update(`${release}\0${swiftModuleSdk(moduleRoot).wasmSdkId}`).update(swiftModuleDigest(moduleRoot)).digest("hex").slice(0, 32);
|
|
10693
12960
|
}
|
|
10694
12961
|
function compileTargets(input) {
|
|
10695
12962
|
const manifest = input.files["Package.swift"];
|
|
@@ -10705,7 +12972,7 @@ function withNativeSourceGlue(input, glue) {
|
|
|
10705
12972
|
...input,
|
|
10706
12973
|
files: {
|
|
10707
12974
|
...input.files,
|
|
10708
|
-
[
|
|
12975
|
+
[path13.posix.join(targetPath, "OneNativeSource.generated.swift")]: glue
|
|
10709
12976
|
},
|
|
10710
12977
|
oneModule: true
|
|
10711
12978
|
};
|
|
@@ -10756,15 +13023,15 @@ var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
|
|
|
10756
13023
|
};
|
|
10757
13024
|
var OPTIONAL_FRAMEWORKS = new Set(Object.keys(OPTIONAL_FRAMEWORK_DEPENDENCIES));
|
|
10758
13025
|
var SWIFT_IMPORT = /^\s*(?:@\w+(?:\([^)]*\))?\s+)*import\s+(?:(?:typealias|struct|class|enum|protocol|let|var|func)\s+)?([A-Za-z_][A-Za-z0-9_]*)/;
|
|
13026
|
+
var kleeneNot = (value) => value === void 0 ? void 0 : !value;
|
|
13027
|
+
var kleeneAnd = (left, right) => left === false || right === false ? false : left === true && right === true ? true : void 0;
|
|
13028
|
+
var kleeneOr = (left, right) => left === true || right === true ? true : left === false && right === false ? false : void 0;
|
|
10759
13029
|
function swiftCondition(text3, available) {
|
|
10760
13030
|
const tokens = text3.match(/\w+\s*\([^()]*\)|&&|\|\||!|\(|\)|\w+/g) ?? [];
|
|
10761
13031
|
let index = 0;
|
|
10762
13032
|
const atom = () => {
|
|
10763
13033
|
const token = tokens[index++];
|
|
10764
|
-
if (token === "!")
|
|
10765
|
-
const value = atom();
|
|
10766
|
-
return value === void 0 ? void 0 : !value;
|
|
10767
|
-
}
|
|
13034
|
+
if (token === "!") return kleeneNot(atom());
|
|
10768
13035
|
if (token === "(") {
|
|
10769
13036
|
const value = either();
|
|
10770
13037
|
index++;
|
|
@@ -10776,8 +13043,8 @@ function swiftCondition(text3, available) {
|
|
|
10776
13043
|
if (!call) return void 0;
|
|
10777
13044
|
const [, name2, argument] = call;
|
|
10778
13045
|
if (name2 === "os") return argument === "iOS" || argument === "WASI";
|
|
10779
|
-
if (name2 === "canImport") return available
|
|
10780
|
-
if (name2 === "targetEnvironment") return
|
|
13046
|
+
if (name2 === "canImport") return available?.has(argument);
|
|
13047
|
+
if (name2 === "targetEnvironment") return argument === "simulator";
|
|
10781
13048
|
if (name2 === "arch") return argument === "wasm32";
|
|
10782
13049
|
return void 0;
|
|
10783
13050
|
};
|
|
@@ -10785,8 +13052,7 @@ function swiftCondition(text3, available) {
|
|
|
10785
13052
|
let value = atom();
|
|
10786
13053
|
while (tokens[index] === "&&") {
|
|
10787
13054
|
index++;
|
|
10788
|
-
|
|
10789
|
-
value = value === false || next === false ? false : value && next ? true : void 0;
|
|
13055
|
+
value = kleeneAnd(value, atom());
|
|
10790
13056
|
}
|
|
10791
13057
|
return value;
|
|
10792
13058
|
};
|
|
@@ -10794,19 +13060,17 @@ function swiftCondition(text3, available) {
|
|
|
10794
13060
|
let value = both();
|
|
10795
13061
|
while (tokens[index] === "||") {
|
|
10796
13062
|
index++;
|
|
10797
|
-
|
|
10798
|
-
value = value === true || next === true ? true : value === false && next === false ? false : void 0;
|
|
13063
|
+
value = kleeneOr(value, both());
|
|
10799
13064
|
}
|
|
10800
13065
|
return value;
|
|
10801
13066
|
};
|
|
10802
13067
|
return either();
|
|
10803
13068
|
}
|
|
10804
|
-
function
|
|
10805
|
-
const names = [];
|
|
13069
|
+
function* swiftConditionalLines(contents, available) {
|
|
10806
13070
|
const frames = [];
|
|
10807
13071
|
for (const line of contents.split("\n")) {
|
|
10808
13072
|
const directive = /^\s*#(if|elseif|else|endif)\b(.*)$/.exec(line);
|
|
10809
|
-
if (directive
|
|
13073
|
+
if (directive) {
|
|
10810
13074
|
const [, kind, rest] = directive;
|
|
10811
13075
|
const condition = (rest ?? "").replace(/\/\/.*$/, "").trim();
|
|
10812
13076
|
if (kind === "if") {
|
|
@@ -10819,9 +13083,19 @@ function swiftImportNames(contents, available) {
|
|
|
10819
13083
|
frame.active = frame.taken === true ? false : frame.taken === false ? holds : holds && void 0;
|
|
10820
13084
|
frame.taken = frame.taken === true || holds === true ? true : frame.taken === false ? holds : void 0;
|
|
10821
13085
|
}
|
|
13086
|
+
yield { line, active: false };
|
|
10822
13087
|
continue;
|
|
10823
13088
|
}
|
|
10824
|
-
|
|
13089
|
+
yield {
|
|
13090
|
+
line,
|
|
13091
|
+
active: frames.some((frame) => frame.active === false) ? false : frames.every((frame) => frame.active === true) ? true : void 0
|
|
13092
|
+
};
|
|
13093
|
+
}
|
|
13094
|
+
}
|
|
13095
|
+
function swiftImportNames(contents, available) {
|
|
13096
|
+
const names = [];
|
|
13097
|
+
for (const { line, active } of swiftConditionalLines(contents, available)) {
|
|
13098
|
+
if (available && active !== true) continue;
|
|
10825
13099
|
const name2 = SWIFT_IMPORT.exec(line)?.[1];
|
|
10826
13100
|
if (name2) names.push(name2);
|
|
10827
13101
|
}
|
|
@@ -10829,11 +13103,9 @@ function swiftImportNames(contents, available) {
|
|
|
10829
13103
|
}
|
|
10830
13104
|
function swiftPeachModules(moduleRoot) {
|
|
10831
13105
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
10832
|
-
return distribution ? distribution.modules :
|
|
10833
|
-
|
|
10834
|
-
|
|
10835
|
-
)
|
|
10836
|
-
].map((match) => match[1]);
|
|
13106
|
+
return distribution ? distribution.modules : swiftManifestDeclarations(
|
|
13107
|
+
readFileSync7(path13.join(moduleRoot, "Package.swift"), "utf8")
|
|
13108
|
+
).filter((target) => !target.executable && !target.path.startsWith("fixtures/")).map((target) => target.name);
|
|
10837
13109
|
}
|
|
10838
13110
|
var sdkPaths = /* @__PURE__ */ new Map();
|
|
10839
13111
|
function swiftSdkPaths(moduleRoot, toolchainBin) {
|
|
@@ -10842,7 +13114,7 @@ function swiftSdkPaths(moduleRoot, toolchainBin) {
|
|
|
10842
13114
|
const cached = sdkPaths.get(key);
|
|
10843
13115
|
if (cached) return cached;
|
|
10844
13116
|
const configuration = execFileSync3(
|
|
10845
|
-
|
|
13117
|
+
path13.join(toolchainBin, "swift"),
|
|
10846
13118
|
[
|
|
10847
13119
|
"sdk",
|
|
10848
13120
|
"configure",
|
|
@@ -10873,14 +13145,14 @@ function swiftAvailableModules(moduleRoot, toolchainBin) {
|
|
|
10873
13145
|
if (cached) return cached;
|
|
10874
13146
|
const modules = new Set(swiftPeachModules(moduleRoot));
|
|
10875
13147
|
const { resources } = swiftSdkPaths(moduleRoot, toolchainBin);
|
|
10876
|
-
for (const entry of readdirSync4(
|
|
13148
|
+
for (const entry of readdirSync4(path13.join(resources, "wasi"))) {
|
|
10877
13149
|
if (entry.endsWith(".swiftmodule"))
|
|
10878
13150
|
modules.add(entry.slice(0, -".swiftmodule".length));
|
|
10879
13151
|
}
|
|
10880
13152
|
for (const entry of readdirSync4(resources)) {
|
|
10881
|
-
const map2 =
|
|
10882
|
-
if (!
|
|
10883
|
-
for (const match of
|
|
13153
|
+
const map2 = path13.join(resources, entry, "module.modulemap");
|
|
13154
|
+
if (!existsSync3(map2)) continue;
|
|
13155
|
+
for (const match of readFileSync7(map2, "utf8").matchAll(/^module\s+([A-Za-z_]\w*)/gm))
|
|
10884
13156
|
modules.add(match[1]);
|
|
10885
13157
|
}
|
|
10886
13158
|
availableModules.set(key, modules);
|
|
@@ -10939,16 +13211,18 @@ var FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
|
10939
13211
|
(module) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module}"`
|
|
10940
13212
|
).join("");
|
|
10941
13213
|
var ONE_IMPLICIT_FLAGS = ', "-Xfrontend", "-import-module", "-Xfrontend", "One"';
|
|
10942
|
-
var
|
|
13214
|
+
var executableLinkFlags = (root) => ` "-Xclang-linker", "-O0",
|
|
13215
|
+
"-Xclang-linker", ${JSON.stringify(`-fuse-ld=${path13.join(root, SWIFT_AUTOLINK_LINKER)}`)},
|
|
10943
13216
|
"-Xlinker", "-z", "-Xlinker", "stack-size=8372224",
|
|
10944
13217
|
"-Xlinker", "--stack-first",
|
|
10945
13218
|
"-Xlinker", "--global-base=8372224",
|
|
13219
|
+
"-Xlinker", "-lsetjmp",
|
|
10946
13220
|
`;
|
|
10947
13221
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
10948
|
-
var MULTI_MANIFEST_VERSION =
|
|
10949
|
-
var compilerSourceDigest = true ? "
|
|
13222
|
+
var MULTI_MANIFEST_VERSION = 45;
|
|
13223
|
+
var compilerSourceDigest = true ? "ad79573e8515bcc2bfbbb2c1b86d3d864d7c37e3ae2098cca7b0693bb6141c4e" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
10950
13224
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
10951
|
-
const hash2 =
|
|
13225
|
+
const hash2 = createHash10("sha256");
|
|
10952
13226
|
hash2.update(`swift-compile
|
|
10953
13227
|
${release}
|
|
10954
13228
|
`);
|
|
@@ -10956,32 +13230,32 @@ ${release}
|
|
|
10956
13230
|
if (input.oneModule) hash2.update("one-module\n");
|
|
10957
13231
|
hash2.update(swiftModuleDigest(moduleRoot));
|
|
10958
13232
|
for (const file of Object.keys(input.files).sort()) {
|
|
10959
|
-
hash2.update(
|
|
10960
|
-
hash2.update(
|
|
13233
|
+
hash2.update(createHash10("sha256").update(file).digest());
|
|
13234
|
+
hash2.update(createHash10("sha256").update(input.files[file]).digest());
|
|
10961
13235
|
}
|
|
10962
13236
|
for (const file of Object.keys(input.metalSources ?? {}).sort()) {
|
|
10963
13237
|
hash2.update("metal-source\n");
|
|
10964
|
-
hash2.update(
|
|
13238
|
+
hash2.update(createHash10("sha256").update(file).digest());
|
|
10965
13239
|
hash2.update(
|
|
10966
|
-
|
|
13240
|
+
createHash10("sha256").update(input.metalSources?.[file] ?? "").digest()
|
|
10967
13241
|
);
|
|
10968
13242
|
}
|
|
10969
13243
|
for (const base of Object.keys(input.resources ?? {}).sort()) {
|
|
10970
|
-
hash2.update(
|
|
13244
|
+
hash2.update(createHash10("sha256").update(base).digest());
|
|
10971
13245
|
hash2.update(
|
|
10972
|
-
|
|
13246
|
+
createHash10("sha256").update(input.resources?.[base] ?? "").digest()
|
|
10973
13247
|
);
|
|
10974
13248
|
}
|
|
10975
13249
|
for (const name2 of Object.keys(input.images ?? {}).sort()) {
|
|
10976
13250
|
const image = input.images?.[name2];
|
|
10977
13251
|
if (!image) continue;
|
|
10978
|
-
hash2.update(
|
|
10979
|
-
hash2.update(
|
|
10980
|
-
hash2.update(
|
|
13252
|
+
hash2.update(createHash10("sha256").update(name2).digest());
|
|
13253
|
+
hash2.update(createHash10("sha256").update(image.file).digest());
|
|
13254
|
+
hash2.update(createHash10("sha256").update(image.data).digest());
|
|
10981
13255
|
}
|
|
10982
13256
|
for (const file of [...new Set(input.resourcePaths ?? [])].sort()) {
|
|
10983
13257
|
hash2.update("resource-path\n");
|
|
10984
|
-
hash2.update(
|
|
13258
|
+
hash2.update(createHash10("sha256").update(file).digest());
|
|
10985
13259
|
}
|
|
10986
13260
|
hash2.update(
|
|
10987
13261
|
JSON.stringify(
|
|
@@ -10989,13 +13263,18 @@ ${release}
|
|
|
10989
13263
|
)
|
|
10990
13264
|
);
|
|
10991
13265
|
hash2.update(JSON.stringify(input.nativeTargets ?? []));
|
|
13266
|
+
hash2.update(JSON.stringify(input.packageGuestImports ?? []));
|
|
13267
|
+
for (const file of Object.keys(input.packageFiles ?? {}).sort()) {
|
|
13268
|
+
hash2.update(`package-file\0${file}\0`);
|
|
13269
|
+
hash2.update(createHash10("sha256").update(input.packageFiles[file]).digest());
|
|
13270
|
+
}
|
|
10992
13271
|
hash2.update(JSON.stringify(input.objcPeerStartup ?? null));
|
|
10993
13272
|
for (const target of Object.keys(input.libraries ?? {}).sort()) {
|
|
10994
13273
|
hash2.update(`library
|
|
10995
13274
|
${target}
|
|
10996
13275
|
`);
|
|
10997
13276
|
hash2.update(
|
|
10998
|
-
|
|
13277
|
+
createHash10("sha256").update(input.libraries?.[target] ?? "").digest()
|
|
10999
13278
|
);
|
|
11000
13279
|
}
|
|
11001
13280
|
const targets = compileTargets(input);
|
|
@@ -11013,6 +13292,20 @@ ${target}
|
|
|
11013
13292
|
}
|
|
11014
13293
|
return hash2.digest("hex");
|
|
11015
13294
|
}
|
|
13295
|
+
function swiftCrossImportFlags(moduleRoot, distribution) {
|
|
13296
|
+
const overlayRoot = path13.join(
|
|
13297
|
+
moduleRoot,
|
|
13298
|
+
distribution ? "modules" : "cross-import-overlays"
|
|
13299
|
+
);
|
|
13300
|
+
return readdirSync4(overlayRoot, { encoding: "utf8", recursive: true }).filter((file) => file.endsWith(".swiftoverlay")).sort((left, right) => left.localeCompare(right)).flatMap((file) => [
|
|
13301
|
+
"-Xfrontend",
|
|
13302
|
+
"-swift-module-cross-import",
|
|
13303
|
+
"-Xfrontend",
|
|
13304
|
+
path13.basename(path13.dirname(file), ".swiftcrossimport"),
|
|
13305
|
+
"-Xfrontend",
|
|
13306
|
+
path13.join(overlayRoot, file)
|
|
13307
|
+
]);
|
|
13308
|
+
}
|
|
11016
13309
|
function emitSwiftPackageManifest(args) {
|
|
11017
13310
|
const { targets, siblings, moduleRoot, oneModule, spriteKit, distribution } = args;
|
|
11018
13311
|
const reachedFrameworks = /* @__PURE__ */ new Set();
|
|
@@ -11042,22 +13335,11 @@ function emitSwiftPackageManifest(args) {
|
|
|
11042
13335
|
distributionLink.files.set(
|
|
11043
13336
|
distributionLink.path,
|
|
11044
13337
|
objects.map(
|
|
11045
|
-
(object) => `"${
|
|
13338
|
+
(object) => `"${path13.join(moduleRoot, object).replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`
|
|
11046
13339
|
).join("\n") + "\n"
|
|
11047
13340
|
);
|
|
11048
13341
|
}
|
|
11049
|
-
const
|
|
11050
|
-
moduleRoot,
|
|
11051
|
-
distribution ? "modules" : "cross-import-overlays"
|
|
11052
|
-
);
|
|
11053
|
-
const overlayFlags = readdirSync4(overlayRoot, { encoding: "utf8", recursive: true }).filter((file) => file.endsWith(".swiftoverlay")).sort((left, right) => left.localeCompare(right)).flatMap((file) => [
|
|
11054
|
-
"-Xfrontend",
|
|
11055
|
-
"-swift-module-cross-import",
|
|
11056
|
-
"-Xfrontend",
|
|
11057
|
-
path12.basename(path12.dirname(file), ".swiftcrossimport"),
|
|
11058
|
-
"-Xfrontend",
|
|
11059
|
-
path12.join(overlayRoot, file)
|
|
11060
|
-
]).map((flag) => `, ${JSON.stringify(flag)}`).join("");
|
|
13342
|
+
const overlayFlags = swiftCrossImportFlags(moduleRoot, Boolean(distribution)).map((flag) => `, ${JSON.stringify(flag)}`).join("");
|
|
11061
13343
|
const executable = targets.find((target) => target.executable);
|
|
11062
13344
|
if (!executable) throw new Error("swift-compile: no executable target to emit");
|
|
11063
13345
|
const linkedNativeModules = [...args.native?.entries() ?? []].flatMap(
|
|
@@ -11074,7 +13356,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
11074
13356
|
const features = (target.experimentalFeatures ?? []).map((name2) => ` .enableExperimentalFeature(${JSON.stringify(name2)}),`).join("");
|
|
11075
13357
|
const upcoming = (target.upcomingFeatures ?? []).map((name2) => ` .enableUpcomingFeature(${JSON.stringify(name2)}),`).join("");
|
|
11076
13358
|
const upstream = (target.swiftFlags ?? []).map((flag) => `, ${JSON.stringify(flag)}`).join("");
|
|
11077
|
-
const imports = distribution ? `, "-I", ${JSON.stringify(
|
|
13359
|
+
const imports = distribution ? `, "-I", ${JSON.stringify(path13.join(moduleRoot, "modules"))}` : "";
|
|
11078
13360
|
const native = args.native?.get(target.name);
|
|
11079
13361
|
const clang = native && !native.mixed;
|
|
11080
13362
|
const nativeImports = (siblings.get(target.name) ?? []).filter((name2) => args.native?.has(name2) && !args.native.get(name2)?.mixed).map(
|
|
@@ -11091,13 +13373,25 @@ function emitSwiftPackageManifest(args) {
|
|
|
11091
13373
|
...target.executable ? linkedNativeModules : []
|
|
11092
13374
|
])
|
|
11093
13375
|
includeImportContext(dependency);
|
|
11094
|
-
const nativeImportFlags = [...importContext].flatMap((name2) =>
|
|
13376
|
+
const nativeImportFlags = [...importContext].flatMap((name2) => {
|
|
13377
|
+
const dependency = args.native?.get(name2);
|
|
13378
|
+
return dependency?.underlying ? [
|
|
13379
|
+
`-fmodule-map-file=${dependency.underlying.modulemap}`,
|
|
13380
|
+
...dependency.underlying.flags
|
|
13381
|
+
] : dependency?.clang?.importFlags ?? [];
|
|
13382
|
+
}).map((flag) => `, "-Xcc", ${JSON.stringify(flag)}`).join("");
|
|
13383
|
+
const underlying = native?.underlying ? `, "-import-underlying-module", "-Xcc", ${JSON.stringify(`-fmodule-map-file=${native.underlying.modulemap}`)}${native.underlying.flags.map((flag) => `, "-Xcc", ${JSON.stringify(flag)}`).join("")}` : "";
|
|
11095
13384
|
const header = args.headerDirectory && [...args.native?.values() ?? []].some(
|
|
11096
13385
|
(value) => value.late?.producers.includes(target.name)
|
|
11097
|
-
) ? `, "-emit-objc-header-path", ${JSON.stringify(
|
|
11098
|
-
const swiftSettings = `swiftSettings: [.swiftLanguageMode(.v${target.languageMode}),${isolation}${interoperability}${defines}${features}${upcoming}${exports} .unsafeFlags(["-Osize", "-Xfrontend", "-enable-cross-import-overlays"${overlayFlags}${FOUNDATION_IMPLICIT_FLAGS}${oneModule ? ONE_IMPLICIT_FLAGS : ""}${imports}${nativeImports}${nativeImportFlags}${header}${upstream}])]`;
|
|
13386
|
+
) ? `, "-emit-objc-header-path", ${JSON.stringify(path13.join(args.headerDirectory, `${target.name}-${args.objcExports?.modules.has(target.name) ? "Cxx" : "Swift"}.h`))}` : "";
|
|
13387
|
+
const swiftSettings = `swiftSettings: [.swiftLanguageMode(.v${target.languageMode}),${isolation}${interoperability}${defines}${features}${upcoming}${exports} .unsafeFlags(["-Osize", "-Xfrontend", "-enable-cross-import-overlays"${overlayFlags}${FOUNDATION_IMPLICIT_FLAGS}${oneModule ? ONE_IMPLICIT_FLAGS : ""}${imports}${nativeImports}${nativeImportFlags}${underlying}${header}${upstream}])]`;
|
|
11099
13388
|
const deps = [
|
|
11100
13389
|
.../* @__PURE__ */ new Set([
|
|
13390
|
+
...(target.dependencies ?? []).flatMap(
|
|
13391
|
+
(dependency) => dependency.kind === "product" ? [
|
|
13392
|
+
`.product(name: ${JSON.stringify(dependency.name)}, package: ${JSON.stringify(dependency.package)})`
|
|
13393
|
+
] : []
|
|
13394
|
+
),
|
|
11101
13395
|
...target.executable ? [
|
|
11102
13396
|
.../* @__PURE__ */ new Set([
|
|
11103
13397
|
...args.objcExports?.modules ?? [],
|
|
@@ -11138,7 +13432,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
11138
13432
|
linkerSettings: [
|
|
11139
13433
|
${librarySettings.map((setting) => `${setting},`).join("\n ")}
|
|
11140
13434
|
.unsafeFlags([
|
|
11141
|
-
${REACTOR_FLAG}${
|
|
13435
|
+
${REACTOR_FLAG}${executableLinkFlags(args.root)} "-Xlinker", "--export-if-defined=__main_argc_argv"${args.objcExports ? ', "-Xlinker", "--fatal-warnings"' : ""}${library},
|
|
11142
13436
|
]),
|
|
11143
13437
|
.unsafeFlags(["-Xlinker", "--strip-all"], .when(configuration: .release)),
|
|
11144
13438
|
]` : librarySettings.length > 0 ? `,
|
|
@@ -11152,16 +13446,21 @@ function emitSwiftPackageManifest(args) {
|
|
|
11152
13446
|
`cSettings: [${cDefines} .unsafeFlags(${JSON.stringify([...args.nativeFlags?.get(target.name) ?? [], ...native?.flags ?? []])})]`,
|
|
11153
13447
|
`cxxSettings: [${cxxDefines} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.nativeFlags?.get(target.name) ?? [], ...native?.cxxFlags ?? []])})]`
|
|
11154
13448
|
].join(", ");
|
|
13449
|
+
const exclusions = native?.clang ? native.exclude ?? native.lateSources : [
|
|
13450
|
+
...native ? native.exclude ?? native.lateSources : [],
|
|
13451
|
+
...target.exclude ?? []
|
|
13452
|
+
];
|
|
11155
13453
|
return [
|
|
11156
13454
|
` ${kind}(`,
|
|
11157
13455
|
` name: "${target.name}",`,
|
|
11158
13456
|
` dependencies: [${deps}],`,
|
|
11159
13457
|
` path: ${JSON.stringify(native?.clang ? "." : target.path)},`,
|
|
11160
|
-
...
|
|
13458
|
+
...exclusions.length ? [` exclude: ${JSON.stringify(exclusions)},`] : [],
|
|
11161
13459
|
...native?.clang ? [
|
|
11162
|
-
` sources: ${JSON.stringify(native.clang.sources.map((source) =>
|
|
11163
|
-
` publicHeadersPath: ${JSON.stringify(
|
|
13460
|
+
` sources: ${JSON.stringify(native.clang.sources.map((source) => path13.posix.join(native.path, source)))},`,
|
|
13461
|
+
` publicHeadersPath: ${JSON.stringify(path13.posix.dirname(native.clang.modulemap))},`
|
|
11164
13462
|
] : native?.flags ? [` sources: ${JSON.stringify(native.sources)},`] : [],
|
|
13463
|
+
...!native?.clang && target.publicHeadersPath !== void 0 ? [` publicHeadersPath: ${JSON.stringify(target.publicHeadersPath)},`] : [],
|
|
11165
13464
|
// the native backend supplies dependency module maps without their
|
|
11166
13465
|
// compiled modules. textual c++ includes keep those dependencies usable.
|
|
11167
13466
|
` ${clang ? nativeSettings : swiftSettings}${link}`,
|
|
@@ -11176,7 +13475,12 @@ function emitSwiftPackageManifest(args) {
|
|
|
11176
13475
|
"let package = Package(",
|
|
11177
13476
|
' name: "app",',
|
|
11178
13477
|
` products: [.executable(name: "${executable.name}", targets: ["${executable.name}"])],`,
|
|
11179
|
-
` dependencies: [${
|
|
13478
|
+
` dependencies: [${[
|
|
13479
|
+
...distribution ? [] : [`.package(path: ${JSON.stringify(moduleRoot)})`],
|
|
13480
|
+
...[...args.packages ?? []].map(
|
|
13481
|
+
([name2, directory]) => `.package(name: ${JSON.stringify(name2)}, path: ${JSON.stringify(directory)})`
|
|
13482
|
+
)
|
|
13483
|
+
].join(", ")}],`,
|
|
11180
13484
|
" targets: [",
|
|
11181
13485
|
...targets.map(stanza),
|
|
11182
13486
|
...args.objcExports ? [
|
|
@@ -11201,8 +13505,8 @@ function emitSwiftPackageManifest(args) {
|
|
|
11201
13505
|
` .target(name: ${JSON.stringify(group.name)},`,
|
|
11202
13506
|
` dependencies: ${JSON.stringify(native.mixed ? [] : [name2, ...late.producers])},`,
|
|
11203
13507
|
` path: ${JSON.stringify(native.clang ? "." : native.path)},`,
|
|
11204
|
-
` sources: ${JSON.stringify(native.clang ? group.sources.map((source) =>
|
|
11205
|
-
` publicHeadersPath: ${JSON.stringify(native.clang ?
|
|
13508
|
+
` sources: ${JSON.stringify(native.clang ? group.sources.map((source) => path13.posix.join(native.path, source)) : group.sources)},`,
|
|
13509
|
+
` publicHeadersPath: ${JSON.stringify(native.clang ? path13.posix.dirname(native.clang.modulemap) : "include")},`,
|
|
11206
13510
|
` cSettings: [${macroSettings(owner?.cDefines)} .unsafeFlags(${JSON.stringify([...args.nativeFlags?.get(name2) ?? [], ...group.flags])})],`,
|
|
11207
13511
|
` cxxSettings: [${macroSettings(owner?.cxxDefines)} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.nativeFlags?.get(name2) ?? [], "-I", native.includeDirectory, "-I", args.headerDirectory, ...group.cxxFlags])})]),`
|
|
11208
13512
|
]) : [];
|
|
@@ -11217,7 +13521,7 @@ function syncSwiftTree(base, files) {
|
|
|
11217
13521
|
mkdirSync2(base, { recursive: true });
|
|
11218
13522
|
const walk = (dir) => {
|
|
11219
13523
|
for (const entry of readdirSync4(dir, { withFileTypes: true })) {
|
|
11220
|
-
const full =
|
|
13524
|
+
const full = path13.join(dir, entry.name);
|
|
11221
13525
|
if (dir === base && entry.name === ".build") continue;
|
|
11222
13526
|
if (entry.isDirectory()) walk(full);
|
|
11223
13527
|
else if (!files.has(full)) rmSync3(full, { force: true });
|
|
@@ -11225,9 +13529,9 @@ function syncSwiftTree(base, files) {
|
|
|
11225
13529
|
};
|
|
11226
13530
|
walk(base);
|
|
11227
13531
|
for (const [full, contents] of files) {
|
|
11228
|
-
if (
|
|
13532
|
+
if (existsSync3(full) && (typeof contents === "string" ? readFileSync7(full, "utf8") === contents : readFileSync7(full).equals(contents)))
|
|
11229
13533
|
continue;
|
|
11230
|
-
mkdirSync2(
|
|
13534
|
+
mkdirSync2(path13.dirname(full), { recursive: true });
|
|
11231
13535
|
writeFileSync3(full, contents);
|
|
11232
13536
|
}
|
|
11233
13537
|
}
|
|
@@ -14996,25 +17300,237 @@ function swiftSourceClosure(files, roots) {
|
|
|
14996
17300
|
return Object.fromEntries(Object.entries(files).filter(([file]) => included.has(file)));
|
|
14997
17301
|
}
|
|
14998
17302
|
function swiftApplicationEntry(file, source) {
|
|
14999
|
-
const {
|
|
17303
|
+
const code = [...swiftConditionalLines(swiftCodeMask(source))].map(({ line, active }) => active === false ? " ".repeat(line.length) : line).join("\n");
|
|
17304
|
+
const { tokens } = swiftCodeScan(code);
|
|
15000
17305
|
let depth = 0;
|
|
15001
17306
|
for (const at of tokens) {
|
|
15002
17307
|
if (source[at] === "{") depth++;
|
|
15003
17308
|
else if (source[at] === "}") depth--;
|
|
15004
17309
|
else if (depth === 0 && /^@(?:main|UIApplicationMain)\b/.test(source.slice(at)))
|
|
15005
17310
|
return true;
|
|
15006
|
-
else if (depth === 0 &&
|
|
17311
|
+
else if (depth === 0 && path13.basename(file) === "main.swift" && /^UIApplicationMain\s*\(/.test(source.slice(at)))
|
|
15007
17312
|
return true;
|
|
15008
17313
|
}
|
|
15009
17314
|
return false;
|
|
15010
17315
|
}
|
|
17316
|
+
var emptyMacroEnvironment = {
|
|
17317
|
+
defines: /* @__PURE__ */ new Map(),
|
|
17318
|
+
predefines: /* @__PURE__ */ new Map(),
|
|
17319
|
+
targetDefined: /* @__PURE__ */ new Set()
|
|
17320
|
+
};
|
|
17321
|
+
function cMacroDefined(name2, env) {
|
|
17322
|
+
if (env.defines.has(name2) || env.predefines.has(name2)) return true;
|
|
17323
|
+
if (env.targetDefined.has(name2)) return void 0;
|
|
17324
|
+
return false;
|
|
17325
|
+
}
|
|
17326
|
+
function cMacroIntOrTrue(value) {
|
|
17327
|
+
if (value === void 0) return true;
|
|
17328
|
+
if (/^0[xX][0-9a-fA-F]+[uUlL]*$/.test(value) || /^\d+[uUlL]*$/.test(value))
|
|
17329
|
+
return Number.parseInt(value) !== 0;
|
|
17330
|
+
return void 0;
|
|
17331
|
+
}
|
|
17332
|
+
function cMacroBareValue(name2, env) {
|
|
17333
|
+
if (env.defines.has(name2)) return cMacroIntOrTrue(env.defines.get(name2));
|
|
17334
|
+
if (env.predefines.has(name2)) return cMacroIntOrTrue(env.predefines.get(name2));
|
|
17335
|
+
if (env.targetDefined.has(name2)) return void 0;
|
|
17336
|
+
return false;
|
|
17337
|
+
}
|
|
17338
|
+
function cMacroNegated(name2, env) {
|
|
17339
|
+
return kleeneNot(cMacroDefined(name2, env));
|
|
17340
|
+
}
|
|
17341
|
+
function cConditionValue(expression, env) {
|
|
17342
|
+
let i = 0;
|
|
17343
|
+
const skipSpaces = () => {
|
|
17344
|
+
while (i < expression.length && /\s/.test(expression[i])) i++;
|
|
17345
|
+
};
|
|
17346
|
+
const parseOr = () => {
|
|
17347
|
+
let value2 = parseAnd();
|
|
17348
|
+
for (; ; ) {
|
|
17349
|
+
skipSpaces();
|
|
17350
|
+
if (!expression.startsWith("||", i)) return value2;
|
|
17351
|
+
i += 2;
|
|
17352
|
+
value2 = kleeneOr(value2, parseAnd());
|
|
17353
|
+
}
|
|
17354
|
+
};
|
|
17355
|
+
const parseAnd = () => {
|
|
17356
|
+
let value2 = parseUnary();
|
|
17357
|
+
for (; ; ) {
|
|
17358
|
+
skipSpaces();
|
|
17359
|
+
if (!expression.startsWith("&&", i)) return value2;
|
|
17360
|
+
i += 2;
|
|
17361
|
+
value2 = kleeneAnd(value2, parseUnary());
|
|
17362
|
+
}
|
|
17363
|
+
};
|
|
17364
|
+
const parseUnary = () => {
|
|
17365
|
+
skipSpaces();
|
|
17366
|
+
if (expression[i] === "!") {
|
|
17367
|
+
i++;
|
|
17368
|
+
return kleeneNot(parseUnary());
|
|
17369
|
+
}
|
|
17370
|
+
if (expression[i] === "(") {
|
|
17371
|
+
i++;
|
|
17372
|
+
const value2 = parseOr();
|
|
17373
|
+
skipSpaces();
|
|
17374
|
+
return expression[i] === ")" ? (i++, value2) : void 0;
|
|
17375
|
+
}
|
|
17376
|
+
const defined = /^defined\b/.exec(expression.slice(i));
|
|
17377
|
+
if (defined) {
|
|
17378
|
+
i += defined[0].length;
|
|
17379
|
+
skipSpaces();
|
|
17380
|
+
const parenthesized = expression[i] === "(";
|
|
17381
|
+
if (parenthesized) {
|
|
17382
|
+
i++;
|
|
17383
|
+
skipSpaces();
|
|
17384
|
+
}
|
|
17385
|
+
const name3 = /^\w+/.exec(expression.slice(i))?.[0];
|
|
17386
|
+
if (!name3) return void 0;
|
|
17387
|
+
i += name3.length;
|
|
17388
|
+
skipSpaces();
|
|
17389
|
+
if (parenthesized) {
|
|
17390
|
+
if (expression[i] !== ")") return void 0;
|
|
17391
|
+
i++;
|
|
17392
|
+
}
|
|
17393
|
+
return cMacroDefined(name3, env);
|
|
17394
|
+
}
|
|
17395
|
+
const literal = /^(0[xX][0-9a-fA-F]+|\d+)[uUlL]*/.exec(expression.slice(i));
|
|
17396
|
+
if (literal) {
|
|
17397
|
+
i += literal[0].length;
|
|
17398
|
+
return Number(literal[1]) !== 0;
|
|
17399
|
+
}
|
|
17400
|
+
const name2 = /^\w+/.exec(expression.slice(i))?.[0];
|
|
17401
|
+
if (!name2) return void 0;
|
|
17402
|
+
i += name2.length;
|
|
17403
|
+
return cMacroBareValue(name2, env);
|
|
17404
|
+
};
|
|
17405
|
+
const value = parseOr();
|
|
17406
|
+
skipSpaces();
|
|
17407
|
+
return i === expression.length ? value : void 0;
|
|
17408
|
+
}
|
|
17409
|
+
function cActiveCode(code, env) {
|
|
17410
|
+
const kept = [];
|
|
17411
|
+
const stack = [];
|
|
17412
|
+
let active = true;
|
|
17413
|
+
for (const line of code.replace(/\\\r?\n/g, "").split("\n")) {
|
|
17414
|
+
const directive = /^\s*#\s*(if|ifdef|ifndef|elif|elifdef|elifndef|else|endif)\b(.*)$/.exec(line);
|
|
17415
|
+
if (!directive) {
|
|
17416
|
+
if (active) kept.push(line);
|
|
17417
|
+
continue;
|
|
17418
|
+
}
|
|
17419
|
+
const keyword = directive[1];
|
|
17420
|
+
const rest = directive[2].trim();
|
|
17421
|
+
if (keyword === "if" || keyword === "ifdef" || keyword === "ifndef") {
|
|
17422
|
+
const name2 = /^\w+$/.exec(rest)?.[0];
|
|
17423
|
+
const value = keyword === "if" ? cConditionValue(rest, env) : name2 === void 0 ? void 0 : keyword === "ifdef" ? cMacroDefined(name2, env) : cMacroNegated(name2, env);
|
|
17424
|
+
stack.push({ parent: active, taken: value === true });
|
|
17425
|
+
active = active && value !== false;
|
|
17426
|
+
} else if (keyword === "endif") {
|
|
17427
|
+
active = stack.pop()?.parent ?? true;
|
|
17428
|
+
} else if (stack.length === 0) {
|
|
17429
|
+
continue;
|
|
17430
|
+
} else {
|
|
17431
|
+
const frame = stack[stack.length - 1];
|
|
17432
|
+
if (keyword === "else") {
|
|
17433
|
+
active = frame.parent && !frame.taken;
|
|
17434
|
+
frame.taken = true;
|
|
17435
|
+
} else {
|
|
17436
|
+
const name2 = /^\w+$/.exec(rest)?.[0];
|
|
17437
|
+
const value = keyword === "elif" ? cConditionValue(rest, env) : name2 === void 0 ? void 0 : keyword === "elifdef" ? cMacroDefined(name2, env) : cMacroNegated(name2, env);
|
|
17438
|
+
const branch = !frame.taken && value !== false;
|
|
17439
|
+
if (branch && value === true) frame.taken = true;
|
|
17440
|
+
active = frame.parent && branch;
|
|
17441
|
+
}
|
|
17442
|
+
}
|
|
17443
|
+
}
|
|
17444
|
+
return kept.join("\n");
|
|
17445
|
+
}
|
|
17446
|
+
function stripCCode(source) {
|
|
17447
|
+
let code = "";
|
|
17448
|
+
let i = 0;
|
|
17449
|
+
while (i < source.length) {
|
|
17450
|
+
if (source.startsWith("//", i)) {
|
|
17451
|
+
const end = source.indexOf("\n", i);
|
|
17452
|
+
i = end === -1 ? source.length : end;
|
|
17453
|
+
} else if (source.startsWith("/*", i)) {
|
|
17454
|
+
const end = source.indexOf("*/", i + 2);
|
|
17455
|
+
i = end === -1 ? source.length : end + 2;
|
|
17456
|
+
} else if (source[i] === '"' || source[i] === "'") {
|
|
17457
|
+
const quote = source[i];
|
|
17458
|
+
i++;
|
|
17459
|
+
while (i < source.length && source[i] !== quote) i += source[i] === "\\" ? 2 : 1;
|
|
17460
|
+
i++;
|
|
17461
|
+
} else {
|
|
17462
|
+
code += source[i];
|
|
17463
|
+
i++;
|
|
17464
|
+
}
|
|
17465
|
+
}
|
|
17466
|
+
return code;
|
|
17467
|
+
}
|
|
17468
|
+
function swiftCDefinedNames(sources) {
|
|
17469
|
+
const names = /* @__PURE__ */ new Set();
|
|
17470
|
+
for (const source of sources)
|
|
17471
|
+
for (const line of stripCCode(source).split("\n")) {
|
|
17472
|
+
const name2 = /^\s*#\s*define\s+([A-Za-z_]\w*)/.exec(line)?.[1];
|
|
17473
|
+
if (name2) names.add(name2);
|
|
17474
|
+
}
|
|
17475
|
+
return names;
|
|
17476
|
+
}
|
|
17477
|
+
var cPredefineTable = swift_c_predefines_default;
|
|
17478
|
+
var cPredefineCache = /* @__PURE__ */ new Map();
|
|
17479
|
+
function swiftCPredefines(language) {
|
|
17480
|
+
const cached = cPredefineCache.get(language);
|
|
17481
|
+
if (cached) return cached;
|
|
17482
|
+
const predefines = /* @__PURE__ */ new Map();
|
|
17483
|
+
for (const [name2, value] of Object.entries(cPredefineTable.languages[language]))
|
|
17484
|
+
predefines.set(name2, value ?? void 0);
|
|
17485
|
+
cPredefineCache.set(language, predefines);
|
|
17486
|
+
return predefines;
|
|
17487
|
+
}
|
|
17488
|
+
function swiftCMainEntry(file, source, env = emptyMacroEnvironment) {
|
|
17489
|
+
if (!isSwiftNativeTranslationUnit(file)) return false;
|
|
17490
|
+
const code = cActiveCode(stripCCode(source), env);
|
|
17491
|
+
const linkage = [];
|
|
17492
|
+
let scanned = 0;
|
|
17493
|
+
for (const match of code.matchAll(/^\s*(?:int\s+|void\s+)?main\s*\(/gm)) {
|
|
17494
|
+
while (scanned < match.index) {
|
|
17495
|
+
if (code[scanned] === "{") {
|
|
17496
|
+
let start = scanned;
|
|
17497
|
+
while (start > 0 && code[start - 1] !== ";" && code[start - 1] !== "{" && code[start - 1] !== "}")
|
|
17498
|
+
start--;
|
|
17499
|
+
linkage.push(/(?:^|[^\w])extern\s*$/.test(code.slice(start, scanned)));
|
|
17500
|
+
} else if (code[scanned] === "}") linkage.pop();
|
|
17501
|
+
scanned += 1;
|
|
17502
|
+
}
|
|
17503
|
+
if (linkage.some((open) => !open)) continue;
|
|
17504
|
+
let depth = 1;
|
|
17505
|
+
let index = match.index + match[0].length;
|
|
17506
|
+
for (; index < code.length && depth > 0; index++) {
|
|
17507
|
+
if (code[index] === "(") depth++;
|
|
17508
|
+
else if (code[index] === ")") depth--;
|
|
17509
|
+
}
|
|
17510
|
+
if (depth > 0) continue;
|
|
17511
|
+
for (; index < code.length; index++) {
|
|
17512
|
+
const char = code[index];
|
|
17513
|
+
if (char === "{") return true;
|
|
17514
|
+
if (char === ";" || char === "}") break;
|
|
17515
|
+
if (char === "(" || char === "[") {
|
|
17516
|
+
const closer = char === "(" ? ")" : "]";
|
|
17517
|
+
let nested = 1;
|
|
17518
|
+
while (nested > 0 && ++index < code.length) {
|
|
17519
|
+
if (code[index] === char) nested++;
|
|
17520
|
+
else if (code[index] === closer) nested--;
|
|
17521
|
+
}
|
|
17522
|
+
}
|
|
17523
|
+
}
|
|
17524
|
+
}
|
|
17525
|
+
return false;
|
|
17526
|
+
}
|
|
15011
17527
|
function installObjcPeerStartup(input, targets, compiled) {
|
|
15012
17528
|
const startup = input.objcPeerStartup;
|
|
15013
17529
|
if (!startup) return;
|
|
15014
17530
|
function fail(detail) {
|
|
15015
17531
|
throw new Error(`Objective-C peer startup: ${detail}`);
|
|
15016
17532
|
}
|
|
15017
|
-
if ((input.nativeTargets?.length ?? 0) > 0 || Object.keys(input.files).some(
|
|
17533
|
+
if ((input.nativeTargets?.length ?? 0) > 0 || Object.keys(input.files).some(isSwiftNativeTranslationUnit))
|
|
15018
17534
|
fail("original native source targets require constructor provenance before admission");
|
|
15019
17535
|
validateObjcPeerStartupLibraries(input.libraries ?? {});
|
|
15020
17536
|
const executables = targets.filter((target2) => target2.executable);
|
|
@@ -15036,7 +17552,7 @@ function installObjcPeerStartup(input, targets, compiled) {
|
|
|
15036
17552
|
);
|
|
15037
17553
|
if (entries.length === 0) {
|
|
15038
17554
|
const source2 = compiled.get(input.entry);
|
|
15039
|
-
if (
|
|
17555
|
+
if (path13.basename(input.entry) !== "main.swift" || source2 === void 0)
|
|
15040
17556
|
fail("requires main.swift or a supported @main App/UIApplicationDelegate entry");
|
|
15041
17557
|
compiled.set(input.entry, `_peachRegisterObjcPeers()
|
|
15042
17558
|
${source2}`);
|
|
@@ -15172,26 +17688,26 @@ function prepareSwiftDependency(source, destination) {
|
|
|
15172
17688
|
for (const entry of readdirSync4(from, { withFileTypes: true })) {
|
|
15173
17689
|
if (entry.name === ".git" || entry.name === ".build" || entry.name === ".swiftpm")
|
|
15174
17690
|
continue;
|
|
15175
|
-
const file =
|
|
17691
|
+
const file = path13.join(from, entry.name);
|
|
15176
17692
|
if (entry.isDirectory()) gather(file);
|
|
15177
17693
|
else if (entry.isFile() && entry.name.endsWith(".swift"))
|
|
15178
|
-
origins[
|
|
17694
|
+
origins[path13.relative(source, file)] = readFileSync7(file, "utf8");
|
|
15179
17695
|
}
|
|
15180
17696
|
};
|
|
15181
17697
|
gather(source);
|
|
15182
|
-
const manifest =
|
|
15183
|
-
const targets =
|
|
17698
|
+
const manifest = path13.join(source, "Package.swift");
|
|
17699
|
+
const targets = existsSync3(manifest) ? swiftManifestTargets(readFileSync7(manifest, "utf8")) : [];
|
|
15184
17700
|
const compiled = compiledSwiftSources(origins, targets);
|
|
15185
17701
|
const copy = (from, to) => {
|
|
15186
17702
|
mkdirSync2(to, { recursive: true });
|
|
15187
17703
|
for (const entry of readdirSync4(from, { withFileTypes: true })) {
|
|
15188
17704
|
if (entry.name === ".git" || entry.name === ".build" || entry.name === ".swiftpm")
|
|
15189
17705
|
continue;
|
|
15190
|
-
const file =
|
|
15191
|
-
const target =
|
|
17706
|
+
const file = path13.join(from, entry.name);
|
|
17707
|
+
const target = path13.join(to, entry.name);
|
|
15192
17708
|
if (entry.isDirectory()) copy(file, target);
|
|
15193
17709
|
else if (entry.isFile() && entry.name.endsWith(".swift"))
|
|
15194
|
-
writeFileSync3(target, compiled.get(
|
|
17710
|
+
writeFileSync3(target, compiled.get(path13.relative(source, file)));
|
|
15195
17711
|
else cpSync(file, target, { verbatimSymlinks: true });
|
|
15196
17712
|
}
|
|
15197
17713
|
};
|
|
@@ -15203,6 +17719,14 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15203
17719
|
throw new Error("swift compile input has invalid Objective-C peer startup metadata");
|
|
15204
17720
|
if (input.nativeTargets !== void 0 && !isSwiftNativeTargets(input.nativeTargets))
|
|
15205
17721
|
throw new Error("swift compile input has invalid original clang target inputs");
|
|
17722
|
+
if (input.packageFiles !== void 0 && !isSwiftPackageFiles(input.packageFiles))
|
|
17723
|
+
throw new Error("swift compile input has invalid original package files");
|
|
17724
|
+
const packages = input.packageFiles ? swiftManifestPackages(input.files["Package.swift"] ?? "") : /* @__PURE__ */ new Map();
|
|
17725
|
+
for (const directory of packages.values())
|
|
17726
|
+
if (!isSwiftResourcePath(directory) || !Object.hasOwn(input.packageFiles ?? {}, `${directory}/Package.swift`))
|
|
17727
|
+
throw new Error(
|
|
17728
|
+
`swift compile input has no transported package manifest for ${directory}`
|
|
17729
|
+
);
|
|
15206
17730
|
if (input.resourceBundles !== void 0 && !isSwiftResourceBundles(input.resourceBundles))
|
|
15207
17731
|
throw new Error("swift compile input has invalid target bundle assignments");
|
|
15208
17732
|
const resourceTargets = swiftManifestTargets(
|
|
@@ -15213,7 +17737,7 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15213
17737
|
const targets = distribution && compileTargets(input).length === 0 ? [
|
|
15214
17738
|
{
|
|
15215
17739
|
name: "App",
|
|
15216
|
-
path:
|
|
17740
|
+
path: path13.relative(layout.root, layout.sources),
|
|
15217
17741
|
executable: true,
|
|
15218
17742
|
languageMode: 5,
|
|
15219
17743
|
mainActorIsolation: false,
|
|
@@ -15234,8 +17758,8 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15234
17758
|
);
|
|
15235
17759
|
if (target) swiftTargets.add(target.name);
|
|
15236
17760
|
}
|
|
15237
|
-
const headerDirectory =
|
|
15238
|
-
const headerModuleDirectory =
|
|
17761
|
+
const headerDirectory = path13.join(layout.root, ".build", "peach-cxx-headers");
|
|
17762
|
+
const headerModuleDirectory = path13.join(
|
|
15239
17763
|
layout.root,
|
|
15240
17764
|
".build",
|
|
15241
17765
|
"peach-objc-export-modules"
|
|
@@ -15245,14 +17769,14 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15245
17769
|
let checkedToolchain;
|
|
15246
17770
|
const nativeToolchain = () => {
|
|
15247
17771
|
if (checkedToolchain) return checkedToolchain;
|
|
15248
|
-
const pin = distribution ?? JSON.parse(
|
|
17772
|
+
const pin = distribution ?? JSON.parse(readFileSync7(path13.join(moduleRoot, "toolchain.json"), "utf8"));
|
|
15249
17773
|
checkedToolchain = swiftToolchain(pin.release, swiftModuleSdk(moduleRoot));
|
|
15250
17774
|
return checkedToolchain;
|
|
15251
17775
|
};
|
|
15252
17776
|
const deploymentTarget = (name2) => input.nativeTargets?.find((value) => value.name === name2)?.deploymentTarget ?? "16.0";
|
|
15253
17777
|
const targetStagedFiles = /* @__PURE__ */ new Map();
|
|
15254
17778
|
const stageTargetFile = (target, file, contents, options) => {
|
|
15255
|
-
const relative =
|
|
17779
|
+
const relative = path13.relative(layout.root, file).split(path13.sep).join(path13.posix.sep);
|
|
15256
17780
|
const prior = files.has(file) ? files.get(file) : Object.hasOwn(input.files, relative) ? input.files[relative] : void 0;
|
|
15257
17781
|
if (!options?.allowExisting && prior !== void 0)
|
|
15258
17782
|
throw new Error(`target ${target} already contains generated output ${relative}`);
|
|
@@ -15281,9 +17805,9 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15281
17805
|
else files.set(file, prior);
|
|
15282
17806
|
}
|
|
15283
17807
|
targetStagedFiles.delete(target.name);
|
|
15284
|
-
if (entries.some(([file]) =>
|
|
17808
|
+
if (entries.some(([file]) => isSwiftNativeTranslationUnit(file)) && (swift || input.nativeTargets?.some((value) => value.name === target.name))) {
|
|
15285
17809
|
if (!swift) {
|
|
15286
|
-
const unprepared =
|
|
17810
|
+
const unprepared = path13.join(
|
|
15287
17811
|
layout.root,
|
|
15288
17812
|
target.path,
|
|
15289
17813
|
"PeachUnprepared.generated.swift"
|
|
@@ -15298,7 +17822,7 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15298
17822
|
native.set(target.name, {
|
|
15299
17823
|
mixed: true,
|
|
15300
17824
|
path: target.path,
|
|
15301
|
-
includeDirectory:
|
|
17825
|
+
includeDirectory: path13.join(layout.root, target.path, "include"),
|
|
15302
17826
|
sources: [],
|
|
15303
17827
|
lateSources: [],
|
|
15304
17828
|
exclude: entries.filter(([file]) => !file.endsWith(".swift") && !file.endsWith(".metal")).map(([file]) => file.slice(prefix.length))
|
|
@@ -15310,26 +17834,27 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15310
17834
|
const contents = input.files[file];
|
|
15311
17835
|
if (contents === void 0)
|
|
15312
17836
|
throw new Error(`missing original Objective-C header ${file}`);
|
|
15313
|
-
const destination =
|
|
15314
|
-
mkdirSync2(
|
|
17837
|
+
const destination = path13.join(layout.root, file);
|
|
17838
|
+
mkdirSync2(path13.dirname(destination), { recursive: true });
|
|
15315
17839
|
writeFileSync3(destination, contents);
|
|
15316
17840
|
files.set(destination, contents);
|
|
15317
17841
|
}
|
|
17842
|
+
if (!settings.flattensPublicHeaders) continue;
|
|
15318
17843
|
for (const header of settings.publicHeaders) {
|
|
15319
|
-
const destination =
|
|
17844
|
+
const destination = path13.join(headerDirectory, settings.name, path13.basename(header));
|
|
15320
17845
|
if (files.has(destination))
|
|
15321
17846
|
throw new Error(`duplicate product header ${destination}`);
|
|
15322
|
-
const contents = `#import ${JSON.stringify(
|
|
17847
|
+
const contents = `#import ${JSON.stringify(path13.join(layout.root, header))}
|
|
15323
17848
|
`;
|
|
15324
17849
|
files.set(destination, contents);
|
|
15325
|
-
mkdirSync2(
|
|
17850
|
+
mkdirSync2(path13.dirname(destination), { recursive: true });
|
|
15326
17851
|
writeFileSync3(destination, contents);
|
|
15327
17852
|
}
|
|
15328
17853
|
}
|
|
15329
17854
|
const nativeTargets = input.nativeTargets ?? [];
|
|
15330
|
-
const fromInputRoot = (file) => file.startsWith(`${SWIFT_NATIVE_INPUT_ROOT}/`) ?
|
|
17855
|
+
const fromInputRoot = (file) => file.startsWith(`${SWIFT_NATIVE_INPUT_ROOT}/`) ? path13.join(layout.root, file.slice(SWIFT_NATIVE_INPUT_ROOT.length + 1)) : file;
|
|
15331
17856
|
const headerSearch = writeXcodeHeaderSearch(
|
|
15332
|
-
|
|
17857
|
+
path13.join(layout.root, ".build", "peach-xcode-headers"),
|
|
15333
17858
|
nativeTargets.map((settings) => ({
|
|
15334
17859
|
headerMaps: settings.headerMaps.map((map2) => ({
|
|
15335
17860
|
flag: map2.flag,
|
|
@@ -15340,19 +17865,19 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15340
17865
|
})),
|
|
15341
17866
|
productHeaders: Object.fromEntries(
|
|
15342
17867
|
Object.entries(settings.productHeaders).map(([product, file]) => [
|
|
15343
|
-
|
|
15344
|
-
|
|
17868
|
+
path13.join(layout.root, product),
|
|
17869
|
+
path13.join(layout.root, file)
|
|
15345
17870
|
])
|
|
15346
17871
|
),
|
|
15347
17872
|
userHeaderSearchPaths: settings.userHeaderSearchPaths.map(
|
|
15348
|
-
(directory) =>
|
|
17873
|
+
(directory) => path13.join(layout.root, directory)
|
|
15349
17874
|
)
|
|
15350
17875
|
}))
|
|
15351
17876
|
);
|
|
15352
17877
|
for (const target of targets) {
|
|
15353
17878
|
const prefix = target.path === "." ? "" : `${target.path}/`;
|
|
15354
17879
|
const entries = targetEntries(target);
|
|
15355
|
-
const units = entries.filter(([file]) =>
|
|
17880
|
+
const units = entries.filter(([file]) => isSwiftNativeTranslationUnit(file));
|
|
15356
17881
|
if (units.length === 0) continue;
|
|
15357
17882
|
const includes = `${prefix}include/`;
|
|
15358
17883
|
const consumers = /* @__PURE__ */ new Map();
|
|
@@ -15368,7 +17893,7 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15368
17893
|
if (producer && targets.some((value) => value.name === producer))
|
|
15369
17894
|
producers2.add(producer);
|
|
15370
17895
|
const local = [
|
|
15371
|
-
|
|
17896
|
+
path13.posix.join(path13.posix.dirname(file), include2),
|
|
15372
17897
|
`${includes}${include2}`
|
|
15373
17898
|
].find((candidate) => input.files[candidate] !== void 0);
|
|
15374
17899
|
if (local) {
|
|
@@ -15398,19 +17923,16 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15398
17923
|
const headers = settings.headers;
|
|
15399
17924
|
const roots2 = settings.bridgingHeader ? [settings.bridgingHeader] : settings.publicHeaders;
|
|
15400
17925
|
for (const file of headers) {
|
|
15401
|
-
const destination =
|
|
15402
|
-
mkdirSync2(
|
|
17926
|
+
const destination = path13.join(layout.root, file);
|
|
17927
|
+
mkdirSync2(path13.dirname(destination), { recursive: true });
|
|
15403
17928
|
writeFileSync3(destination, input.files[file]);
|
|
15404
17929
|
}
|
|
15405
|
-
const search = [
|
|
15406
|
-
|
|
15407
|
-
|
|
15408
|
-
...headers.map((file) => path12.posix.dirname(file))
|
|
15409
|
-
])
|
|
15410
|
-
].flatMap((dir) => ["-I", path12.join(layout.root, dir)]);
|
|
17930
|
+
const search = [.../* @__PURE__ */ new Set([...settings?.headerSearchPaths ?? []])].flatMap(
|
|
17931
|
+
(dir) => ["-I", path13.join(layout.root, dir)]
|
|
17932
|
+
);
|
|
15411
17933
|
const toolchainBin = nativeToolchain();
|
|
15412
17934
|
const sdkHeaders = materializeObjcSdk(
|
|
15413
|
-
|
|
17935
|
+
path13.join(layout.root, ".build", "peach-objc-sdk")
|
|
15414
17936
|
);
|
|
15415
17937
|
const stageFlags = (flags2, sdkInclude) => flags2.map(
|
|
15416
17938
|
(flag) => flag.replaceAll(SWIFT_NATIVE_INPUT_ROOT, layout.root).replaceAll(SWIFT_NATIVE_SDK_INCLUDE, sdkInclude)
|
|
@@ -15421,27 +17943,27 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15421
17943
|
...search,
|
|
15422
17944
|
...(settings?.frameworkSearchPaths ?? []).flatMap((dir) => [
|
|
15423
17945
|
"-F",
|
|
15424
|
-
|
|
17946
|
+
path13.join(layout.root, dir)
|
|
15425
17947
|
]),
|
|
15426
17948
|
"-I",
|
|
15427
17949
|
headerDirectory
|
|
15428
17950
|
];
|
|
15429
17951
|
const flags = stageFlags(
|
|
15430
17952
|
originalFlags,
|
|
15431
|
-
|
|
17953
|
+
path13.join(swiftSdkPaths(moduleRoot, toolchainBin).sysroot, "include")
|
|
15432
17954
|
);
|
|
15433
|
-
const prefixHeader = settings?.prefixHeader ? ["-include",
|
|
17955
|
+
const prefixHeader = settings?.prefixHeader ? ["-include", path13.join(layout.root, settings.prefixHeader)] : [];
|
|
15434
17956
|
const bundleName = entries.some(([file]) => file.endsWith(".swift")) ? void 0 : swiftObjCResourceBundleName({
|
|
15435
17957
|
target: target.name,
|
|
15436
17958
|
path: target.path,
|
|
15437
17959
|
resources: resourceTargets.find((candidate) => candidate.name === target.name)?.resources ?? false,
|
|
15438
17960
|
usesBundleMacro: entries.some(
|
|
15439
|
-
([file, contents]) => /\.(?:
|
|
17961
|
+
([file, contents]) => (isSwiftNativeTranslationUnit(file) || /\.(?:h|hpp|hh|hxx)$/.test(file)) && /\bSWIFTPM_MODULE_BUNDLE\b/.test(contents)
|
|
15440
17962
|
),
|
|
15441
17963
|
bundles: input.resourceBundles
|
|
15442
17964
|
});
|
|
15443
17965
|
const accessor = bundleName === void 0 ? void 0 : swiftObjCResourceAccessor(bundleName);
|
|
15444
|
-
const accessorHeader =
|
|
17966
|
+
const accessorHeader = path13.join(
|
|
15445
17967
|
layout.root,
|
|
15446
17968
|
target.path,
|
|
15447
17969
|
OBJC_RESOURCE_ACCESSOR_HEADER
|
|
@@ -15452,23 +17974,23 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15452
17974
|
const nativeUnits = accessor ? [...units, [accessorUnit, accessor.body]] : units;
|
|
15453
17975
|
const unitSource = (file) => {
|
|
15454
17976
|
const relative = file.slice(prefix.length);
|
|
15455
|
-
return relative.split("/").some((part) => part.startsWith(".")) ?
|
|
17977
|
+
return relative.split("/").some((part) => part.startsWith(".")) ? path13.posix.join(HIDDEN_UNITS, relative.replaceAll(/(^|\/)\./g, "$1%2E")) : relative;
|
|
15456
17978
|
};
|
|
15457
17979
|
const accessorFlags = accessor ? ["-include", accessorHeader] : [];
|
|
15458
17980
|
let nativeC = !roots2.length && !entries.some(([file]) => file.endsWith(".swift")) && !units.some(([file]) => /\.mm?$/.test(file));
|
|
15459
17981
|
if (roots2.length) {
|
|
15460
|
-
const sourceHeaders =
|
|
17982
|
+
const sourceHeaders = path13.join(
|
|
15461
17983
|
layout.root,
|
|
15462
17984
|
".build",
|
|
15463
17985
|
"peach-objc-originals",
|
|
15464
17986
|
target.name
|
|
15465
17987
|
);
|
|
15466
17988
|
mkdirSync2(sourceHeaders, { recursive: true });
|
|
15467
|
-
const modulemap =
|
|
17989
|
+
const modulemap = path13.join(sourceHeaders, "module.modulemap");
|
|
15468
17990
|
writeFileSync3(
|
|
15469
17991
|
modulemap,
|
|
15470
17992
|
`module ${swiftTargetModuleName(target.name)} {
|
|
15471
|
-
${roots2.map((file) => `header ${JSON.stringify(
|
|
17993
|
+
${roots2.map((file) => `header ${JSON.stringify(path13.join(layout.root, file))}`).join("\n")}
|
|
15472
17994
|
export *
|
|
15473
17995
|
}
|
|
15474
17996
|
`
|
|
@@ -15480,11 +18002,11 @@ export *
|
|
|
15480
18002
|
modulemap
|
|
15481
18003
|
},
|
|
15482
18004
|
toolchainBin,
|
|
15483
|
-
|
|
15484
|
-
|
|
15485
|
-
|
|
18005
|
+
path13.join(moduleRoot, "ios-simulator-stdlib"),
|
|
18006
|
+
path13.join(layout.root, ".build", "peach-objc-sdk"),
|
|
18007
|
+
path13.join(layout.root, ".build", "peach-objc-imports", target.name),
|
|
15486
18008
|
{
|
|
15487
|
-
flags: stageFlags(originalFlags,
|
|
18009
|
+
flags: stageFlags(originalFlags, path13.join(sdkHeaders, "usr/include")),
|
|
15488
18010
|
target: `arm64-apple-ios${deploymentTarget(target.name)}-simulator`
|
|
15489
18011
|
}
|
|
15490
18012
|
);
|
|
@@ -15503,7 +18025,7 @@ export *
|
|
|
15503
18025
|
if (Array.isArray(children)) for (const child of children) declarations(child);
|
|
15504
18026
|
};
|
|
15505
18027
|
declarations(view.clangAST);
|
|
15506
|
-
nativeC = !
|
|
18028
|
+
nativeC = !objcDeclarations && view.graphs.every(
|
|
15507
18029
|
(graph) => graph.symbols.every(
|
|
15508
18030
|
(symbol) => !symbol.identifier.precise.includes("c:objc(") && !(symbol.declarationFragments ?? []).some(
|
|
15509
18031
|
(fragment) => fragment.preciseIdentifier?.includes("c:objc(")
|
|
@@ -15523,7 +18045,7 @@ export *
|
|
|
15523
18045
|
imports.set(target.name, {
|
|
15524
18046
|
view,
|
|
15525
18047
|
classes: [...foreignTypes.values()],
|
|
15526
|
-
headers: roots2.map((file) =>
|
|
18048
|
+
headers: roots2.map((file) => path13.join(layout.root, file)),
|
|
15527
18049
|
foreignTypes
|
|
15528
18050
|
});
|
|
15529
18051
|
}
|
|
@@ -15532,29 +18054,29 @@ export *
|
|
|
15532
18054
|
for (const [file, contents] of nativeUnits) {
|
|
15533
18055
|
const origin = settings?.sourceDirectories[file];
|
|
15534
18056
|
if (origin) {
|
|
15535
|
-
const original =
|
|
15536
|
-
mkdirSync2(
|
|
18057
|
+
const original = path13.join(layout.root, origin, path13.posix.basename(file));
|
|
18058
|
+
mkdirSync2(path13.dirname(original), { recursive: true });
|
|
15537
18059
|
stageTargetFile(target.name, original, contents, { allowExisting: true });
|
|
15538
18060
|
}
|
|
15539
18061
|
const source = unitSource(file);
|
|
15540
18062
|
if (source !== file.slice(prefix.length))
|
|
15541
18063
|
stageTargetFile(
|
|
15542
18064
|
target.name,
|
|
15543
|
-
|
|
18065
|
+
path13.join(layout.root, target.path, source),
|
|
15544
18066
|
contents,
|
|
15545
18067
|
{
|
|
15546
18068
|
allowExisting: true
|
|
15547
18069
|
}
|
|
15548
18070
|
);
|
|
15549
18071
|
const perFile = [
|
|
15550
|
-
...origin ? ["-iquote",
|
|
18072
|
+
...origin ? ["-iquote", path13.join(layout.root, origin)] : [],
|
|
15551
18073
|
...stageFlags(
|
|
15552
18074
|
settings?.fileFlags[file] ?? [],
|
|
15553
|
-
|
|
18075
|
+
path13.join(swiftSdkPaths(moduleRoot, toolchainBin).sysroot, "include")
|
|
15554
18076
|
)
|
|
15555
18077
|
];
|
|
15556
18078
|
const cxx = /\.(?:cc|cpp|cxx|mm)$/.test(file);
|
|
15557
|
-
const identity =
|
|
18079
|
+
const identity = createHash10("sha256").update(
|
|
15558
18080
|
JSON.stringify([
|
|
15559
18081
|
cxx,
|
|
15560
18082
|
perFile,
|
|
@@ -15571,7 +18093,7 @@ export *
|
|
|
15571
18093
|
...accessorFlags,
|
|
15572
18094
|
...stageFlags(
|
|
15573
18095
|
cxx ? settings.cxxFlags : [],
|
|
15574
|
-
|
|
18096
|
+
path13.join(swiftSdkPaths(moduleRoot, toolchainBin).sysroot, "include")
|
|
15575
18097
|
),
|
|
15576
18098
|
...perFile
|
|
15577
18099
|
]
|
|
@@ -15586,12 +18108,12 @@ export *
|
|
|
15586
18108
|
flags: [...flags, "-fobjc-arc"],
|
|
15587
18109
|
cxxFlags: [...flags, "-fobjc-arc"]
|
|
15588
18110
|
});
|
|
15589
|
-
const include2 =
|
|
18111
|
+
const include2 = path13.join(layout.root, target.path, "include");
|
|
15590
18112
|
if (accessor) {
|
|
15591
18113
|
stageTargetFile(target.name, accessorHeader, accessor.header);
|
|
15592
18114
|
stageTargetFile(
|
|
15593
18115
|
target.name,
|
|
15594
|
-
|
|
18116
|
+
path13.join(layout.root, accessorUnit),
|
|
15595
18117
|
accessor.body
|
|
15596
18118
|
);
|
|
15597
18119
|
}
|
|
@@ -15620,6 +18142,42 @@ export *
|
|
|
15620
18142
|
});
|
|
15621
18143
|
continue;
|
|
15622
18144
|
}
|
|
18145
|
+
if (nativeC && entries.some(([file]) => file.endsWith(".swift"))) {
|
|
18146
|
+
const modulemaps = Object.entries(settings.productHeaders).filter(
|
|
18147
|
+
([product2]) => product2.endsWith(".modulemap")
|
|
18148
|
+
);
|
|
18149
|
+
if (modulemaps.length !== 1)
|
|
18150
|
+
throw new Error(`target ${target.name} requires one original module map`);
|
|
18151
|
+
const [product, original] = modulemaps[0];
|
|
18152
|
+
const contents = input.files[original];
|
|
18153
|
+
if (contents === void 0)
|
|
18154
|
+
throw new Error(`missing original module map ${original}`);
|
|
18155
|
+
stageTargetFile(target.name, path13.join(layout.root, product), contents, {
|
|
18156
|
+
allowExisting: true
|
|
18157
|
+
});
|
|
18158
|
+
const include3 = path13.join(layout.root, target.path, "include");
|
|
18159
|
+
stageTargetFile(
|
|
18160
|
+
target.name,
|
|
18161
|
+
path13.join(include3, "module.modulemap"),
|
|
18162
|
+
`module ${target.name}ImplementationDeclarations { export * }
|
|
18163
|
+
`
|
|
18164
|
+
);
|
|
18165
|
+
native.set(target.name, {
|
|
18166
|
+
mixed: true,
|
|
18167
|
+
path: target.path,
|
|
18168
|
+
includeDirectory: include3,
|
|
18169
|
+
sources: nativeUnits.map(([file]) => unitSource(file)),
|
|
18170
|
+
lateSources: nativeUnits.map(([file]) => unitSource(file)),
|
|
18171
|
+
exclude: entries.filter(([file]) => !file.endsWith(".swift") && !file.endsWith(".metal")).map(([file]) => file.slice(prefix.length)).concat("include"),
|
|
18172
|
+
underlying: { modulemap: path13.join(layout.root, product), flags },
|
|
18173
|
+
groups: [...groups.values()],
|
|
18174
|
+
late: {
|
|
18175
|
+
name: `${target.name}SwiftImplementation`,
|
|
18176
|
+
producers: nativeUnits.some(([file]) => /\.mm?$/.test(file)) ? [target.name] : []
|
|
18177
|
+
}
|
|
18178
|
+
});
|
|
18179
|
+
continue;
|
|
18180
|
+
}
|
|
15623
18181
|
if (nativeC) {
|
|
15624
18182
|
const modulemaps = Object.entries(settings.productHeaders).filter(
|
|
15625
18183
|
([product2]) => product2.endsWith("/Modules/module.modulemap")
|
|
@@ -15630,12 +18188,12 @@ export *
|
|
|
15630
18188
|
const contents = input.files[original];
|
|
15631
18189
|
if (contents === void 0)
|
|
15632
18190
|
throw new Error(`missing original module map ${original}`);
|
|
15633
|
-
stageTargetFile(target.name,
|
|
18191
|
+
stageTargetFile(target.name, path13.join(layout.root, product), contents);
|
|
15634
18192
|
const [owner, ...implementations] = groups.values();
|
|
15635
18193
|
if (!owner) throw new Error(`target ${target.name} has no original units`);
|
|
15636
18194
|
native.set(target.name, {
|
|
15637
18195
|
path: target.path,
|
|
15638
|
-
includeDirectory:
|
|
18196
|
+
includeDirectory: path13.join(layout.root, path13.dirname(product)),
|
|
15639
18197
|
sources: nativeUnits.map(([file]) => unitSource(file)),
|
|
15640
18198
|
lateSources: implementations.flatMap((group) => group.sources),
|
|
15641
18199
|
exclude: [],
|
|
@@ -15656,7 +18214,7 @@ export *
|
|
|
15656
18214
|
}
|
|
15657
18215
|
stageTargetFile(
|
|
15658
18216
|
target.name,
|
|
15659
|
-
|
|
18217
|
+
path13.join(include2, "module.modulemap"),
|
|
15660
18218
|
`module ${target.name}ImplementationDeclarations { export * }
|
|
15661
18219
|
`
|
|
15662
18220
|
);
|
|
@@ -15692,7 +18250,7 @@ export *
|
|
|
15692
18250
|
}
|
|
15693
18251
|
native.set(target.name, {
|
|
15694
18252
|
path: target.path,
|
|
15695
|
-
includeDirectory:
|
|
18253
|
+
includeDirectory: path13.join(layout.root, includes),
|
|
15696
18254
|
sources: units.map(([file]) => file.slice(prefix.length)),
|
|
15697
18255
|
lateSources: late.map(([file]) => file.slice(prefix.length)),
|
|
15698
18256
|
...late.length > 0 ? {
|
|
@@ -15710,7 +18268,7 @@ export *
|
|
|
15710
18268
|
([file]) => file.startsWith(includes) && /\.(?:h|hpp|hh|hxx)$/.test(file) && consumers.get(file).size === 0
|
|
15711
18269
|
);
|
|
15712
18270
|
files.set(
|
|
15713
|
-
|
|
18271
|
+
path13.join(layout.root, includes, "module.modulemap"),
|
|
15714
18272
|
[
|
|
15715
18273
|
`module ${target.name} {`,
|
|
15716
18274
|
...roots.map(
|
|
@@ -15723,13 +18281,13 @@ export *
|
|
|
15723
18281
|
);
|
|
15724
18282
|
}
|
|
15725
18283
|
if (native.size > 0) mkdirSync2(headerDirectory, { recursive: true });
|
|
15726
|
-
const modulePlan =
|
|
18284
|
+
const modulePlan = createHash10("sha256").update(
|
|
15727
18285
|
swiftModuleInputFiles(moduleRoot).join("\n")
|
|
15728
18286
|
);
|
|
15729
18287
|
if (!distribution) {
|
|
15730
|
-
modulePlan.update(
|
|
18288
|
+
modulePlan.update(readFileSync7(path13.join(moduleRoot, "Package.swift")));
|
|
15731
18289
|
}
|
|
15732
|
-
const resourcePlan =
|
|
18290
|
+
const resourcePlan = createHash10("sha256").update(
|
|
15733
18291
|
JSON.stringify(
|
|
15734
18292
|
resourceTargets.filter((target) => target.resources).map((target) => [
|
|
15735
18293
|
target.name,
|
|
@@ -15790,7 +18348,11 @@ export *
|
|
|
15790
18348
|
continue;
|
|
15791
18349
|
}
|
|
15792
18350
|
const original = imports.get(name2);
|
|
15793
|
-
if (!exported && !original)
|
|
18351
|
+
if (!exported && !original) {
|
|
18352
|
+
if (native.get(name2)?.lateSources.some((file) => /\.mm?$/.test(file)))
|
|
18353
|
+
rootOwner ?? (rootOwner = targetEntries(target).find(([file]) => file.endsWith(".swift"))?.[0]);
|
|
18354
|
+
continue;
|
|
18355
|
+
}
|
|
15794
18356
|
let generated;
|
|
15795
18357
|
try {
|
|
15796
18358
|
generated = original && swiftObjCImports(original.view.graphs, {
|
|
@@ -15808,27 +18370,27 @@ export *
|
|
|
15808
18370
|
objcModules.add(name2);
|
|
15809
18371
|
rootOwner ?? (rootOwner = exported ? [...exported.swift.keys()][0] : `${prefix}PeachObjCImports.generated.swift`);
|
|
15810
18372
|
files.set(
|
|
15811
|
-
|
|
18373
|
+
path13.join(headerDirectory, `${name2}-Swift.h`),
|
|
15812
18374
|
exported?.header ?? "#pragma once\n"
|
|
15813
18375
|
);
|
|
15814
18376
|
files.set(
|
|
15815
|
-
|
|
18377
|
+
path13.join(headerDirectory, name2, `${name2}-Swift.h`),
|
|
15816
18378
|
`#include "../${name2}-Swift.h"
|
|
15817
18379
|
`
|
|
15818
18380
|
);
|
|
15819
18381
|
files.set(
|
|
15820
|
-
|
|
18382
|
+
path13.join(headerModuleDirectory, name2, "module.modulemap"),
|
|
15821
18383
|
`module ${swiftTargetModuleName(name2)} {
|
|
15822
18384
|
${[
|
|
15823
|
-
|
|
15824
|
-
...(input.nativeTargets?.find((target2) => target2.name === name2)?.publicHeaders ?? []).map((header) =>
|
|
18385
|
+
path13.join(headerDirectory, `${name2}-Swift.h`),
|
|
18386
|
+
...(input.nativeTargets?.find((target2) => target2.name === name2)?.publicHeaders ?? []).map((header) => path13.join(layout.root, header))
|
|
15825
18387
|
].map((header) => ` header ${JSON.stringify(header)}`).join("\n")}
|
|
15826
18388
|
export *
|
|
15827
18389
|
}
|
|
15828
18390
|
`
|
|
15829
18391
|
);
|
|
15830
18392
|
files.set(
|
|
15831
|
-
|
|
18393
|
+
path13.join(layout.root, "PeachObjCExports", `${name2}.m`),
|
|
15832
18394
|
exported?.implementation ?? `#include "${name2}-Cxx.h"
|
|
15833
18395
|
`
|
|
15834
18396
|
);
|
|
@@ -15840,13 +18402,13 @@ ${[
|
|
|
15840
18402
|
if (generated) {
|
|
15841
18403
|
const register = `_peach_objc_imports_${swiftTargetModuleName(name2)}`;
|
|
15842
18404
|
files.set(
|
|
15843
|
-
|
|
18405
|
+
path13.join(layout.root, target.path, "PeachObjCImports.generated.swift"),
|
|
15844
18406
|
generated.swift + generated.registration + `
|
|
15845
18407
|
@_cdecl("${register}") public func __peachRegisterOriginalObjC() { ${generated.registerFunction}() }
|
|
15846
18408
|
`
|
|
15847
18409
|
);
|
|
15848
18410
|
files.set(
|
|
15849
|
-
|
|
18411
|
+
path13.join(layout.root, target.path, "PeachObjCImports.generated.m"),
|
|
15850
18412
|
generated.objc
|
|
15851
18413
|
);
|
|
15852
18414
|
registrations.push(`${register}();`);
|
|
@@ -15904,7 +18466,7 @@ ${[
|
|
|
15904
18466
|
exclude: []
|
|
15905
18467
|
});
|
|
15906
18468
|
files.set(
|
|
15907
|
-
|
|
18469
|
+
path13.join(layout.root, `PeachApplication/${name2}/Entry.swift`),
|
|
15908
18470
|
`import ${swiftTargetModuleName(target.name)}
|
|
15909
18471
|
@main struct __PeachApplicationEntry { @MainActor static func main() { __peachRunApplication() } }
|
|
15910
18472
|
`
|
|
@@ -15912,9 +18474,9 @@ ${[
|
|
|
15912
18474
|
}
|
|
15913
18475
|
const nativeFlags = (() => {
|
|
15914
18476
|
if (native.size === 0) return void 0;
|
|
15915
|
-
const headers = materializeObjcSdk(
|
|
18477
|
+
const headers = materializeObjcSdk(path13.join(layout.root, ".build", "peach-objc-sdk"));
|
|
15916
18478
|
const moduleMaps = rootOwner ? [...objcModules].map(
|
|
15917
|
-
(name2) => `-fmodule-map-file=${
|
|
18479
|
+
(name2) => `-fmodule-map-file=${path13.join(headerModuleDirectory, name2, "module.modulemap")}`
|
|
15918
18480
|
) : [];
|
|
15919
18481
|
return new Map(
|
|
15920
18482
|
targets.map((target) => {
|
|
@@ -15931,6 +18493,8 @@ ${[
|
|
|
15931
18493
|
"-fobjc-exceptions",
|
|
15932
18494
|
"-fexceptions",
|
|
15933
18495
|
"-fwasm-exceptions",
|
|
18496
|
+
"-mllvm",
|
|
18497
|
+
"-wasm-enable-sjlj",
|
|
15934
18498
|
"-fobjc-arc",
|
|
15935
18499
|
"-fblocks",
|
|
15936
18500
|
...objcSdkIntakeFlags(headers, nativeToolchain(), minimum),
|
|
@@ -15957,7 +18521,7 @@ ${[
|
|
|
15957
18521
|
throw new Error(
|
|
15958
18522
|
"Swift Objective-C export target conflicts with application sources"
|
|
15959
18523
|
);
|
|
15960
|
-
const ownerFile =
|
|
18524
|
+
const ownerFile = path13.join(layout.root, rootOwner);
|
|
15961
18525
|
const ownerSource = compiled.get(rootOwner) ?? files.get(ownerFile);
|
|
15962
18526
|
if (typeof ownerSource !== "string")
|
|
15963
18527
|
throw new Error("Objective-C root registration has no owning Swift source");
|
|
@@ -15974,11 +18538,11 @@ public func __peachObjcExportRoot() { _objcRegisterPeerClass(NSObject.self, nati
|
|
|
15974
18538
|
);
|
|
15975
18539
|
if (compiled.has(rootOwner)) compiled.set(rootOwner, files.get(ownerFile).toString());
|
|
15976
18540
|
files.set(
|
|
15977
|
-
|
|
18541
|
+
path13.join(layout.root, "PeachObjCExports", "include", "module.modulemap"),
|
|
15978
18542
|
"module PeachSwiftObjCExports { export * }\n"
|
|
15979
18543
|
);
|
|
15980
18544
|
files.set(
|
|
15981
|
-
|
|
18545
|
+
path13.join(layout.root, "PeachObjCExports", "root.m"),
|
|
15982
18546
|
[
|
|
15983
18547
|
"#import <Foundation/Foundation.h>",
|
|
15984
18548
|
"extern void _peach_objc_ensure_exports(void);",
|
|
@@ -16005,10 +18569,10 @@ public func __peachObjcExportRoot() { _objcRegisterPeerClass(NSObject.self, nati
|
|
|
16005
18569
|
if (targets.length === 0) {
|
|
16006
18570
|
for (const [file, contents] of Object.entries(input.files)) {
|
|
16007
18571
|
if (file === "Package.swift") continue;
|
|
16008
|
-
files.set(
|
|
18572
|
+
files.set(path13.join(layout.sources, file), compiled.get(file) ?? contents);
|
|
16009
18573
|
}
|
|
16010
|
-
let manifest =
|
|
16011
|
-
|
|
18574
|
+
let manifest = readFileSync7(
|
|
18575
|
+
path13.join(moduleRoot, "scripts/contrast-app-Package.swift"),
|
|
16012
18576
|
"utf8"
|
|
16013
18577
|
).replaceAll("__SOOTSIM_SWIFT_PACKAGE__", moduleRoot);
|
|
16014
18578
|
const reactor = ` ${REACTOR_FLAG}`;
|
|
@@ -16016,7 +18580,7 @@ public func __peachObjcExportRoot() { _objcRegisterPeerClass(NSObject.self, nati
|
|
|
16016
18580
|
throw new Error(
|
|
16017
18581
|
"scripts/contrast-app-Package.swift lost the executable linker line"
|
|
16018
18582
|
);
|
|
16019
|
-
manifest = manifest.replace(reactor, `${reactor}${
|
|
18583
|
+
manifest = manifest.replace(reactor, `${reactor}${executableLinkFlags(layout.root)}`);
|
|
16020
18584
|
const optionalProducts = swiftTargetDependencies(input.files, [{ name: "App", path: "." }]).get("App") ?? [];
|
|
16021
18585
|
if (optionalProducts.length > 0) {
|
|
16022
18586
|
const product = '.product(name: "SwiftUI", package: "sootsim-swift"),';
|
|
@@ -16052,23 +18616,25 @@ public func __peachObjcExportRoot() { _objcRegisterPeerClass(NSObject.self, nati
|
|
|
16052
18616
|
manifest = manifest.replace(anchor, `${anchor}
|
|
16053
18617
|
${SPRITEKIT_PRODUCT},`);
|
|
16054
18618
|
}
|
|
16055
|
-
files.set(
|
|
18619
|
+
files.set(path13.join(layout.root, "Package.swift"), manifest + moduleFiles);
|
|
16056
18620
|
} else {
|
|
16057
18621
|
const base = layout.multi ? layout.root : layout.sources;
|
|
16058
18622
|
const libraries = /* @__PURE__ */ new Map();
|
|
16059
18623
|
for (const [target, data] of Object.entries(input.libraries ?? {})) {
|
|
16060
|
-
const file =
|
|
18624
|
+
const file = path13.join(layout.root, ".peach-libraries", `lib${target}.a`);
|
|
16061
18625
|
files.set(file, Buffer.from(data, "base64"));
|
|
16062
18626
|
libraries.set(target, file);
|
|
16063
18627
|
}
|
|
16064
18628
|
for (const [file, contents] of Object.entries(input.files)) {
|
|
16065
18629
|
if (file === "Package.swift") continue;
|
|
16066
|
-
files.set(
|
|
18630
|
+
files.set(path13.join(base, file), compiled.get(file) ?? contents);
|
|
16067
18631
|
}
|
|
16068
18632
|
files.set(
|
|
16069
|
-
|
|
18633
|
+
path13.join(layout.root, "Package.swift"),
|
|
16070
18634
|
emitSwiftPackageManifest({
|
|
18635
|
+
root: layout.root,
|
|
16071
18636
|
targets,
|
|
18637
|
+
packages,
|
|
16072
18638
|
native,
|
|
16073
18639
|
objcExports,
|
|
16074
18640
|
nativeFlags,
|
|
@@ -16085,13 +18651,38 @@ public func __peachObjcExportRoot() { _objcRegisterPeerClass(NSObject.self, nati
|
|
|
16085
18651
|
spriteKit: importsSpriteKit(input.files),
|
|
16086
18652
|
distribution: distribution ?? void 0,
|
|
16087
18653
|
distributionLink: {
|
|
16088
|
-
path:
|
|
18654
|
+
path: path13.join(layout.root, ".peach-distribution-objects.rsp"),
|
|
16089
18655
|
files
|
|
16090
18656
|
},
|
|
16091
18657
|
libraries
|
|
16092
18658
|
}) + moduleFiles
|
|
16093
18659
|
);
|
|
16094
18660
|
}
|
|
18661
|
+
for (const [file, bytes] of Object.entries(input.packageFiles ?? {}))
|
|
18662
|
+
files.set(path13.join(layout.root, file), Buffer.from(bytes, "base64"));
|
|
18663
|
+
if (input.packageFiles) {
|
|
18664
|
+
files.set(
|
|
18665
|
+
path13.join(layout.root, ".peach-target-toolset.json"),
|
|
18666
|
+
JSON.stringify({
|
|
18667
|
+
schemaVersion: "1.0",
|
|
18668
|
+
swiftCompiler: {
|
|
18669
|
+
extraCLIOptions: [
|
|
18670
|
+
"-I",
|
|
18671
|
+
distribution ? path13.join(moduleRoot, "modules") : path13.join(layout.root, ".build", WASM_TRIPLE, "release", "Modules"),
|
|
18672
|
+
"-Xfrontend",
|
|
18673
|
+
"-enable-cross-import-overlays",
|
|
18674
|
+
...swiftCrossImportFlags(moduleRoot, Boolean(distribution)),
|
|
18675
|
+
...distribution ? FOUNDATION_IMPLICIT_MODULES.flatMap((module) => [
|
|
18676
|
+
"-Xfrontend",
|
|
18677
|
+
"-import-module",
|
|
18678
|
+
"-Xfrontend",
|
|
18679
|
+
module
|
|
18680
|
+
]) : []
|
|
18681
|
+
]
|
|
18682
|
+
}
|
|
18683
|
+
})
|
|
18684
|
+
);
|
|
18685
|
+
}
|
|
16095
18686
|
for (const target of resourceTargets) {
|
|
16096
18687
|
if (!target.resources) continue;
|
|
16097
18688
|
const bundle = input.resourceBundles?.find(
|
|
@@ -16101,9 +18692,9 @@ public func __peachObjcExportRoot() { _objcRegisterPeerClass(NSObject.self, nati
|
|
|
16101
18692
|
throw new Error(
|
|
16102
18693
|
`swift resource target ${target.name} has no matching bundle assignment`
|
|
16103
18694
|
);
|
|
16104
|
-
const directory = layout.multi ?
|
|
18695
|
+
const directory = layout.multi ? path13.join(layout.root, target.path) : layout.sources;
|
|
16105
18696
|
files.set(
|
|
16106
|
-
|
|
18697
|
+
path13.join(directory, "ResourceBundleAccessor.generated.swift"),
|
|
16107
18698
|
[
|
|
16108
18699
|
"import Foundation",
|
|
16109
18700
|
"",
|
|
@@ -16120,7 +18711,7 @@ public func __peachObjcExportRoot() { _objcRegisterPeerClass(NSObject.self, nati
|
|
|
16120
18711
|
}
|
|
16121
18712
|
for (const [file, source] of compiled)
|
|
16122
18713
|
if (!Object.hasOwn(input.files, file))
|
|
16123
|
-
files.set(
|
|
18714
|
+
files.set(path13.join(layout.multi ? layout.root : layout.sources, file), source);
|
|
16124
18715
|
syncSwiftTree(layout.root, files);
|
|
16125
18716
|
const producers = [
|
|
16126
18717
|
.../* @__PURE__ */ new Set([
|
|
@@ -16142,10 +18733,10 @@ public func __peachObjcExportRoot() { _objcRegisterPeerClass(NSObject.self, nati
|
|
|
16142
18733
|
targetFailures,
|
|
16143
18734
|
...rootOwner && objcExports ? {
|
|
16144
18735
|
objcImplementations: {
|
|
16145
|
-
owner:
|
|
18736
|
+
owner: path13.join(layout.root, rootOwner),
|
|
16146
18737
|
registeredClasses: [...registeredClasses],
|
|
16147
18738
|
units: [...native.values()].flatMap(
|
|
16148
|
-
(value) => value.sources.filter((file) => /\.mm?$/.test(file)).map((file) =>
|
|
18739
|
+
(value) => value.sources.filter((file) => /\.mm?$/.test(file)).map((file) => path13.join(layout.root, value.path, file))
|
|
16149
18740
|
)
|
|
16150
18741
|
}
|
|
16151
18742
|
} : {}
|
|
@@ -16167,15 +18758,15 @@ function outputOf(error) {
|
|
|
16167
18758
|
return error instanceof Error ? error.message : String(error);
|
|
16168
18759
|
}
|
|
16169
18760
|
function builtArtifact(layout) {
|
|
16170
|
-
const binDir =
|
|
16171
|
-
const manifest =
|
|
18761
|
+
const binDir = path13.join(layout.root, ".build", WASM_TRIPLE, "release");
|
|
18762
|
+
const manifest = readFileSync7(path13.join(layout.root, "Package.swift"), "utf8");
|
|
16172
18763
|
const executable = swiftManifestTargets(manifest).find((target) => target.executable);
|
|
16173
18764
|
if (executable === void 0) {
|
|
16174
18765
|
throw new Error("swift-compile: the written manifest names no executable target");
|
|
16175
18766
|
}
|
|
16176
|
-
const file =
|
|
16177
|
-
if (!
|
|
16178
|
-
const found =
|
|
18767
|
+
const file = path13.join(binDir, `${executable.name}.wasm`);
|
|
18768
|
+
if (!existsSync3(file)) {
|
|
18769
|
+
const found = existsSync3(binDir) ? readdirSync4(binDir).filter((name2) => name2.endsWith(".wasm")).sort() : [];
|
|
16179
18770
|
throw new Error(
|
|
16180
18771
|
`swift-compile: the build produced no ${executable.name}.wasm (found: ${found.join(", ") || "none"})`
|
|
16181
18772
|
);
|
|
@@ -16184,7 +18775,7 @@ function builtArtifact(layout) {
|
|
|
16184
18775
|
}
|
|
16185
18776
|
function projectDiagnostic(output, layout, files) {
|
|
16186
18777
|
const base = layout.multi ? layout.root : layout.sources;
|
|
16187
|
-
const prefix = `${base}${
|
|
18778
|
+
const prefix = `${base}${path13.sep}`;
|
|
16188
18779
|
return designTimeDiagnostic(output, files).split("\n").filter((line) => !SWIFTPM_NOISE.test(line)).map((line) => line.startsWith(prefix) ? line.slice(prefix.length) : line).join("\n").trim();
|
|
16189
18780
|
}
|
|
16190
18781
|
var ROOT_LOCKS = Symbol.for("peachsim.swiftCompile.rootLocks");
|
|
@@ -16220,13 +18811,13 @@ function serialize(root, work, signal) {
|
|
|
16220
18811
|
function readCompiledArtifact(directory, hash2) {
|
|
16221
18812
|
try {
|
|
16222
18813
|
const receipt = JSON.parse(
|
|
16223
|
-
|
|
18814
|
+
readFileSync7(path13.join(directory, "artifact.json"), "utf8")
|
|
16224
18815
|
);
|
|
16225
18816
|
if (!receipt || typeof receipt !== "object" || !("hash" in receipt) || receipt.hash !== hash2 || !("icu" in receipt) || typeof receipt.icu !== "string" || !("wasm" in receipt) || typeof receipt.wasm !== "string")
|
|
16226
18817
|
return null;
|
|
16227
|
-
const bytes =
|
|
16228
|
-
const gzip2 =
|
|
16229
|
-
if (
|
|
18818
|
+
const bytes = readFileSync7(path13.join(directory, "app.wasm"));
|
|
18819
|
+
const gzip2 = readFileSync7(path13.join(directory, "icu.gz"));
|
|
18820
|
+
if (createHash10("sha256").update(bytes).digest("hex") !== receipt.wasm || createHash10("sha256").update(gzip2).digest("hex") !== receipt.icu || bytes.length < 8 || bytes.readUInt32LE(0) !== 1836278016 || bytes.readUInt32LE(4) !== 1)
|
|
16230
18821
|
return null;
|
|
16231
18822
|
return { hash: hash2, bytes, icu: { sha256: receipt.icu, gzip: gzip2 } };
|
|
16232
18823
|
} catch (error) {
|
|
@@ -16236,22 +18827,22 @@ function readCompiledArtifact(directory, hash2) {
|
|
|
16236
18827
|
}
|
|
16237
18828
|
}
|
|
16238
18829
|
function saveCompiledArtifact(root, artifact) {
|
|
16239
|
-
const directory =
|
|
18830
|
+
const directory = path13.join(root, "artifact");
|
|
16240
18831
|
mkdirSync2(directory, { recursive: true });
|
|
16241
|
-
const pending = mkdtempSync2(
|
|
18832
|
+
const pending = mkdtempSync2(path13.join(root, ".artifact-"));
|
|
16242
18833
|
try {
|
|
16243
|
-
writeFileSync3(
|
|
16244
|
-
writeFileSync3(
|
|
18834
|
+
writeFileSync3(path13.join(pending, "app.wasm"), artifact.bytes);
|
|
18835
|
+
writeFileSync3(path13.join(pending, "icu.gz"), artifact.icu.gzip);
|
|
16245
18836
|
writeFileSync3(
|
|
16246
|
-
|
|
18837
|
+
path13.join(pending, "artifact.json"),
|
|
16247
18838
|
JSON.stringify({
|
|
16248
18839
|
hash: artifact.hash,
|
|
16249
|
-
wasm:
|
|
18840
|
+
wasm: createHash10("sha256").update(artifact.bytes).digest("hex"),
|
|
16250
18841
|
icu: artifact.icu.sha256
|
|
16251
18842
|
})
|
|
16252
18843
|
);
|
|
16253
18844
|
for (const file of ["app.wasm", "icu.gz", "artifact.json"]) {
|
|
16254
|
-
renameSync(
|
|
18845
|
+
renameSync(path13.join(pending, file), path13.join(directory, file));
|
|
16255
18846
|
}
|
|
16256
18847
|
} finally {
|
|
16257
18848
|
rmSync3(pending, { recursive: true, force: true });
|
|
@@ -16273,16 +18864,16 @@ function renewSharedArtifact(sharedRoot) {
|
|
|
16273
18864
|
function pruneSharedArtifacts(parent, keep) {
|
|
16274
18865
|
const entries = [];
|
|
16275
18866
|
for (const name2 of readdirSync4(parent)) {
|
|
16276
|
-
const directory =
|
|
18867
|
+
const directory = path13.join(parent, name2);
|
|
16277
18868
|
if (name2.startsWith(RETIRED_PREFIX)) {
|
|
16278
18869
|
rmSync3(directory, { recursive: true, force: true });
|
|
16279
18870
|
continue;
|
|
16280
18871
|
}
|
|
16281
18872
|
try {
|
|
16282
18873
|
let bytes = 0;
|
|
16283
|
-
for (const file of readdirSync4(
|
|
18874
|
+
for (const file of readdirSync4(path13.join(directory, "artifact"))) {
|
|
16284
18875
|
try {
|
|
16285
|
-
bytes += statSync(
|
|
18876
|
+
bytes += statSync(path13.join(directory, "artifact", file)).size;
|
|
16286
18877
|
} catch (error) {
|
|
16287
18878
|
if (!vanished(error)) throw error;
|
|
16288
18879
|
}
|
|
@@ -16297,9 +18888,9 @@ function pruneSharedArtifacts(parent, keep) {
|
|
|
16297
18888
|
if (total <= SHARED_ARTIFACT_BUDGET_BYTES) break;
|
|
16298
18889
|
if (entry.directory === keep || Date.now() - entry.used < SHARED_ARTIFACT_GRACE_MS)
|
|
16299
18890
|
continue;
|
|
16300
|
-
const retired =
|
|
18891
|
+
const retired = path13.join(
|
|
16301
18892
|
parent,
|
|
16302
|
-
`${RETIRED_PREFIX}${process.pid}-${
|
|
18893
|
+
`${RETIRED_PREFIX}${process.pid}-${path13.basename(entry.directory)}`
|
|
16303
18894
|
);
|
|
16304
18895
|
try {
|
|
16305
18896
|
if (statSync(entry.directory).mtimeMs !== entry.used) continue;
|
|
@@ -16315,7 +18906,7 @@ function pruneSharedArtifacts(parent, keep) {
|
|
|
16315
18906
|
function saveSharedArtifact(sharedRoot, artifact) {
|
|
16316
18907
|
saveCompiledArtifact(sharedRoot, artifact);
|
|
16317
18908
|
renewSharedArtifact(sharedRoot);
|
|
16318
|
-
pruneSharedArtifacts(
|
|
18909
|
+
pruneSharedArtifacts(path13.dirname(sharedRoot), sharedRoot);
|
|
16319
18910
|
}
|
|
16320
18911
|
var retainedArtifacts = /* @__PURE__ */ new Map();
|
|
16321
18912
|
function retain(root, artifact) {
|
|
@@ -16332,14 +18923,14 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16332
18923
|
options.signal?.throwIfAborted();
|
|
16333
18924
|
mkdirSync2(options.buildRoot, { recursive: true });
|
|
16334
18925
|
const root = realpathSync(options.buildRoot);
|
|
16335
|
-
const moduleRoot =
|
|
18926
|
+
const moduleRoot = path13.resolve(options.moduleRoot);
|
|
16336
18927
|
const layout = {
|
|
16337
18928
|
root,
|
|
16338
|
-
sources:
|
|
18929
|
+
sources: path13.join(root, "Sources", "App"),
|
|
16339
18930
|
multi: compileTargets(input).length > 0
|
|
16340
18931
|
};
|
|
16341
18932
|
const hash2 = swiftArtifactHash(input, options.release, moduleRoot);
|
|
16342
|
-
const sharedRoot =
|
|
18933
|
+
const sharedRoot = path13.join(rnxHomeDir(), "cache", "swift-projects", hash2);
|
|
16343
18934
|
const report = (message) => {
|
|
16344
18935
|
console.error(`[swift-project ${hash2.slice(0, 16)}] ${message}`);
|
|
16345
18936
|
options.onStage?.(message);
|
|
@@ -16353,8 +18944,8 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16353
18944
|
report("reusing memory artifact");
|
|
16354
18945
|
return retain(root, retained);
|
|
16355
18946
|
}
|
|
16356
|
-
const cached = readCompiledArtifact(
|
|
16357
|
-
const previous = cached ?? readCompiledArtifact(
|
|
18947
|
+
const cached = readCompiledArtifact(path13.join(sharedRoot, "artifact"), hash2);
|
|
18948
|
+
const previous = cached ?? readCompiledArtifact(path13.join(root, "artifact"), hash2);
|
|
16358
18949
|
if (previous) {
|
|
16359
18950
|
if (cached) renewSharedArtifact(sharedRoot);
|
|
16360
18951
|
else saveSharedArtifact(sharedRoot, previous);
|
|
@@ -16363,8 +18954,8 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16363
18954
|
}
|
|
16364
18955
|
if (process.platform === "darwin" && process.env.TM_SESSION && !admittedMacBuilderSlot() && process.env.CI !== "true" && moduleRoot === sourceSwiftCheckout() && !swiftDistributionAt(moduleRoot)) {
|
|
16365
18956
|
const requestRoot = mkdtempSync2(`${root}.builder-request-`);
|
|
16366
|
-
const output =
|
|
16367
|
-
const request =
|
|
18957
|
+
const output = path13.join(requestRoot, "output");
|
|
18958
|
+
const request = path13.join(requestRoot, "request.json");
|
|
16368
18959
|
writeFileSync3(
|
|
16369
18960
|
request,
|
|
16370
18961
|
JSON.stringify({
|
|
@@ -16378,12 +18969,12 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16378
18969
|
})
|
|
16379
18970
|
);
|
|
16380
18971
|
try {
|
|
16381
|
-
const repo =
|
|
18972
|
+
const repo = path13.resolve(moduleRoot, "../..");
|
|
16382
18973
|
report("requesting builder admission or cached result");
|
|
16383
18974
|
await runCompiler(
|
|
16384
18975
|
"bun",
|
|
16385
18976
|
[
|
|
16386
|
-
|
|
18977
|
+
path13.join(repo, "scripts/build/swift-project.ts"),
|
|
16387
18978
|
"--request",
|
|
16388
18979
|
request,
|
|
16389
18980
|
"--output",
|
|
@@ -16417,7 +19008,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16417
19008
|
return withSwiftRootLock(
|
|
16418
19009
|
root,
|
|
16419
19010
|
async (lease) => {
|
|
16420
|
-
const built = readCompiledArtifact(
|
|
19011
|
+
const built = readCompiledArtifact(path13.join(sharedRoot, "artifact"), hash2);
|
|
16421
19012
|
if (built) {
|
|
16422
19013
|
report("reusing verified disk artifact");
|
|
16423
19014
|
return retain(root, built);
|
|
@@ -16426,8 +19017,8 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16426
19017
|
const unprepared = preparation.targetFailures.map(
|
|
16427
19018
|
(failure) => `error: target ${failure}`
|
|
16428
19019
|
);
|
|
16429
|
-
const swift =
|
|
16430
|
-
if (!
|
|
19020
|
+
const swift = path13.join(options.toolchainBin, "swift");
|
|
19021
|
+
if (!existsSync3(swift)) {
|
|
16431
19022
|
throw new Error(
|
|
16432
19023
|
`swift-compile: no swift.org toolchain at ${options.toolchainBin}; install ${options.release} and its matching wasm sdk`
|
|
16433
19024
|
);
|
|
@@ -16441,6 +19032,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16441
19032
|
);
|
|
16442
19033
|
const sdk = swiftModuleSdk(moduleRoot).wasmSdkId;
|
|
16443
19034
|
const icu = swiftIcuAsset(options.toolchainBin, sdk);
|
|
19035
|
+
writeSwiftAutolinkLinker(root, options.toolchainBin);
|
|
16444
19036
|
const buildArgs = [
|
|
16445
19037
|
"build",
|
|
16446
19038
|
...swiftPackageCacheOptions(),
|
|
@@ -16453,6 +19045,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16453
19045
|
...swiftSdkOptions(),
|
|
16454
19046
|
"--swift-sdk",
|
|
16455
19047
|
sdk,
|
|
19048
|
+
...input.packageFiles ? ["--toolset", path13.join(root, ".peach-target-toolset.json")] : [],
|
|
16456
19049
|
"-c",
|
|
16457
19050
|
"release",
|
|
16458
19051
|
"-Xswiftc",
|
|
@@ -16461,11 +19054,17 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16461
19054
|
"-num-threads",
|
|
16462
19055
|
"-Xswiftc",
|
|
16463
19056
|
BUILD_JOBS,
|
|
16464
|
-
...macroPlugins.flatMap((plugin) => [
|
|
19057
|
+
...macroPlugins.libraries.flatMap((plugin) => [
|
|
16465
19058
|
"-Xswiftc",
|
|
16466
19059
|
"-load-plugin-library",
|
|
16467
19060
|
"-Xswiftc",
|
|
16468
19061
|
plugin
|
|
19062
|
+
]),
|
|
19063
|
+
...macroPlugins.executables.flatMap((plugin) => [
|
|
19064
|
+
"-Xswiftc",
|
|
19065
|
+
"-load-plugin-executable",
|
|
19066
|
+
"-Xswiftc",
|
|
19067
|
+
`${plugin}#ExpoModulesMacros`
|
|
16469
19068
|
])
|
|
16470
19069
|
];
|
|
16471
19070
|
const buildOptions = {
|
|
@@ -16474,8 +19073,8 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16474
19073
|
// shipped host plugins resolve against the selected compiler's runtime.
|
|
16475
19074
|
...process.platform === "linux" ? {
|
|
16476
19075
|
LD_LIBRARY_PATH: [
|
|
16477
|
-
|
|
16478
|
-
|
|
19076
|
+
path13.resolve(options.toolchainBin, "../lib/swift/linux"),
|
|
19077
|
+
path13.resolve(options.toolchainBin, "../lib/swift/host"),
|
|
16479
19078
|
process.env.LD_LIBRARY_PATH
|
|
16480
19079
|
].filter(Boolean).join(":")
|
|
16481
19080
|
} : {}
|
|
@@ -16487,6 +19086,17 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16487
19086
|
};
|
|
16488
19087
|
report("compiling and linking Swift modules");
|
|
16489
19088
|
try {
|
|
19089
|
+
if (input.packageFiles && !swiftDistributionAt(moduleRoot)) {
|
|
19090
|
+
const frameworks = /* @__PURE__ */ new Set(["SwiftUI"]);
|
|
19091
|
+
for (const name2 of input.packageGuestImports ?? [])
|
|
19092
|
+
if (OPTIONAL_FRAMEWORKS.has(name2)) frameworks.add(name2);
|
|
19093
|
+
for (const framework of frameworks)
|
|
19094
|
+
await runCompiler(
|
|
19095
|
+
swift,
|
|
19096
|
+
[...buildArgs, "--target", framework],
|
|
19097
|
+
buildOptions
|
|
19098
|
+
);
|
|
19099
|
+
}
|
|
16490
19100
|
for (const producer of preparation.headerProducers) {
|
|
16491
19101
|
await runCompiler(
|
|
16492
19102
|
swift,
|
|
@@ -16499,7 +19109,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16499
19109
|
if (preparation.objcImplementations) {
|
|
16500
19110
|
const plan = preparation.objcImplementations;
|
|
16501
19111
|
const manifest = browser_default.parse(
|
|
16502
|
-
|
|
19112
|
+
readFileSync7(path13.join(root, ".build", "release.yaml"), "utf8")
|
|
16503
19113
|
);
|
|
16504
19114
|
if (!isRecord(manifest) || !isRecord(manifest.commands))
|
|
16505
19115
|
throw new Error("missing SwiftPM native compiler commands");
|
|
@@ -16545,7 +19155,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16545
19155
|
implementationASTs(),
|
|
16546
19156
|
plan.registeredClasses
|
|
16547
19157
|
);
|
|
16548
|
-
writeFileSync3(plan.owner,
|
|
19158
|
+
writeFileSync3(plan.owner, readFileSync7(plan.owner, "utf8") + adapter);
|
|
16549
19159
|
}
|
|
16550
19160
|
await runCompiler(
|
|
16551
19161
|
swift,
|
|
@@ -16556,14 +19166,14 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16556
19166
|
);
|
|
16557
19167
|
} catch (error) {
|
|
16558
19168
|
const output = outputOf(error);
|
|
16559
|
-
const moduleCache =
|
|
19169
|
+
const moduleCache = path13.join(
|
|
16560
19170
|
root,
|
|
16561
19171
|
".build",
|
|
16562
19172
|
WASM_TRIPLE,
|
|
16563
19173
|
"release",
|
|
16564
19174
|
"ModuleCache"
|
|
16565
19175
|
);
|
|
16566
|
-
if (output.includes("was compiled with module cache path") &&
|
|
19176
|
+
if (output.includes("was compiled with module cache path") && existsSync3(moduleCache)) {
|
|
16567
19177
|
rmSync3(moduleCache, { recursive: true, force: true });
|
|
16568
19178
|
try {
|
|
16569
19179
|
await runCompiler(
|
|
@@ -16594,7 +19204,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16594
19204
|
if (unprepared.length) throw new Error(unprepared.join("\n"));
|
|
16595
19205
|
const artifact = {
|
|
16596
19206
|
hash: hash2,
|
|
16597
|
-
bytes:
|
|
19207
|
+
bytes: readFileSync7(builtArtifact(layout)),
|
|
16598
19208
|
icu: await icu
|
|
16599
19209
|
};
|
|
16600
19210
|
saveCompiledArtifact(root, artifact);
|
|
@@ -16628,6 +19238,9 @@ export {
|
|
|
16628
19238
|
swiftArtifactHash,
|
|
16629
19239
|
swiftAvailableModules,
|
|
16630
19240
|
swiftBuilderHopTimeoutMs,
|
|
19241
|
+
swiftCDefinedNames,
|
|
19242
|
+
swiftCMainEntry,
|
|
19243
|
+
swiftCPredefines,
|
|
16631
19244
|
swiftCodeMask,
|
|
16632
19245
|
swiftDistributionAt,
|
|
16633
19246
|
swiftIcuAsset,
|