peachsim 0.1.1674 → 0.1.1692
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/commands/control.ts +13 -1
- package/cli/commands/coverage-swift.ts +150 -27
- package/cli/commands/coverage.ts +219 -20
- package/cli/commands/detect.ts +10 -6
- package/cli/commands/inspect/actions.ts +1 -0
- package/cli/commands/inspect/core.ts +2 -0
- package/cli/commands/inspect/wait-ready.ts +7 -0
- package/cli/commands/screenshot.ts +12 -0
- package/cli/outbound-endpoints.ts +12 -0
- package/detox/index.ts +11 -1
- package/detox/jest-environment.cjs +14 -0
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +4833 -2432
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +6 -4
- package/dist-lib/detox/jest-environment.cjs +14 -0
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +3785 -1737
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +4253 -2205
- package/dist-lib/host/fetch-proxy-handler.cjs +20 -7
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +2065 -796
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +6325 -4287
- package/dist-lib/native-app-identity-project.cjs +192 -55
- package/dist-lib/native-app-identity-project.mjs +235 -86
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +27 -23
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +156 -87
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +2 -2
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +3 -2
- package/dist-lib/sdk.mjs +3 -2
- package/dist-lib/skills.cjs +5036 -2833
- package/dist-lib/swift-compile.cjs +2937 -437
- package/dist-lib/swift-compile.mjs +2932 -435
- package/dist-lib/swift-package.cjs +137 -49
- package/dist-lib/swift-package.mjs +132 -49
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +26 -11
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +6005 -1725
- package/dist-lib/vite.cjs +1911 -776
- package/dist-lib/worklet-executable.cjs +7 -4
- package/dist-lib/worklet-executable.mjs +7 -4
- package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +24 -2
- package/dist-types/packages/peach-engine/src/preview/upload-protocol.d.ts +11 -3
- package/dist-types/packages/peach-engine/src/webview-automation-host.d.ts +6 -0
- package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +8 -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-kit/src/capabilities.d.ts +1 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +60 -2
- 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 +117 -2
- 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/MessageUI.framework/Headers/MFComposeAssistantViewController.h +29 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeControllerDeferredAction.h +14 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeViewController.h +162 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailDraft.h +24 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController+UPI.h +31 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController.h +169 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MessageUI.h +13 -0
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Modules/module.modulemap +11 -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/UIKit.framework/Headers/UIKit.h +10 -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/arm/param.h +151 -0
- package/sdk/ios/usr/include/complex.h +167 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +8 -0
- package/sdk/ios/usr/include/dlfcn.h +1 -2
- package/sdk/ios/usr/include/mach/mach_types.h +1 -0
- package/sdk/ios/usr/include/machine/param.h +42 -0
- package/sdk/ios/usr/include/math.h +835 -2
- package/sdk/ios/usr/include/net/if.h +1 -2
- package/sdk/ios/usr/include/peach/pthread.h +4 -4
- package/sdk/ios/usr/include/pthread/qos.h +304 -0
- package/sdk/ios/usr/include/sys/_types/_fd_clr.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_copy.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_def.h +121 -0
- package/sdk/ios/usr/include/sys/_types/_fd_isset.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_set.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_setsize.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_fd_zero.h +31 -0
- package/sdk/ios/usr/include/sys/cdefs.h +3 -1
- package/sdk/ios/usr/include/sys/param.h +235 -0
- package/sdk/ios/usr/include/sys/proc.h +1 -0
- package/sdk/ios/usr/include/sys/qos.h +151 -12
- package/sdk/ios/wasm/include/__typedef_sigset_t.h +7 -0
- package/sdk/ios/wasm/include/fcntl.h +11 -0
- package/sdk/ios/wasm/include/mach/machine/boolean.h +2 -0
- package/sdk/ios/wasm/include/mach/machine/exception.h +5 -0
- package/sdk/ios/wasm/include/mach/machine/kern_return.h +2 -0
- package/sdk/ios/wasm/include/mach/machine/processor_info.h +2 -0
- package/sdk/ios/wasm/include/mach/machine/rpc.h +2 -0
- package/sdk/ios/wasm/include/mach/machine/thread_state.h +3 -0
- package/sdk/ios/wasm/include/mach/machine/thread_status.h +3 -0
- package/sdk/ios/wasm/include/mach/machine/vm_param.h +3 -0
- package/sdk/ios/wasm/include/mach/machine/vm_types.h +18 -0
- package/sdk/ios/wasm/include/machine/_types.h +153 -0
- package/sdk/ios/wasm/include/machine/endian.h +2 -0
- package/sdk/ios/wasm/include/machine/limits.h +2 -0
- package/sdk/ios/wasm/include/machine/types.h +30 -0
- package/sdk/ios/wasm/include/poll.h +8 -0
- package/sdk/ios/wasm/include/pthread.h +50 -0
- package/sdk/ios/wasm/include/signal.h +72 -0
- package/sdk/ios/wasm/include/stdlib.h +3 -0
- package/sdk/ios/wasm/include/string.h +10 -0
- package/sdk/ios/wasm/include/sys/_pthread/_pthread_attr_t.h +7 -0
- package/sdk/ios/wasm/include/sys/_pthread/_pthread_t.h +7 -0
- package/sdk/ios/wasm/include/sys/mman.h +122 -0
- package/sdk/ios/wasm/include/sys/select.h +37 -0
- package/sdk/ios/wasm/include/sys/signal.h +259 -0
- package/sdk/ios/wasm/include/sys/socket.h +8 -0
- package/sdk/ios/wasm/include/sys/types.h +14 -0
- package/sdk/ios/wasm/include/sys/ucontext.h +1 -0
- package/sdk/ios/wasm/include/sys/uio.h +11 -0
- package/sdk/ios/wasm/include/sys/wait.h +89 -0
- package/sdk/ios/wasm/include/time.h +8 -0
- package/sdk/ios/wasm/include/unistd.h +17 -0
- package/src/bridge-contract.ts +2 -0
- package/src/chromium-admission.ts +10 -5
- package/src/device-catalog.ts +4 -4
- package/src/generated/swift-c-predefines.json +1988 -0
- package/src/host/fetch-proxy-handler.ts +20 -0
- package/src/metro-plugin.ts +5 -2
- package/src/nitro-adapter.lock.json +6 -6
- package/src/nitro-bundle.ts +1 -0
- package/src/nitro-compile.ts +67 -2
- package/src/nitroContract.ts +18 -2
- package/src/numbered-lock.ts +72 -0
- package/src/react-native-coverage/capability-reference-resolution.ts +62 -5
- package/src/react-native-coverage/capability-source-references.ts +50 -13
- package/src/react-native-coverage/native-source-credit.ts +126 -0
- package/src/react-native-coverage/native-source-ranges-file.ts +38 -0
- package/src/react-native-coverage/native-surface.ts +49 -0
- package/src/react-native-coverage/verified-reach.ts +22 -2
- package/src/runtime-assets.ts +17 -0
- package/src/swift-compile.ts +530 -97
- package/src/swift-coverage/indexing.ts +17 -1
- package/src/swift-coverage/package.ts +3 -1
- package/src/swift-coverage/sdk.ts +71 -0
- package/src/swift-coverage/source.ts +74 -2
- package/src/swift-coverage/types.ts +6 -0
- package/src/swift-coverage/xcode-assets.ts +62 -2
- package/src/swift-coverage/xcode-packages.ts +11 -6
- package/src/swift-distribution.lock.json +12 -12
- package/src/swift-host.ts +457 -62
- package/src/swift-objc-compile.ts +26 -26
- package/src/swift-objc-metadata.ts +2 -8
- package/src/swift-objc-platform.ts +53 -0
- package/src/swift-objc-standin.ts +66 -12
- package/src/swift-package-manifest.ts +196 -28
- package/src/swift-package.ts +186 -60
- package/src/swift-packages.ts +298 -88
- package/src/swift-source-file.ts +10 -15
- package/src/swift-source-pods.ts +288 -0
- package/src/swift-standins.ts +87 -13
- package/src/swift-submit.ts +5 -0
- package/src/swift-toolchain.ts +32 -10
- package/src/swiftContract.ts +160 -75
- package/src/target-matcher.ts +15 -2
- package/src/vite-plugin-one.ts +5 -4
- package/src/worker-system-chunks.ts +7 -1
- package/src/worklet-executable.ts +7 -3
- package/src/xcode-json-project.ts +14 -2
- package/src/xcode-project.ts +193 -69
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1692 | (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)
|
|
@@ -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 path12 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, path13) {
|
|
118
|
+
const ctrl = callVisitor(key, node, visitor, path13);
|
|
119
119
|
if (isNode(ctrl) || isPair(ctrl)) {
|
|
120
|
-
replaceNode(key,
|
|
121
|
-
return visit_(key, ctrl, visitor,
|
|
120
|
+
replaceNode(key, path13, ctrl);
|
|
121
|
+
return visit_(key, ctrl, visitor, path13);
|
|
122
122
|
}
|
|
123
123
|
if (typeof ctrl !== "symbol") {
|
|
124
124
|
if (isCollection(node)) {
|
|
125
|
-
|
|
125
|
+
path13 = Object.freeze(path13.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, path13);
|
|
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, path12) {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
} else if (isPair(node)) {
|
|
138
|
-
|
|
139
|
-
const ck = visit_("key", node.key, visitor,
|
|
138
|
+
path13 = Object.freeze(path13.concat(node));
|
|
139
|
+
const ck = visit_("key", node.key, visitor, path13);
|
|
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, path13);
|
|
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, path13) {
|
|
166
|
+
const ctrl = await callVisitor(key, node, visitor, path13);
|
|
167
167
|
if (isNode(ctrl) || isPair(ctrl)) {
|
|
168
|
-
replaceNode(key,
|
|
169
|
-
return visitAsync_(key, ctrl, visitor,
|
|
168
|
+
replaceNode(key, path13, ctrl);
|
|
169
|
+
return visitAsync_(key, ctrl, visitor, path13);
|
|
170
170
|
}
|
|
171
171
|
if (typeof ctrl !== "symbol") {
|
|
172
172
|
if (isCollection(node)) {
|
|
173
|
-
|
|
173
|
+
path13 = Object.freeze(path13.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, path13);
|
|
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, path12) {
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
} else if (isPair(node)) {
|
|
186
|
-
|
|
187
|
-
const ck = await visitAsync_("key", node.key, visitor,
|
|
186
|
+
path13 = Object.freeze(path13.concat(node));
|
|
187
|
+
const ck = await visitAsync_("key", node.key, visitor, path13);
|
|
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, path13);
|
|
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, path13) {
|
|
220
220
|
if (typeof visitor === "function")
|
|
221
|
-
return visitor(key, node,
|
|
221
|
+
return visitor(key, node, path13);
|
|
222
222
|
if (isMap(node))
|
|
223
|
-
return visitor.Map?.(key, node,
|
|
223
|
+
return visitor.Map?.(key, node, path13);
|
|
224
224
|
if (isSeq(node))
|
|
225
|
-
return visitor.Seq?.(key, node,
|
|
225
|
+
return visitor.Seq?.(key, node, path13);
|
|
226
226
|
if (isPair(node))
|
|
227
|
-
return visitor.Pair?.(key, node,
|
|
227
|
+
return visitor.Pair?.(key, node, path13);
|
|
228
228
|
if (isScalar(node))
|
|
229
|
-
return visitor.Scalar?.(key, node,
|
|
229
|
+
return visitor.Scalar?.(key, node, path13);
|
|
230
230
|
if (isAlias(node))
|
|
231
|
-
return visitor.Alias?.(key, node,
|
|
231
|
+
return visitor.Alias?.(key, node, path13);
|
|
232
232
|
return void 0;
|
|
233
233
|
}
|
|
234
|
-
function replaceNode(key,
|
|
235
|
-
const parent =
|
|
234
|
+
function replaceNode(key, path13, node) {
|
|
235
|
+
const parent = path13[path13.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, path13, value) {
|
|
765
765
|
let v = value;
|
|
766
|
-
for (let i =
|
|
767
|
-
const k =
|
|
766
|
+
for (let i = path13.length - 1; i >= 0; --i) {
|
|
767
|
+
const k = path13[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, path12, value) {
|
|
|
783
783
|
sourceObjects: /* @__PURE__ */ new Map()
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
|
-
var isEmptyPath = (
|
|
786
|
+
var isEmptyPath = (path13) => path13 == null || typeof path13 === "object" && !!path13[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(path13, value) {
|
|
817
|
+
if (isEmptyPath(path13))
|
|
818
818
|
this.add(value);
|
|
819
819
|
else {
|
|
820
|
-
const [key, ...rest] =
|
|
820
|
+
const [key, ...rest] = path13;
|
|
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(path13) {
|
|
835
|
+
const [key, ...rest] = path13;
|
|
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(path13, keepScalar) {
|
|
850
|
+
const [key, ...rest] = path13;
|
|
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(path13) {
|
|
869
|
+
const [key, ...rest] = path13;
|
|
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(path13, value) {
|
|
880
|
+
const [key, ...rest] = path13;
|
|
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(path13, value) {
|
|
3020
3020
|
if (assertCollection(this.contents))
|
|
3021
|
-
this.contents.addIn(
|
|
3021
|
+
this.contents.addIn(path13, 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(path13) {
|
|
3097
|
+
if (isEmptyPath(path13)) {
|
|
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(path13) : 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(path13, keepScalar) {
|
|
3119
|
+
if (isEmptyPath(path13))
|
|
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(path13, 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(path13) {
|
|
3133
|
+
if (isEmptyPath(path13))
|
|
3134
3134
|
return this.contents !== void 0;
|
|
3135
|
-
return isCollection(this.contents) ? this.contents.hasIn(
|
|
3135
|
+
return isCollection(this.contents) ? this.contents.hasIn(path13) : 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(path13, value) {
|
|
3153
|
+
if (isEmptyPath(path13)) {
|
|
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(path13), value);
|
|
3157
3157
|
} else if (assertCollection(this.contents)) {
|
|
3158
|
-
this.contents.setIn(
|
|
3158
|
+
this.contents.setIn(path13, 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, path13) => {
|
|
4955
4955
|
let item = cst;
|
|
4956
|
-
for (const [field, index] of
|
|
4956
|
+
for (const [field, index] of path13) {
|
|
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, path12) => {
|
|
|
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, path13) => {
|
|
4966
|
+
const parent = visit2.itemAtPath(cst, path13.slice(0, -1));
|
|
4967
|
+
const field = path13[path13.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(path13, item, visitor) {
|
|
4974
|
+
let ctrl = visitor(item, path13);
|
|
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(path13.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(path12, item, visitor) {
|
|
|
4989
4989
|
}
|
|
4990
4990
|
}
|
|
4991
4991
|
if (typeof ctrl === "function" && field === "key")
|
|
4992
|
-
ctrl = ctrl(item,
|
|
4992
|
+
ctrl = ctrl(item, path13);
|
|
4993
4993
|
}
|
|
4994
4994
|
}
|
|
4995
|
-
return typeof ctrl === "function" ? ctrl(item,
|
|
4995
|
+
return typeof ctrl === "function" ? ctrl(item, path13) : ctrl;
|
|
4996
4996
|
}
|
|
4997
4997
|
|
|
4998
4998
|
// ../../node_modules/yaml/browser/dist/parse/cst.js
|
|
@@ -6656,6 +6656,1996 @@ 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: "0",
|
|
6665
|
+
TARGET_OS_DRIVERKIT: "0",
|
|
6666
|
+
TARGET_OS_EMBEDDED: "1",
|
|
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: "0",
|
|
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__: "1",
|
|
6690
|
+
__ARM64_ARCH_8__: "1",
|
|
6691
|
+
__ARM_64BIT_STATE: "1",
|
|
6692
|
+
__ARM_ACLE: "202420",
|
|
6693
|
+
__ARM_ACLE_VERSION: "(year,quarter,patch) (100 * (year) + 10 * (quarter) + (patch))",
|
|
6694
|
+
__ARM_ALIGN_MAX_STACK_PWR: "4",
|
|
6695
|
+
__ARM_ARCH: "8",
|
|
6696
|
+
__ARM_ARCH_ISA_A64: "1",
|
|
6697
|
+
__ARM_ARCH_PROFILE: "'A'",
|
|
6698
|
+
__ARM_FEATURE_AES: "1",
|
|
6699
|
+
__ARM_FEATURE_CLZ: "1",
|
|
6700
|
+
__ARM_FEATURE_CRYPTO: "1",
|
|
6701
|
+
__ARM_FEATURE_DIRECTED_ROUNDING: "1",
|
|
6702
|
+
__ARM_FEATURE_DIV: "1",
|
|
6703
|
+
__ARM_FEATURE_FMA: "1",
|
|
6704
|
+
__ARM_FEATURE_IDIV: "1",
|
|
6705
|
+
__ARM_FEATURE_LDREX: "0xF",
|
|
6706
|
+
__ARM_FEATURE_NUMERIC_MAXMIN: "1",
|
|
6707
|
+
__ARM_FEATURE_SHA2: "1",
|
|
6708
|
+
__ARM_FEATURE_UNALIGNED: "1",
|
|
6709
|
+
__ARM_FP: "0xE",
|
|
6710
|
+
__ARM_FP16_ARGS: "1",
|
|
6711
|
+
__ARM_FP16_FORMAT_IEEE: "1",
|
|
6712
|
+
__ARM_NEON: "1",
|
|
6713
|
+
__ARM_NEON_FP: "0xE",
|
|
6714
|
+
__ARM_NEON_SVE_BRIDGE: "1",
|
|
6715
|
+
__ARM_NEON__: "1",
|
|
6716
|
+
__ARM_PCS_AAPCS64: "1",
|
|
6717
|
+
__ARM_SIZEOF_MINIMAL_ENUM: "4",
|
|
6718
|
+
__ARM_SIZEOF_WCHAR_T: "4",
|
|
6719
|
+
__ARM_STATE_ZA: "1",
|
|
6720
|
+
__ARM_STATE_ZT0: "1",
|
|
6721
|
+
__ATOMIC_ACQUIRE: "2",
|
|
6722
|
+
__ATOMIC_ACQ_REL: "4",
|
|
6723
|
+
__ATOMIC_CONSUME: "1",
|
|
6724
|
+
__ATOMIC_RELAXED: "0",
|
|
6725
|
+
__ATOMIC_RELEASE: "3",
|
|
6726
|
+
__ATOMIC_SEQ_CST: "5",
|
|
6727
|
+
__BIGGEST_ALIGNMENT__: "8",
|
|
6728
|
+
__BITINT_MAXWIDTH__: "128",
|
|
6729
|
+
__BLOCKS__: "1",
|
|
6730
|
+
__BOOL_WIDTH__: "1",
|
|
6731
|
+
__BYTE_ORDER__: "__ORDER_LITTLE_ENDIAN__",
|
|
6732
|
+
__CHAR16_TYPE__: "unsigned short",
|
|
6733
|
+
__CHAR32_TYPE__: "unsigned int",
|
|
6734
|
+
__CHAR_BIT__: "8",
|
|
6735
|
+
__CLANG_ATOMIC_BOOL_LOCK_FREE: "2",
|
|
6736
|
+
__CLANG_ATOMIC_CHAR16_T_LOCK_FREE: "2",
|
|
6737
|
+
__CLANG_ATOMIC_CHAR32_T_LOCK_FREE: "2",
|
|
6738
|
+
__CLANG_ATOMIC_CHAR_LOCK_FREE: "2",
|
|
6739
|
+
__CLANG_ATOMIC_INT_LOCK_FREE: "2",
|
|
6740
|
+
__CLANG_ATOMIC_LLONG_LOCK_FREE: "2",
|
|
6741
|
+
__CLANG_ATOMIC_LONG_LOCK_FREE: "2",
|
|
6742
|
+
__CLANG_ATOMIC_POINTER_LOCK_FREE: "2",
|
|
6743
|
+
__CLANG_ATOMIC_SHORT_LOCK_FREE: "2",
|
|
6744
|
+
__CLANG_ATOMIC_WCHAR_T_LOCK_FREE: "2",
|
|
6745
|
+
__CONSTANT_CFSTRINGS__: "1",
|
|
6746
|
+
__DBL_DECIMAL_DIG__: "17",
|
|
6747
|
+
__DBL_DENORM_MIN__: "4.9406564584124654e-324",
|
|
6748
|
+
__DBL_DIG__: "15",
|
|
6749
|
+
__DBL_EPSILON__: "2.2204460492503131e-16",
|
|
6750
|
+
__DBL_HAS_DENORM__: "1",
|
|
6751
|
+
__DBL_HAS_INFINITY__: "1",
|
|
6752
|
+
__DBL_HAS_QUIET_NAN__: "1",
|
|
6753
|
+
__DBL_MANT_DIG__: "53",
|
|
6754
|
+
__DBL_MAX_10_EXP__: "308",
|
|
6755
|
+
__DBL_MAX_EXP__: "1024",
|
|
6756
|
+
__DBL_MAX__: "1.7976931348623157e+308",
|
|
6757
|
+
__DBL_MIN_10_EXP__: "(-307)",
|
|
6758
|
+
__DBL_MIN_EXP__: "(-1021)",
|
|
6759
|
+
__DBL_MIN__: "2.2250738585072014e-308",
|
|
6760
|
+
__DBL_NORM_MAX__: "1.7976931348623157e+308",
|
|
6761
|
+
__DECIMAL_DIG__: "__LDBL_DECIMAL_DIG__",
|
|
6762
|
+
__DYNAMIC__: "1",
|
|
6763
|
+
__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__: "70000",
|
|
6764
|
+
__ENVIRONMENT_OS_VERSION_MIN_REQUIRED__: "70000",
|
|
6765
|
+
__FINITE_MATH_ONLY__: "0",
|
|
6766
|
+
__FLT16_DECIMAL_DIG__: "5",
|
|
6767
|
+
__FLT16_DENORM_MIN__: "5.9604644775390625e-8F16",
|
|
6768
|
+
__FLT16_DIG__: "3",
|
|
6769
|
+
__FLT16_EPSILON__: "9.765625e-4F16",
|
|
6770
|
+
__FLT16_HAS_DENORM__: "1",
|
|
6771
|
+
__FLT16_HAS_INFINITY__: "1",
|
|
6772
|
+
__FLT16_HAS_QUIET_NAN__: "1",
|
|
6773
|
+
__FLT16_MANT_DIG__: "11",
|
|
6774
|
+
__FLT16_MAX_10_EXP__: "4",
|
|
6775
|
+
__FLT16_MAX_EXP__: "16",
|
|
6776
|
+
__FLT16_MAX__: "6.5504e+4F16",
|
|
6777
|
+
__FLT16_MIN_10_EXP__: "(-4)",
|
|
6778
|
+
__FLT16_MIN_EXP__: "(-13)",
|
|
6779
|
+
__FLT16_MIN__: "6.103515625e-5F16",
|
|
6780
|
+
__FLT16_NORM_MAX__: "6.5504e+4F16",
|
|
6781
|
+
__FLT_DECIMAL_DIG__: "9",
|
|
6782
|
+
__FLT_DENORM_MIN__: "1.40129846e-45F",
|
|
6783
|
+
__FLT_DIG__: "6",
|
|
6784
|
+
__FLT_EPSILON__: "1.19209290e-7F",
|
|
6785
|
+
__FLT_HAS_DENORM__: "1",
|
|
6786
|
+
__FLT_HAS_INFINITY__: "1",
|
|
6787
|
+
__FLT_HAS_QUIET_NAN__: "1",
|
|
6788
|
+
__FLT_MANT_DIG__: "24",
|
|
6789
|
+
__FLT_MAX_10_EXP__: "38",
|
|
6790
|
+
__FLT_MAX_EXP__: "128",
|
|
6791
|
+
__FLT_MAX__: "3.40282347e+38F",
|
|
6792
|
+
__FLT_MIN_10_EXP__: "(-37)",
|
|
6793
|
+
__FLT_MIN_EXP__: "(-125)",
|
|
6794
|
+
__FLT_MIN__: "1.17549435e-38F",
|
|
6795
|
+
__FLT_NORM_MAX__: "3.40282347e+38F",
|
|
6796
|
+
__FLT_RADIX__: "2",
|
|
6797
|
+
__FPCLASS_NEGINF: "0x0004",
|
|
6798
|
+
__FPCLASS_NEGNORMAL: "0x0008",
|
|
6799
|
+
__FPCLASS_NEGSUBNORMAL: "0x0010",
|
|
6800
|
+
__FPCLASS_NEGZERO: "0x0020",
|
|
6801
|
+
__FPCLASS_POSINF: "0x0200",
|
|
6802
|
+
__FPCLASS_POSNORMAL: "0x0100",
|
|
6803
|
+
__FPCLASS_POSSUBNORMAL: "0x0080",
|
|
6804
|
+
__FPCLASS_POSZERO: "0x0040",
|
|
6805
|
+
__FPCLASS_QNAN: "0x0002",
|
|
6806
|
+
__FPCLASS_SNAN: "0x0001",
|
|
6807
|
+
__FP_FAST_FMA: "1",
|
|
6808
|
+
__FP_FAST_FMAF: "1",
|
|
6809
|
+
__FUNCTION_MULTI_VERSIONING_SUPPORT_LEVEL: "202430",
|
|
6810
|
+
__GCC_ASM_FLAG_OUTPUTS__: "1",
|
|
6811
|
+
__GCC_ATOMIC_BOOL_LOCK_FREE: "2",
|
|
6812
|
+
__GCC_ATOMIC_CHAR16_T_LOCK_FREE: "2",
|
|
6813
|
+
__GCC_ATOMIC_CHAR32_T_LOCK_FREE: "2",
|
|
6814
|
+
__GCC_ATOMIC_CHAR_LOCK_FREE: "2",
|
|
6815
|
+
__GCC_ATOMIC_INT_LOCK_FREE: "2",
|
|
6816
|
+
__GCC_ATOMIC_LLONG_LOCK_FREE: "2",
|
|
6817
|
+
__GCC_ATOMIC_LONG_LOCK_FREE: "2",
|
|
6818
|
+
__GCC_ATOMIC_POINTER_LOCK_FREE: "2",
|
|
6819
|
+
__GCC_ATOMIC_SHORT_LOCK_FREE: "2",
|
|
6820
|
+
__GCC_ATOMIC_TEST_AND_SET_TRUEVAL: "1",
|
|
6821
|
+
__GCC_ATOMIC_WCHAR_T_LOCK_FREE: "2",
|
|
6822
|
+
__GCC_CONSTRUCTIVE_SIZE: "64",
|
|
6823
|
+
__GCC_DESTRUCTIVE_SIZE: "256",
|
|
6824
|
+
__GCC_HAVE_DWARF2_CFI_ASM: "1",
|
|
6825
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1: "1",
|
|
6826
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16: "1",
|
|
6827
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2: "1",
|
|
6828
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4: "1",
|
|
6829
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8: "1",
|
|
6830
|
+
__GNUC_MINOR__: "2",
|
|
6831
|
+
__GNUC_PATCHLEVEL__: "1",
|
|
6832
|
+
__GNUC_STDC_INLINE__: "1",
|
|
6833
|
+
__GNUC__: "4",
|
|
6834
|
+
__GXX_ABI_VERSION: "1002",
|
|
6835
|
+
__HAVE_FUNCTION_MULTI_VERSIONING: "1",
|
|
6836
|
+
__INT16_C: "(c) c",
|
|
6837
|
+
__INT16_C_SUFFIX__: null,
|
|
6838
|
+
__INT16_FMTd__: '"hd"',
|
|
6839
|
+
__INT16_FMTi__: '"hi"',
|
|
6840
|
+
__INT16_MAX__: "32767",
|
|
6841
|
+
__INT16_TYPE__: "short",
|
|
6842
|
+
__INT32_C: "(c) c",
|
|
6843
|
+
__INT32_C_SUFFIX__: null,
|
|
6844
|
+
__INT32_FMTd__: '"d"',
|
|
6845
|
+
__INT32_FMTi__: '"i"',
|
|
6846
|
+
__INT32_MAX__: "2147483647",
|
|
6847
|
+
__INT32_TYPE__: "int",
|
|
6848
|
+
__INT64_C: "(c) c##LL",
|
|
6849
|
+
__INT64_C_SUFFIX__: "LL",
|
|
6850
|
+
__INT64_FMTd__: '"lld"',
|
|
6851
|
+
__INT64_FMTi__: '"lli"',
|
|
6852
|
+
__INT64_MAX__: "9223372036854775807LL",
|
|
6853
|
+
__INT64_TYPE__: "long long int",
|
|
6854
|
+
__INT8_C: "(c) c",
|
|
6855
|
+
__INT8_C_SUFFIX__: null,
|
|
6856
|
+
__INT8_FMTd__: '"hhd"',
|
|
6857
|
+
__INT8_FMTi__: '"hhi"',
|
|
6858
|
+
__INT8_MAX__: "127",
|
|
6859
|
+
__INT8_TYPE__: "signed char",
|
|
6860
|
+
__INTMAX_C: "(c) c##L",
|
|
6861
|
+
__INTMAX_C_SUFFIX__: "L",
|
|
6862
|
+
__INTMAX_FMTd__: '"ld"',
|
|
6863
|
+
__INTMAX_FMTi__: '"li"',
|
|
6864
|
+
__INTMAX_MAX__: "9223372036854775807L",
|
|
6865
|
+
__INTMAX_TYPE__: "long int",
|
|
6866
|
+
__INTMAX_WIDTH__: "64",
|
|
6867
|
+
__INTPTR_FMTd__: '"ld"',
|
|
6868
|
+
__INTPTR_FMTi__: '"li"',
|
|
6869
|
+
__INTPTR_MAX__: "9223372036854775807L",
|
|
6870
|
+
__INTPTR_TYPE__: "long int",
|
|
6871
|
+
__INTPTR_WIDTH__: "64",
|
|
6872
|
+
__INT_FAST16_FMTd__: '"hd"',
|
|
6873
|
+
__INT_FAST16_FMTi__: '"hi"',
|
|
6874
|
+
__INT_FAST16_MAX__: "32767",
|
|
6875
|
+
__INT_FAST16_TYPE__: "short",
|
|
6876
|
+
__INT_FAST16_WIDTH__: "16",
|
|
6877
|
+
__INT_FAST32_FMTd__: '"d"',
|
|
6878
|
+
__INT_FAST32_FMTi__: '"i"',
|
|
6879
|
+
__INT_FAST32_MAX__: "2147483647",
|
|
6880
|
+
__INT_FAST32_TYPE__: "int",
|
|
6881
|
+
__INT_FAST32_WIDTH__: "32",
|
|
6882
|
+
__INT_FAST64_FMTd__: '"lld"',
|
|
6883
|
+
__INT_FAST64_FMTi__: '"lli"',
|
|
6884
|
+
__INT_FAST64_MAX__: "9223372036854775807LL",
|
|
6885
|
+
__INT_FAST64_TYPE__: "long long int",
|
|
6886
|
+
__INT_FAST64_WIDTH__: "64",
|
|
6887
|
+
__INT_FAST8_FMTd__: '"hhd"',
|
|
6888
|
+
__INT_FAST8_FMTi__: '"hhi"',
|
|
6889
|
+
__INT_FAST8_MAX__: "127",
|
|
6890
|
+
__INT_FAST8_TYPE__: "signed char",
|
|
6891
|
+
__INT_FAST8_WIDTH__: "8",
|
|
6892
|
+
__INT_LEAST16_FMTd__: '"hd"',
|
|
6893
|
+
__INT_LEAST16_FMTi__: '"hi"',
|
|
6894
|
+
__INT_LEAST16_MAX__: "32767",
|
|
6895
|
+
__INT_LEAST16_TYPE__: "short",
|
|
6896
|
+
__INT_LEAST16_WIDTH__: "16",
|
|
6897
|
+
__INT_LEAST32_FMTd__: '"d"',
|
|
6898
|
+
__INT_LEAST32_FMTi__: '"i"',
|
|
6899
|
+
__INT_LEAST32_MAX__: "2147483647",
|
|
6900
|
+
__INT_LEAST32_TYPE__: "int",
|
|
6901
|
+
__INT_LEAST32_WIDTH__: "32",
|
|
6902
|
+
__INT_LEAST64_FMTd__: '"lld"',
|
|
6903
|
+
__INT_LEAST64_FMTi__: '"lli"',
|
|
6904
|
+
__INT_LEAST64_MAX__: "9223372036854775807LL",
|
|
6905
|
+
__INT_LEAST64_TYPE__: "long long int",
|
|
6906
|
+
__INT_LEAST64_WIDTH__: "64",
|
|
6907
|
+
__INT_LEAST8_FMTd__: '"hhd"',
|
|
6908
|
+
__INT_LEAST8_FMTi__: '"hhi"',
|
|
6909
|
+
__INT_LEAST8_MAX__: "127",
|
|
6910
|
+
__INT_LEAST8_TYPE__: "signed char",
|
|
6911
|
+
__INT_LEAST8_WIDTH__: "8",
|
|
6912
|
+
__INT_MAX__: "2147483647",
|
|
6913
|
+
__INT_WIDTH__: "32",
|
|
6914
|
+
__LDBL_DECIMAL_DIG__: "17",
|
|
6915
|
+
__LDBL_DENORM_MIN__: "4.9406564584124654e-324L",
|
|
6916
|
+
__LDBL_DIG__: "15",
|
|
6917
|
+
__LDBL_EPSILON__: "2.2204460492503131e-16L",
|
|
6918
|
+
__LDBL_HAS_DENORM__: "1",
|
|
6919
|
+
__LDBL_HAS_INFINITY__: "1",
|
|
6920
|
+
__LDBL_HAS_QUIET_NAN__: "1",
|
|
6921
|
+
__LDBL_MANT_DIG__: "53",
|
|
6922
|
+
__LDBL_MAX_10_EXP__: "308",
|
|
6923
|
+
__LDBL_MAX_EXP__: "1024",
|
|
6924
|
+
__LDBL_MAX__: "1.7976931348623157e+308L",
|
|
6925
|
+
__LDBL_MIN_10_EXP__: "(-307)",
|
|
6926
|
+
__LDBL_MIN_EXP__: "(-1021)",
|
|
6927
|
+
__LDBL_MIN__: "2.2250738585072014e-308L",
|
|
6928
|
+
__LDBL_NORM_MAX__: "1.7976931348623157e+308L",
|
|
6929
|
+
__LITTLE_ENDIAN__: "1",
|
|
6930
|
+
__LLONG_WIDTH__: "64",
|
|
6931
|
+
__LONG_LONG_MAX__: "9223372036854775807LL",
|
|
6932
|
+
__LONG_MAX__: "9223372036854775807L",
|
|
6933
|
+
__LONG_WIDTH__: "64",
|
|
6934
|
+
__LP64__: "1",
|
|
6935
|
+
__MACH__: "1",
|
|
6936
|
+
__MEMORY_SCOPE_DEVICE: "1",
|
|
6937
|
+
__MEMORY_SCOPE_SINGLE: "4",
|
|
6938
|
+
__MEMORY_SCOPE_SYSTEM: "0",
|
|
6939
|
+
__MEMORY_SCOPE_WRKGRP: "2",
|
|
6940
|
+
__MEMORY_SCOPE_WVFRNT: "3",
|
|
6941
|
+
__NO_INLINE__: "1",
|
|
6942
|
+
__NO_MATH_ERRNO__: "1",
|
|
6943
|
+
__OBJC_BOOL_IS_BOOL: "1",
|
|
6944
|
+
__OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES: "3",
|
|
6945
|
+
__OPENCL_MEMORY_SCOPE_DEVICE: "2",
|
|
6946
|
+
__OPENCL_MEMORY_SCOPE_SUB_GROUP: "4",
|
|
6947
|
+
__OPENCL_MEMORY_SCOPE_WORK_GROUP: "1",
|
|
6948
|
+
__OPENCL_MEMORY_SCOPE_WORK_ITEM: "0",
|
|
6949
|
+
__ORDER_BIG_ENDIAN__: "4321",
|
|
6950
|
+
__ORDER_LITTLE_ENDIAN__: "1234",
|
|
6951
|
+
__ORDER_PDP_ENDIAN__: "3412",
|
|
6952
|
+
__PIC__: "2",
|
|
6953
|
+
__POINTER_WIDTH__: "64",
|
|
6954
|
+
__PRAGMA_REDEFINE_EXTNAME: "1",
|
|
6955
|
+
__PTRDIFF_FMTd__: '"ld"',
|
|
6956
|
+
__PTRDIFF_FMTi__: '"li"',
|
|
6957
|
+
__PTRDIFF_MAX__: "9223372036854775807L",
|
|
6958
|
+
__PTRDIFF_TYPE__: "long int",
|
|
6959
|
+
__PTRDIFF_WIDTH__: "64",
|
|
6960
|
+
__REGISTER_PREFIX__: null,
|
|
6961
|
+
__SCHAR_MAX__: "127",
|
|
6962
|
+
__SHRT_MAX__: "32767",
|
|
6963
|
+
__SHRT_WIDTH__: "16",
|
|
6964
|
+
__SIG_ATOMIC_MAX__: "2147483647",
|
|
6965
|
+
__SIG_ATOMIC_WIDTH__: "32",
|
|
6966
|
+
__SIZEOF_DOUBLE__: "8",
|
|
6967
|
+
__SIZEOF_FLOAT__: "4",
|
|
6968
|
+
__SIZEOF_INT128__: "16",
|
|
6969
|
+
__SIZEOF_INT__: "4",
|
|
6970
|
+
__SIZEOF_LONG_DOUBLE__: "8",
|
|
6971
|
+
__SIZEOF_LONG_LONG__: "8",
|
|
6972
|
+
__SIZEOF_LONG__: "8",
|
|
6973
|
+
__SIZEOF_POINTER__: "8",
|
|
6974
|
+
__SIZEOF_PTRDIFF_T__: "8",
|
|
6975
|
+
__SIZEOF_SHORT__: "2",
|
|
6976
|
+
__SIZEOF_SIZE_T__: "8",
|
|
6977
|
+
__SIZEOF_WCHAR_T__: "4",
|
|
6978
|
+
__SIZEOF_WINT_T__: "4",
|
|
6979
|
+
__SIZE_FMTX__: '"lX"',
|
|
6980
|
+
__SIZE_FMTo__: '"lo"',
|
|
6981
|
+
__SIZE_FMTu__: '"lu"',
|
|
6982
|
+
__SIZE_FMTx__: '"lx"',
|
|
6983
|
+
__SIZE_MAX__: "18446744073709551615UL",
|
|
6984
|
+
__SIZE_TYPE__: "long unsigned int",
|
|
6985
|
+
__SIZE_WIDTH__: "64",
|
|
6986
|
+
__SSP__: "1",
|
|
6987
|
+
__STDC_EMBED_EMPTY__: "2",
|
|
6988
|
+
__STDC_EMBED_FOUND__: "1",
|
|
6989
|
+
__STDC_EMBED_NOT_FOUND__: "0",
|
|
6990
|
+
__STDC_HOSTED__: "1",
|
|
6991
|
+
__STDC_NO_THREADS__: "1",
|
|
6992
|
+
__STDC_UTF_16__: "1",
|
|
6993
|
+
__STDC_UTF_32__: "1",
|
|
6994
|
+
__STDC_VERSION__: "201710L",
|
|
6995
|
+
__STDC__: "1",
|
|
6996
|
+
__UINT16_C: "(c) c",
|
|
6997
|
+
__UINT16_C_SUFFIX__: null,
|
|
6998
|
+
__UINT16_FMTX__: '"hX"',
|
|
6999
|
+
__UINT16_FMTo__: '"ho"',
|
|
7000
|
+
__UINT16_FMTu__: '"hu"',
|
|
7001
|
+
__UINT16_FMTx__: '"hx"',
|
|
7002
|
+
__UINT16_MAX__: "65535",
|
|
7003
|
+
__UINT16_TYPE__: "unsigned short",
|
|
7004
|
+
__UINT32_C: "(c) c##U",
|
|
7005
|
+
__UINT32_C_SUFFIX__: "U",
|
|
7006
|
+
__UINT32_FMTX__: '"X"',
|
|
7007
|
+
__UINT32_FMTo__: '"o"',
|
|
7008
|
+
__UINT32_FMTu__: '"u"',
|
|
7009
|
+
__UINT32_FMTx__: '"x"',
|
|
7010
|
+
__UINT32_MAX__: "4294967295U",
|
|
7011
|
+
__UINT32_TYPE__: "unsigned int",
|
|
7012
|
+
__UINT64_C: "(c) c##ULL",
|
|
7013
|
+
__UINT64_C_SUFFIX__: "ULL",
|
|
7014
|
+
__UINT64_FMTX__: '"llX"',
|
|
7015
|
+
__UINT64_FMTo__: '"llo"',
|
|
7016
|
+
__UINT64_FMTu__: '"llu"',
|
|
7017
|
+
__UINT64_FMTx__: '"llx"',
|
|
7018
|
+
__UINT64_MAX__: "18446744073709551615ULL",
|
|
7019
|
+
__UINT64_TYPE__: "long long unsigned int",
|
|
7020
|
+
__UINT8_C: "(c) c",
|
|
7021
|
+
__UINT8_C_SUFFIX__: null,
|
|
7022
|
+
__UINT8_FMTX__: '"hhX"',
|
|
7023
|
+
__UINT8_FMTo__: '"hho"',
|
|
7024
|
+
__UINT8_FMTu__: '"hhu"',
|
|
7025
|
+
__UINT8_FMTx__: '"hhx"',
|
|
7026
|
+
__UINT8_MAX__: "255",
|
|
7027
|
+
__UINT8_TYPE__: "unsigned char",
|
|
7028
|
+
__UINTMAX_C: "(c) c##UL",
|
|
7029
|
+
__UINTMAX_C_SUFFIX__: "UL",
|
|
7030
|
+
__UINTMAX_FMTX__: '"lX"',
|
|
7031
|
+
__UINTMAX_FMTo__: '"lo"',
|
|
7032
|
+
__UINTMAX_FMTu__: '"lu"',
|
|
7033
|
+
__UINTMAX_FMTx__: '"lx"',
|
|
7034
|
+
__UINTMAX_MAX__: "18446744073709551615UL",
|
|
7035
|
+
__UINTMAX_TYPE__: "long unsigned int",
|
|
7036
|
+
__UINTMAX_WIDTH__: "64",
|
|
7037
|
+
__UINTPTR_FMTX__: '"lX"',
|
|
7038
|
+
__UINTPTR_FMTo__: '"lo"',
|
|
7039
|
+
__UINTPTR_FMTu__: '"lu"',
|
|
7040
|
+
__UINTPTR_FMTx__: '"lx"',
|
|
7041
|
+
__UINTPTR_MAX__: "18446744073709551615UL",
|
|
7042
|
+
__UINTPTR_TYPE__: "long unsigned int",
|
|
7043
|
+
__UINTPTR_WIDTH__: "64",
|
|
7044
|
+
__UINT_FAST16_FMTX__: '"hX"',
|
|
7045
|
+
__UINT_FAST16_FMTo__: '"ho"',
|
|
7046
|
+
__UINT_FAST16_FMTu__: '"hu"',
|
|
7047
|
+
__UINT_FAST16_FMTx__: '"hx"',
|
|
7048
|
+
__UINT_FAST16_MAX__: "65535",
|
|
7049
|
+
__UINT_FAST16_TYPE__: "unsigned short",
|
|
7050
|
+
__UINT_FAST32_FMTX__: '"X"',
|
|
7051
|
+
__UINT_FAST32_FMTo__: '"o"',
|
|
7052
|
+
__UINT_FAST32_FMTu__: '"u"',
|
|
7053
|
+
__UINT_FAST32_FMTx__: '"x"',
|
|
7054
|
+
__UINT_FAST32_MAX__: "4294967295U",
|
|
7055
|
+
__UINT_FAST32_TYPE__: "unsigned int",
|
|
7056
|
+
__UINT_FAST64_FMTX__: '"llX"',
|
|
7057
|
+
__UINT_FAST64_FMTo__: '"llo"',
|
|
7058
|
+
__UINT_FAST64_FMTu__: '"llu"',
|
|
7059
|
+
__UINT_FAST64_FMTx__: '"llx"',
|
|
7060
|
+
__UINT_FAST64_MAX__: "18446744073709551615ULL",
|
|
7061
|
+
__UINT_FAST64_TYPE__: "long long unsigned int",
|
|
7062
|
+
__UINT_FAST8_FMTX__: '"hhX"',
|
|
7063
|
+
__UINT_FAST8_FMTo__: '"hho"',
|
|
7064
|
+
__UINT_FAST8_FMTu__: '"hhu"',
|
|
7065
|
+
__UINT_FAST8_FMTx__: '"hhx"',
|
|
7066
|
+
__UINT_FAST8_MAX__: "255",
|
|
7067
|
+
__UINT_FAST8_TYPE__: "unsigned char",
|
|
7068
|
+
__UINT_LEAST16_FMTX__: '"hX"',
|
|
7069
|
+
__UINT_LEAST16_FMTo__: '"ho"',
|
|
7070
|
+
__UINT_LEAST16_FMTu__: '"hu"',
|
|
7071
|
+
__UINT_LEAST16_FMTx__: '"hx"',
|
|
7072
|
+
__UINT_LEAST16_MAX__: "65535",
|
|
7073
|
+
__UINT_LEAST16_TYPE__: "unsigned short",
|
|
7074
|
+
__UINT_LEAST32_FMTX__: '"X"',
|
|
7075
|
+
__UINT_LEAST32_FMTo__: '"o"',
|
|
7076
|
+
__UINT_LEAST32_FMTu__: '"u"',
|
|
7077
|
+
__UINT_LEAST32_FMTx__: '"x"',
|
|
7078
|
+
__UINT_LEAST32_MAX__: "4294967295U",
|
|
7079
|
+
__UINT_LEAST32_TYPE__: "unsigned int",
|
|
7080
|
+
__UINT_LEAST64_FMTX__: '"llX"',
|
|
7081
|
+
__UINT_LEAST64_FMTo__: '"llo"',
|
|
7082
|
+
__UINT_LEAST64_FMTu__: '"llu"',
|
|
7083
|
+
__UINT_LEAST64_FMTx__: '"llx"',
|
|
7084
|
+
__UINT_LEAST64_MAX__: "18446744073709551615ULL",
|
|
7085
|
+
__UINT_LEAST64_TYPE__: "long long unsigned int",
|
|
7086
|
+
__UINT_LEAST8_FMTX__: '"hhX"',
|
|
7087
|
+
__UINT_LEAST8_FMTo__: '"hho"',
|
|
7088
|
+
__UINT_LEAST8_FMTu__: '"hhu"',
|
|
7089
|
+
__UINT_LEAST8_FMTx__: '"hhx"',
|
|
7090
|
+
__UINT_LEAST8_MAX__: "255",
|
|
7091
|
+
__UINT_LEAST8_TYPE__: "unsigned char",
|
|
7092
|
+
__USER_LABEL_PREFIX__: "_",
|
|
7093
|
+
__VERSION__: '"Clang 21.0.0"',
|
|
7094
|
+
__WCHAR_MAX__: "2147483647",
|
|
7095
|
+
__WCHAR_TYPE__: "int",
|
|
7096
|
+
__WCHAR_WIDTH__: "32",
|
|
7097
|
+
__WINT_MAX__: "2147483647",
|
|
7098
|
+
__WINT_TYPE__: "int",
|
|
7099
|
+
__WINT_WIDTH__: "32",
|
|
7100
|
+
__aarch64__: "1",
|
|
7101
|
+
__arm64: "1",
|
|
7102
|
+
__arm64__: "1",
|
|
7103
|
+
__block: "__attribute__((__blocks__(byref)))",
|
|
7104
|
+
__clang__: "1",
|
|
7105
|
+
__clang_literal_encoding__: '"UTF-8"',
|
|
7106
|
+
__clang_major__: "21",
|
|
7107
|
+
__clang_minor__: "0",
|
|
7108
|
+
__clang_patchlevel__: "0",
|
|
7109
|
+
__clang_version__: '"21.0.0 "',
|
|
7110
|
+
__clang_wide_literal_encoding__: '"UTF-32"',
|
|
7111
|
+
__llvm__: "1",
|
|
7112
|
+
__nonnull: "_Nonnull",
|
|
7113
|
+
__null_unspecified: "_Null_unspecified",
|
|
7114
|
+
__nullable: "_Nullable",
|
|
7115
|
+
__pic__: "2",
|
|
7116
|
+
__strong: null,
|
|
7117
|
+
__unsafe_unretained: null,
|
|
7118
|
+
__weak: "__attribute__((objc_gc(weak)))"
|
|
7119
|
+
},
|
|
7120
|
+
"c++": {
|
|
7121
|
+
TARGET_IPHONE_SIMULATOR: "0",
|
|
7122
|
+
TARGET_OS_DRIVERKIT: "0",
|
|
7123
|
+
TARGET_OS_EMBEDDED: "1",
|
|
7124
|
+
TARGET_OS_FIRMWARE: "0",
|
|
7125
|
+
TARGET_OS_IOS: "1",
|
|
7126
|
+
TARGET_OS_IPHONE: "1",
|
|
7127
|
+
TARGET_OS_LINUX: "0",
|
|
7128
|
+
TARGET_OS_MAC: "1",
|
|
7129
|
+
TARGET_OS_MACCATALYST: "0",
|
|
7130
|
+
TARGET_OS_NANO: "0",
|
|
7131
|
+
TARGET_OS_OSX: "0",
|
|
7132
|
+
TARGET_OS_SIMULATOR: "0",
|
|
7133
|
+
TARGET_OS_TV: "0",
|
|
7134
|
+
TARGET_OS_UEFI: "0",
|
|
7135
|
+
TARGET_OS_UIKITFORMAC: "0",
|
|
7136
|
+
TARGET_OS_UNIX: "0",
|
|
7137
|
+
TARGET_OS_VISION: "0",
|
|
7138
|
+
TARGET_OS_WATCH: "0",
|
|
7139
|
+
TARGET_OS_WIN32: "0",
|
|
7140
|
+
TARGET_OS_WINDOWS: "0",
|
|
7141
|
+
_LP64: "1",
|
|
7142
|
+
__AARCH64EL__: "1",
|
|
7143
|
+
__AARCH64_CMODEL_SMALL__: "1",
|
|
7144
|
+
__AARCH64_SIMD__: "1",
|
|
7145
|
+
__APPLE_CC__: "6000",
|
|
7146
|
+
__APPLE__: "1",
|
|
7147
|
+
__ARM64_ARCH_8__: "1",
|
|
7148
|
+
__ARM_64BIT_STATE: "1",
|
|
7149
|
+
__ARM_ACLE: "202420",
|
|
7150
|
+
__ARM_ACLE_VERSION: "(year,quarter,patch) (100 * (year) + 10 * (quarter) + (patch))",
|
|
7151
|
+
__ARM_ALIGN_MAX_STACK_PWR: "4",
|
|
7152
|
+
__ARM_ARCH: "8",
|
|
7153
|
+
__ARM_ARCH_ISA_A64: "1",
|
|
7154
|
+
__ARM_ARCH_PROFILE: "'A'",
|
|
7155
|
+
__ARM_FEATURE_AES: "1",
|
|
7156
|
+
__ARM_FEATURE_CLZ: "1",
|
|
7157
|
+
__ARM_FEATURE_CRYPTO: "1",
|
|
7158
|
+
__ARM_FEATURE_DIRECTED_ROUNDING: "1",
|
|
7159
|
+
__ARM_FEATURE_DIV: "1",
|
|
7160
|
+
__ARM_FEATURE_FMA: "1",
|
|
7161
|
+
__ARM_FEATURE_IDIV: "1",
|
|
7162
|
+
__ARM_FEATURE_LDREX: "0xF",
|
|
7163
|
+
__ARM_FEATURE_NUMERIC_MAXMIN: "1",
|
|
7164
|
+
__ARM_FEATURE_SHA2: "1",
|
|
7165
|
+
__ARM_FEATURE_UNALIGNED: "1",
|
|
7166
|
+
__ARM_FP: "0xE",
|
|
7167
|
+
__ARM_FP16_ARGS: "1",
|
|
7168
|
+
__ARM_FP16_FORMAT_IEEE: "1",
|
|
7169
|
+
__ARM_NEON: "1",
|
|
7170
|
+
__ARM_NEON_FP: "0xE",
|
|
7171
|
+
__ARM_NEON_SVE_BRIDGE: "1",
|
|
7172
|
+
__ARM_NEON__: "1",
|
|
7173
|
+
__ARM_PCS_AAPCS64: "1",
|
|
7174
|
+
__ARM_SIZEOF_MINIMAL_ENUM: "4",
|
|
7175
|
+
__ARM_SIZEOF_WCHAR_T: "4",
|
|
7176
|
+
__ARM_STATE_ZA: "1",
|
|
7177
|
+
__ARM_STATE_ZT0: "1",
|
|
7178
|
+
__ATOMIC_ACQUIRE: "2",
|
|
7179
|
+
__ATOMIC_ACQ_REL: "4",
|
|
7180
|
+
__ATOMIC_CONSUME: "1",
|
|
7181
|
+
__ATOMIC_RELAXED: "0",
|
|
7182
|
+
__ATOMIC_RELEASE: "3",
|
|
7183
|
+
__ATOMIC_SEQ_CST: "5",
|
|
7184
|
+
__BIGGEST_ALIGNMENT__: "8",
|
|
7185
|
+
__BITINT_MAXWIDTH__: "128",
|
|
7186
|
+
__BLOCKS__: "1",
|
|
7187
|
+
__BOOL_WIDTH__: "1",
|
|
7188
|
+
__BYTE_ORDER__: "__ORDER_LITTLE_ENDIAN__",
|
|
7189
|
+
__CHAR16_TYPE__: "unsigned short",
|
|
7190
|
+
__CHAR32_TYPE__: "unsigned int",
|
|
7191
|
+
__CHAR_BIT__: "8",
|
|
7192
|
+
__CLANG_ATOMIC_BOOL_LOCK_FREE: "2",
|
|
7193
|
+
__CLANG_ATOMIC_CHAR16_T_LOCK_FREE: "2",
|
|
7194
|
+
__CLANG_ATOMIC_CHAR32_T_LOCK_FREE: "2",
|
|
7195
|
+
__CLANG_ATOMIC_CHAR_LOCK_FREE: "2",
|
|
7196
|
+
__CLANG_ATOMIC_INT_LOCK_FREE: "2",
|
|
7197
|
+
__CLANG_ATOMIC_LLONG_LOCK_FREE: "2",
|
|
7198
|
+
__CLANG_ATOMIC_LONG_LOCK_FREE: "2",
|
|
7199
|
+
__CLANG_ATOMIC_POINTER_LOCK_FREE: "2",
|
|
7200
|
+
__CLANG_ATOMIC_SHORT_LOCK_FREE: "2",
|
|
7201
|
+
__CLANG_ATOMIC_WCHAR_T_LOCK_FREE: "2",
|
|
7202
|
+
__CONSTANT_CFSTRINGS__: "1",
|
|
7203
|
+
__DBL_DECIMAL_DIG__: "17",
|
|
7204
|
+
__DBL_DENORM_MIN__: "4.9406564584124654e-324",
|
|
7205
|
+
__DBL_DIG__: "15",
|
|
7206
|
+
__DBL_EPSILON__: "2.2204460492503131e-16",
|
|
7207
|
+
__DBL_HAS_DENORM__: "1",
|
|
7208
|
+
__DBL_HAS_INFINITY__: "1",
|
|
7209
|
+
__DBL_HAS_QUIET_NAN__: "1",
|
|
7210
|
+
__DBL_MANT_DIG__: "53",
|
|
7211
|
+
__DBL_MAX_10_EXP__: "308",
|
|
7212
|
+
__DBL_MAX_EXP__: "1024",
|
|
7213
|
+
__DBL_MAX__: "1.7976931348623157e+308",
|
|
7214
|
+
__DBL_MIN_10_EXP__: "(-307)",
|
|
7215
|
+
__DBL_MIN_EXP__: "(-1021)",
|
|
7216
|
+
__DBL_MIN__: "2.2250738585072014e-308",
|
|
7217
|
+
__DBL_NORM_MAX__: "1.7976931348623157e+308",
|
|
7218
|
+
__DECIMAL_DIG__: "__LDBL_DECIMAL_DIG__",
|
|
7219
|
+
__DEPRECATED: "1",
|
|
7220
|
+
__DYNAMIC__: "1",
|
|
7221
|
+
__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__: "70000",
|
|
7222
|
+
__ENVIRONMENT_OS_VERSION_MIN_REQUIRED__: "70000",
|
|
7223
|
+
__EXCEPTIONS: "1",
|
|
7224
|
+
__FINITE_MATH_ONLY__: "0",
|
|
7225
|
+
__FLT16_DECIMAL_DIG__: "5",
|
|
7226
|
+
__FLT16_DENORM_MIN__: "5.9604644775390625e-8F16",
|
|
7227
|
+
__FLT16_DIG__: "3",
|
|
7228
|
+
__FLT16_EPSILON__: "9.765625e-4F16",
|
|
7229
|
+
__FLT16_HAS_DENORM__: "1",
|
|
7230
|
+
__FLT16_HAS_INFINITY__: "1",
|
|
7231
|
+
__FLT16_HAS_QUIET_NAN__: "1",
|
|
7232
|
+
__FLT16_MANT_DIG__: "11",
|
|
7233
|
+
__FLT16_MAX_10_EXP__: "4",
|
|
7234
|
+
__FLT16_MAX_EXP__: "16",
|
|
7235
|
+
__FLT16_MAX__: "6.5504e+4F16",
|
|
7236
|
+
__FLT16_MIN_10_EXP__: "(-4)",
|
|
7237
|
+
__FLT16_MIN_EXP__: "(-13)",
|
|
7238
|
+
__FLT16_MIN__: "6.103515625e-5F16",
|
|
7239
|
+
__FLT16_NORM_MAX__: "6.5504e+4F16",
|
|
7240
|
+
__FLT_DECIMAL_DIG__: "9",
|
|
7241
|
+
__FLT_DENORM_MIN__: "1.40129846e-45F",
|
|
7242
|
+
__FLT_DIG__: "6",
|
|
7243
|
+
__FLT_EPSILON__: "1.19209290e-7F",
|
|
7244
|
+
__FLT_HAS_DENORM__: "1",
|
|
7245
|
+
__FLT_HAS_INFINITY__: "1",
|
|
7246
|
+
__FLT_HAS_QUIET_NAN__: "1",
|
|
7247
|
+
__FLT_MANT_DIG__: "24",
|
|
7248
|
+
__FLT_MAX_10_EXP__: "38",
|
|
7249
|
+
__FLT_MAX_EXP__: "128",
|
|
7250
|
+
__FLT_MAX__: "3.40282347e+38F",
|
|
7251
|
+
__FLT_MIN_10_EXP__: "(-37)",
|
|
7252
|
+
__FLT_MIN_EXP__: "(-125)",
|
|
7253
|
+
__FLT_MIN__: "1.17549435e-38F",
|
|
7254
|
+
__FLT_NORM_MAX__: "3.40282347e+38F",
|
|
7255
|
+
__FLT_RADIX__: "2",
|
|
7256
|
+
__FPCLASS_NEGINF: "0x0004",
|
|
7257
|
+
__FPCLASS_NEGNORMAL: "0x0008",
|
|
7258
|
+
__FPCLASS_NEGSUBNORMAL: "0x0010",
|
|
7259
|
+
__FPCLASS_NEGZERO: "0x0020",
|
|
7260
|
+
__FPCLASS_POSINF: "0x0200",
|
|
7261
|
+
__FPCLASS_POSNORMAL: "0x0100",
|
|
7262
|
+
__FPCLASS_POSSUBNORMAL: "0x0080",
|
|
7263
|
+
__FPCLASS_POSZERO: "0x0040",
|
|
7264
|
+
__FPCLASS_QNAN: "0x0002",
|
|
7265
|
+
__FPCLASS_SNAN: "0x0001",
|
|
7266
|
+
__FP_FAST_FMA: "1",
|
|
7267
|
+
__FP_FAST_FMAF: "1",
|
|
7268
|
+
__FUNCTION_MULTI_VERSIONING_SUPPORT_LEVEL: "202430",
|
|
7269
|
+
__GCC_ASM_FLAG_OUTPUTS__: "1",
|
|
7270
|
+
__GCC_ATOMIC_BOOL_LOCK_FREE: "2",
|
|
7271
|
+
__GCC_ATOMIC_CHAR16_T_LOCK_FREE: "2",
|
|
7272
|
+
__GCC_ATOMIC_CHAR32_T_LOCK_FREE: "2",
|
|
7273
|
+
__GCC_ATOMIC_CHAR_LOCK_FREE: "2",
|
|
7274
|
+
__GCC_ATOMIC_INT_LOCK_FREE: "2",
|
|
7275
|
+
__GCC_ATOMIC_LLONG_LOCK_FREE: "2",
|
|
7276
|
+
__GCC_ATOMIC_LONG_LOCK_FREE: "2",
|
|
7277
|
+
__GCC_ATOMIC_POINTER_LOCK_FREE: "2",
|
|
7278
|
+
__GCC_ATOMIC_SHORT_LOCK_FREE: "2",
|
|
7279
|
+
__GCC_ATOMIC_TEST_AND_SET_TRUEVAL: "1",
|
|
7280
|
+
__GCC_ATOMIC_WCHAR_T_LOCK_FREE: "2",
|
|
7281
|
+
__GCC_CONSTRUCTIVE_SIZE: "64",
|
|
7282
|
+
__GCC_DESTRUCTIVE_SIZE: "256",
|
|
7283
|
+
__GCC_HAVE_DWARF2_CFI_ASM: "1",
|
|
7284
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1: "1",
|
|
7285
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16: "1",
|
|
7286
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2: "1",
|
|
7287
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4: "1",
|
|
7288
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8: "1",
|
|
7289
|
+
__GLIBCXX_BITSIZE_INT_N_0: "128",
|
|
7290
|
+
__GLIBCXX_TYPE_INT_N_0: "__int128",
|
|
7291
|
+
__GNUC_GNU_INLINE__: "1",
|
|
7292
|
+
__GNUC_MINOR__: "2",
|
|
7293
|
+
__GNUC_PATCHLEVEL__: "1",
|
|
7294
|
+
__GNUC__: "4",
|
|
7295
|
+
__GNUG__: "4",
|
|
7296
|
+
__GXX_ABI_VERSION: "1002",
|
|
7297
|
+
__GXX_EXPERIMENTAL_CXX0X__: "1",
|
|
7298
|
+
__GXX_RTTI: "1",
|
|
7299
|
+
__GXX_WEAK__: "1",
|
|
7300
|
+
__HAVE_FUNCTION_MULTI_VERSIONING: "1",
|
|
7301
|
+
__INT16_C: "(c) c",
|
|
7302
|
+
__INT16_C_SUFFIX__: null,
|
|
7303
|
+
__INT16_FMTd__: '"hd"',
|
|
7304
|
+
__INT16_FMTi__: '"hi"',
|
|
7305
|
+
__INT16_MAX__: "32767",
|
|
7306
|
+
__INT16_TYPE__: "short",
|
|
7307
|
+
__INT32_C: "(c) c",
|
|
7308
|
+
__INT32_C_SUFFIX__: null,
|
|
7309
|
+
__INT32_FMTd__: '"d"',
|
|
7310
|
+
__INT32_FMTi__: '"i"',
|
|
7311
|
+
__INT32_MAX__: "2147483647",
|
|
7312
|
+
__INT32_TYPE__: "int",
|
|
7313
|
+
__INT64_C: "(c) c##LL",
|
|
7314
|
+
__INT64_C_SUFFIX__: "LL",
|
|
7315
|
+
__INT64_FMTd__: '"lld"',
|
|
7316
|
+
__INT64_FMTi__: '"lli"',
|
|
7317
|
+
__INT64_MAX__: "9223372036854775807LL",
|
|
7318
|
+
__INT64_TYPE__: "long long int",
|
|
7319
|
+
__INT8_C: "(c) c",
|
|
7320
|
+
__INT8_C_SUFFIX__: null,
|
|
7321
|
+
__INT8_FMTd__: '"hhd"',
|
|
7322
|
+
__INT8_FMTi__: '"hhi"',
|
|
7323
|
+
__INT8_MAX__: "127",
|
|
7324
|
+
__INT8_TYPE__: "signed char",
|
|
7325
|
+
__INTMAX_C: "(c) c##L",
|
|
7326
|
+
__INTMAX_C_SUFFIX__: "L",
|
|
7327
|
+
__INTMAX_FMTd__: '"ld"',
|
|
7328
|
+
__INTMAX_FMTi__: '"li"',
|
|
7329
|
+
__INTMAX_MAX__: "9223372036854775807L",
|
|
7330
|
+
__INTMAX_TYPE__: "long int",
|
|
7331
|
+
__INTMAX_WIDTH__: "64",
|
|
7332
|
+
__INTPTR_FMTd__: '"ld"',
|
|
7333
|
+
__INTPTR_FMTi__: '"li"',
|
|
7334
|
+
__INTPTR_MAX__: "9223372036854775807L",
|
|
7335
|
+
__INTPTR_TYPE__: "long int",
|
|
7336
|
+
__INTPTR_WIDTH__: "64",
|
|
7337
|
+
__INT_FAST16_FMTd__: '"hd"',
|
|
7338
|
+
__INT_FAST16_FMTi__: '"hi"',
|
|
7339
|
+
__INT_FAST16_MAX__: "32767",
|
|
7340
|
+
__INT_FAST16_TYPE__: "short",
|
|
7341
|
+
__INT_FAST16_WIDTH__: "16",
|
|
7342
|
+
__INT_FAST32_FMTd__: '"d"',
|
|
7343
|
+
__INT_FAST32_FMTi__: '"i"',
|
|
7344
|
+
__INT_FAST32_MAX__: "2147483647",
|
|
7345
|
+
__INT_FAST32_TYPE__: "int",
|
|
7346
|
+
__INT_FAST32_WIDTH__: "32",
|
|
7347
|
+
__INT_FAST64_FMTd__: '"lld"',
|
|
7348
|
+
__INT_FAST64_FMTi__: '"lli"',
|
|
7349
|
+
__INT_FAST64_MAX__: "9223372036854775807LL",
|
|
7350
|
+
__INT_FAST64_TYPE__: "long long int",
|
|
7351
|
+
__INT_FAST64_WIDTH__: "64",
|
|
7352
|
+
__INT_FAST8_FMTd__: '"hhd"',
|
|
7353
|
+
__INT_FAST8_FMTi__: '"hhi"',
|
|
7354
|
+
__INT_FAST8_MAX__: "127",
|
|
7355
|
+
__INT_FAST8_TYPE__: "signed char",
|
|
7356
|
+
__INT_FAST8_WIDTH__: "8",
|
|
7357
|
+
__INT_LEAST16_FMTd__: '"hd"',
|
|
7358
|
+
__INT_LEAST16_FMTi__: '"hi"',
|
|
7359
|
+
__INT_LEAST16_MAX__: "32767",
|
|
7360
|
+
__INT_LEAST16_TYPE__: "short",
|
|
7361
|
+
__INT_LEAST16_WIDTH__: "16",
|
|
7362
|
+
__INT_LEAST32_FMTd__: '"d"',
|
|
7363
|
+
__INT_LEAST32_FMTi__: '"i"',
|
|
7364
|
+
__INT_LEAST32_MAX__: "2147483647",
|
|
7365
|
+
__INT_LEAST32_TYPE__: "int",
|
|
7366
|
+
__INT_LEAST32_WIDTH__: "32",
|
|
7367
|
+
__INT_LEAST64_FMTd__: '"lld"',
|
|
7368
|
+
__INT_LEAST64_FMTi__: '"lli"',
|
|
7369
|
+
__INT_LEAST64_MAX__: "9223372036854775807LL",
|
|
7370
|
+
__INT_LEAST64_TYPE__: "long long int",
|
|
7371
|
+
__INT_LEAST64_WIDTH__: "64",
|
|
7372
|
+
__INT_LEAST8_FMTd__: '"hhd"',
|
|
7373
|
+
__INT_LEAST8_FMTi__: '"hhi"',
|
|
7374
|
+
__INT_LEAST8_MAX__: "127",
|
|
7375
|
+
__INT_LEAST8_TYPE__: "signed char",
|
|
7376
|
+
__INT_LEAST8_WIDTH__: "8",
|
|
7377
|
+
__INT_MAX__: "2147483647",
|
|
7378
|
+
__INT_WIDTH__: "32",
|
|
7379
|
+
__LDBL_DECIMAL_DIG__: "17",
|
|
7380
|
+
__LDBL_DENORM_MIN__: "4.9406564584124654e-324L",
|
|
7381
|
+
__LDBL_DIG__: "15",
|
|
7382
|
+
__LDBL_EPSILON__: "2.2204460492503131e-16L",
|
|
7383
|
+
__LDBL_HAS_DENORM__: "1",
|
|
7384
|
+
__LDBL_HAS_INFINITY__: "1",
|
|
7385
|
+
__LDBL_HAS_QUIET_NAN__: "1",
|
|
7386
|
+
__LDBL_MANT_DIG__: "53",
|
|
7387
|
+
__LDBL_MAX_10_EXP__: "308",
|
|
7388
|
+
__LDBL_MAX_EXP__: "1024",
|
|
7389
|
+
__LDBL_MAX__: "1.7976931348623157e+308L",
|
|
7390
|
+
__LDBL_MIN_10_EXP__: "(-307)",
|
|
7391
|
+
__LDBL_MIN_EXP__: "(-1021)",
|
|
7392
|
+
__LDBL_MIN__: "2.2250738585072014e-308L",
|
|
7393
|
+
__LDBL_NORM_MAX__: "1.7976931348623157e+308L",
|
|
7394
|
+
__LITTLE_ENDIAN__: "1",
|
|
7395
|
+
__LLONG_WIDTH__: "64",
|
|
7396
|
+
__LONG_LONG_MAX__: "9223372036854775807LL",
|
|
7397
|
+
__LONG_MAX__: "9223372036854775807L",
|
|
7398
|
+
__LONG_WIDTH__: "64",
|
|
7399
|
+
__LP64__: "1",
|
|
7400
|
+
__MACH__: "1",
|
|
7401
|
+
__MEMORY_SCOPE_DEVICE: "1",
|
|
7402
|
+
__MEMORY_SCOPE_SINGLE: "4",
|
|
7403
|
+
__MEMORY_SCOPE_SYSTEM: "0",
|
|
7404
|
+
__MEMORY_SCOPE_WRKGRP: "2",
|
|
7405
|
+
__MEMORY_SCOPE_WVFRNT: "3",
|
|
7406
|
+
__NO_INLINE__: "1",
|
|
7407
|
+
__NO_MATH_ERRNO__: "1",
|
|
7408
|
+
__OBJC_BOOL_IS_BOOL: "1",
|
|
7409
|
+
__OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES: "3",
|
|
7410
|
+
__OPENCL_MEMORY_SCOPE_DEVICE: "2",
|
|
7411
|
+
__OPENCL_MEMORY_SCOPE_SUB_GROUP: "4",
|
|
7412
|
+
__OPENCL_MEMORY_SCOPE_WORK_GROUP: "1",
|
|
7413
|
+
__OPENCL_MEMORY_SCOPE_WORK_ITEM: "0",
|
|
7414
|
+
__ORDER_BIG_ENDIAN__: "4321",
|
|
7415
|
+
__ORDER_LITTLE_ENDIAN__: "1234",
|
|
7416
|
+
__ORDER_PDP_ENDIAN__: "3412",
|
|
7417
|
+
__PIC__: "2",
|
|
7418
|
+
__POINTER_WIDTH__: "64",
|
|
7419
|
+
__PRAGMA_REDEFINE_EXTNAME: "1",
|
|
7420
|
+
__PTRDIFF_FMTd__: '"ld"',
|
|
7421
|
+
__PTRDIFF_FMTi__: '"li"',
|
|
7422
|
+
__PTRDIFF_MAX__: "9223372036854775807L",
|
|
7423
|
+
__PTRDIFF_TYPE__: "long int",
|
|
7424
|
+
__PTRDIFF_WIDTH__: "64",
|
|
7425
|
+
__REGISTER_PREFIX__: null,
|
|
7426
|
+
__SCHAR_MAX__: "127",
|
|
7427
|
+
__SHRT_MAX__: "32767",
|
|
7428
|
+
__SHRT_WIDTH__: "16",
|
|
7429
|
+
__SIG_ATOMIC_MAX__: "2147483647",
|
|
7430
|
+
__SIG_ATOMIC_WIDTH__: "32",
|
|
7431
|
+
__SIZEOF_DOUBLE__: "8",
|
|
7432
|
+
__SIZEOF_FLOAT__: "4",
|
|
7433
|
+
__SIZEOF_INT128__: "16",
|
|
7434
|
+
__SIZEOF_INT__: "4",
|
|
7435
|
+
__SIZEOF_LONG_DOUBLE__: "8",
|
|
7436
|
+
__SIZEOF_LONG_LONG__: "8",
|
|
7437
|
+
__SIZEOF_LONG__: "8",
|
|
7438
|
+
__SIZEOF_POINTER__: "8",
|
|
7439
|
+
__SIZEOF_PTRDIFF_T__: "8",
|
|
7440
|
+
__SIZEOF_SHORT__: "2",
|
|
7441
|
+
__SIZEOF_SIZE_T__: "8",
|
|
7442
|
+
__SIZEOF_WCHAR_T__: "4",
|
|
7443
|
+
__SIZEOF_WINT_T__: "4",
|
|
7444
|
+
__SIZE_FMTX__: '"lX"',
|
|
7445
|
+
__SIZE_FMTo__: '"lo"',
|
|
7446
|
+
__SIZE_FMTu__: '"lu"',
|
|
7447
|
+
__SIZE_FMTx__: '"lx"',
|
|
7448
|
+
__SIZE_MAX__: "18446744073709551615UL",
|
|
7449
|
+
__SIZE_TYPE__: "long unsigned int",
|
|
7450
|
+
__SIZE_WIDTH__: "64",
|
|
7451
|
+
__SSP__: "1",
|
|
7452
|
+
__STDCPP_DEFAULT_NEW_ALIGNMENT__: "16UL",
|
|
7453
|
+
__STDCPP_THREADS__: "1",
|
|
7454
|
+
__STDC_EMBED_EMPTY__: "2",
|
|
7455
|
+
__STDC_EMBED_FOUND__: "1",
|
|
7456
|
+
__STDC_EMBED_NOT_FOUND__: "0",
|
|
7457
|
+
__STDC_HOSTED__: "1",
|
|
7458
|
+
__STDC_NO_THREADS__: "1",
|
|
7459
|
+
__STDC_UTF_16__: "1",
|
|
7460
|
+
__STDC_UTF_32__: "1",
|
|
7461
|
+
__STDC__: "1",
|
|
7462
|
+
__UINT16_C: "(c) c",
|
|
7463
|
+
__UINT16_C_SUFFIX__: null,
|
|
7464
|
+
__UINT16_FMTX__: '"hX"',
|
|
7465
|
+
__UINT16_FMTo__: '"ho"',
|
|
7466
|
+
__UINT16_FMTu__: '"hu"',
|
|
7467
|
+
__UINT16_FMTx__: '"hx"',
|
|
7468
|
+
__UINT16_MAX__: "65535",
|
|
7469
|
+
__UINT16_TYPE__: "unsigned short",
|
|
7470
|
+
__UINT32_C: "(c) c##U",
|
|
7471
|
+
__UINT32_C_SUFFIX__: "U",
|
|
7472
|
+
__UINT32_FMTX__: '"X"',
|
|
7473
|
+
__UINT32_FMTo__: '"o"',
|
|
7474
|
+
__UINT32_FMTu__: '"u"',
|
|
7475
|
+
__UINT32_FMTx__: '"x"',
|
|
7476
|
+
__UINT32_MAX__: "4294967295U",
|
|
7477
|
+
__UINT32_TYPE__: "unsigned int",
|
|
7478
|
+
__UINT64_C: "(c) c##ULL",
|
|
7479
|
+
__UINT64_C_SUFFIX__: "ULL",
|
|
7480
|
+
__UINT64_FMTX__: '"llX"',
|
|
7481
|
+
__UINT64_FMTo__: '"llo"',
|
|
7482
|
+
__UINT64_FMTu__: '"llu"',
|
|
7483
|
+
__UINT64_FMTx__: '"llx"',
|
|
7484
|
+
__UINT64_MAX__: "18446744073709551615ULL",
|
|
7485
|
+
__UINT64_TYPE__: "long long unsigned int",
|
|
7486
|
+
__UINT8_C: "(c) c",
|
|
7487
|
+
__UINT8_C_SUFFIX__: null,
|
|
7488
|
+
__UINT8_FMTX__: '"hhX"',
|
|
7489
|
+
__UINT8_FMTo__: '"hho"',
|
|
7490
|
+
__UINT8_FMTu__: '"hhu"',
|
|
7491
|
+
__UINT8_FMTx__: '"hhx"',
|
|
7492
|
+
__UINT8_MAX__: "255",
|
|
7493
|
+
__UINT8_TYPE__: "unsigned char",
|
|
7494
|
+
__UINTMAX_C: "(c) c##UL",
|
|
7495
|
+
__UINTMAX_C_SUFFIX__: "UL",
|
|
7496
|
+
__UINTMAX_FMTX__: '"lX"',
|
|
7497
|
+
__UINTMAX_FMTo__: '"lo"',
|
|
7498
|
+
__UINTMAX_FMTu__: '"lu"',
|
|
7499
|
+
__UINTMAX_FMTx__: '"lx"',
|
|
7500
|
+
__UINTMAX_MAX__: "18446744073709551615UL",
|
|
7501
|
+
__UINTMAX_TYPE__: "long unsigned int",
|
|
7502
|
+
__UINTMAX_WIDTH__: "64",
|
|
7503
|
+
__UINTPTR_FMTX__: '"lX"',
|
|
7504
|
+
__UINTPTR_FMTo__: '"lo"',
|
|
7505
|
+
__UINTPTR_FMTu__: '"lu"',
|
|
7506
|
+
__UINTPTR_FMTx__: '"lx"',
|
|
7507
|
+
__UINTPTR_MAX__: "18446744073709551615UL",
|
|
7508
|
+
__UINTPTR_TYPE__: "long unsigned int",
|
|
7509
|
+
__UINTPTR_WIDTH__: "64",
|
|
7510
|
+
__UINT_FAST16_FMTX__: '"hX"',
|
|
7511
|
+
__UINT_FAST16_FMTo__: '"ho"',
|
|
7512
|
+
__UINT_FAST16_FMTu__: '"hu"',
|
|
7513
|
+
__UINT_FAST16_FMTx__: '"hx"',
|
|
7514
|
+
__UINT_FAST16_MAX__: "65535",
|
|
7515
|
+
__UINT_FAST16_TYPE__: "unsigned short",
|
|
7516
|
+
__UINT_FAST32_FMTX__: '"X"',
|
|
7517
|
+
__UINT_FAST32_FMTo__: '"o"',
|
|
7518
|
+
__UINT_FAST32_FMTu__: '"u"',
|
|
7519
|
+
__UINT_FAST32_FMTx__: '"x"',
|
|
7520
|
+
__UINT_FAST32_MAX__: "4294967295U",
|
|
7521
|
+
__UINT_FAST32_TYPE__: "unsigned int",
|
|
7522
|
+
__UINT_FAST64_FMTX__: '"llX"',
|
|
7523
|
+
__UINT_FAST64_FMTo__: '"llo"',
|
|
7524
|
+
__UINT_FAST64_FMTu__: '"llu"',
|
|
7525
|
+
__UINT_FAST64_FMTx__: '"llx"',
|
|
7526
|
+
__UINT_FAST64_MAX__: "18446744073709551615ULL",
|
|
7527
|
+
__UINT_FAST64_TYPE__: "long long unsigned int",
|
|
7528
|
+
__UINT_FAST8_FMTX__: '"hhX"',
|
|
7529
|
+
__UINT_FAST8_FMTo__: '"hho"',
|
|
7530
|
+
__UINT_FAST8_FMTu__: '"hhu"',
|
|
7531
|
+
__UINT_FAST8_FMTx__: '"hhx"',
|
|
7532
|
+
__UINT_FAST8_MAX__: "255",
|
|
7533
|
+
__UINT_FAST8_TYPE__: "unsigned char",
|
|
7534
|
+
__UINT_LEAST16_FMTX__: '"hX"',
|
|
7535
|
+
__UINT_LEAST16_FMTo__: '"ho"',
|
|
7536
|
+
__UINT_LEAST16_FMTu__: '"hu"',
|
|
7537
|
+
__UINT_LEAST16_FMTx__: '"hx"',
|
|
7538
|
+
__UINT_LEAST16_MAX__: "65535",
|
|
7539
|
+
__UINT_LEAST16_TYPE__: "unsigned short",
|
|
7540
|
+
__UINT_LEAST32_FMTX__: '"X"',
|
|
7541
|
+
__UINT_LEAST32_FMTo__: '"o"',
|
|
7542
|
+
__UINT_LEAST32_FMTu__: '"u"',
|
|
7543
|
+
__UINT_LEAST32_FMTx__: '"x"',
|
|
7544
|
+
__UINT_LEAST32_MAX__: "4294967295U",
|
|
7545
|
+
__UINT_LEAST32_TYPE__: "unsigned int",
|
|
7546
|
+
__UINT_LEAST64_FMTX__: '"llX"',
|
|
7547
|
+
__UINT_LEAST64_FMTo__: '"llo"',
|
|
7548
|
+
__UINT_LEAST64_FMTu__: '"llu"',
|
|
7549
|
+
__UINT_LEAST64_FMTx__: '"llx"',
|
|
7550
|
+
__UINT_LEAST64_MAX__: "18446744073709551615ULL",
|
|
7551
|
+
__UINT_LEAST64_TYPE__: "long long unsigned int",
|
|
7552
|
+
__UINT_LEAST8_FMTX__: '"hhX"',
|
|
7553
|
+
__UINT_LEAST8_FMTo__: '"hho"',
|
|
7554
|
+
__UINT_LEAST8_FMTu__: '"hhu"',
|
|
7555
|
+
__UINT_LEAST8_FMTx__: '"hhx"',
|
|
7556
|
+
__UINT_LEAST8_MAX__: "255",
|
|
7557
|
+
__UINT_LEAST8_TYPE__: "unsigned char",
|
|
7558
|
+
__USER_LABEL_PREFIX__: "_",
|
|
7559
|
+
__VERSION__: '"Clang 21.0.0"',
|
|
7560
|
+
__WCHAR_MAX__: "2147483647",
|
|
7561
|
+
__WCHAR_TYPE__: "int",
|
|
7562
|
+
__WCHAR_WIDTH__: "32",
|
|
7563
|
+
__WINT_MAX__: "2147483647",
|
|
7564
|
+
__WINT_TYPE__: "int",
|
|
7565
|
+
__WINT_WIDTH__: "32",
|
|
7566
|
+
__aarch64__: "1",
|
|
7567
|
+
__arm64: "1",
|
|
7568
|
+
__arm64__: "1",
|
|
7569
|
+
__block: "__attribute__((__blocks__(byref)))",
|
|
7570
|
+
__clang__: "1",
|
|
7571
|
+
__clang_literal_encoding__: '"UTF-8"',
|
|
7572
|
+
__clang_major__: "21",
|
|
7573
|
+
__clang_minor__: "0",
|
|
7574
|
+
__clang_patchlevel__: "0",
|
|
7575
|
+
__clang_version__: '"21.0.0 "',
|
|
7576
|
+
__clang_wide_literal_encoding__: '"UTF-32"',
|
|
7577
|
+
__cplusplus: "201703L",
|
|
7578
|
+
__cpp_aggregate_bases: "201603L",
|
|
7579
|
+
__cpp_aggregate_nsdmi: "201304L",
|
|
7580
|
+
__cpp_alias_templates: "200704L",
|
|
7581
|
+
__cpp_attributes: "200809L",
|
|
7582
|
+
__cpp_binary_literals: "201304L",
|
|
7583
|
+
__cpp_capture_star_this: "201603L",
|
|
7584
|
+
__cpp_constexpr: "201603L",
|
|
7585
|
+
__cpp_constexpr_in_decltype: "201711L",
|
|
7586
|
+
__cpp_decltype: "200707L",
|
|
7587
|
+
__cpp_decltype_auto: "201304L",
|
|
7588
|
+
__cpp_deduction_guides: "201703L",
|
|
7589
|
+
__cpp_delegating_constructors: "200604L",
|
|
7590
|
+
__cpp_deleted_function: "202403L",
|
|
7591
|
+
__cpp_digit_separators: "201309L",
|
|
7592
|
+
__cpp_enumerator_attributes: "201411L",
|
|
7593
|
+
__cpp_exceptions: "199711L",
|
|
7594
|
+
__cpp_fold_expressions: "201603L",
|
|
7595
|
+
__cpp_generic_lambdas: "201304L",
|
|
7596
|
+
__cpp_guaranteed_copy_elision: "201606L",
|
|
7597
|
+
__cpp_hex_float: "201603L",
|
|
7598
|
+
__cpp_if_constexpr: "201606L",
|
|
7599
|
+
__cpp_impl_destroying_delete: "201806L",
|
|
7600
|
+
__cpp_inheriting_constructors: "201511L",
|
|
7601
|
+
__cpp_init_captures: "201304L",
|
|
7602
|
+
__cpp_initializer_lists: "200806L",
|
|
7603
|
+
__cpp_inline_variables: "201606L",
|
|
7604
|
+
__cpp_lambdas: "200907L",
|
|
7605
|
+
__cpp_named_character_escapes: "202207L",
|
|
7606
|
+
__cpp_namespace_attributes: "201411L",
|
|
7607
|
+
__cpp_nested_namespace_definitions: "201411L",
|
|
7608
|
+
__cpp_noexcept_function_type: "201510L",
|
|
7609
|
+
__cpp_nontype_template_args: "201411L",
|
|
7610
|
+
__cpp_nontype_template_parameter_auto: "201606L",
|
|
7611
|
+
__cpp_nsdmi: "200809L",
|
|
7612
|
+
__cpp_pack_indexing: "202311L",
|
|
7613
|
+
__cpp_placeholder_variables: "202306L",
|
|
7614
|
+
__cpp_range_based_for: "201603L",
|
|
7615
|
+
__cpp_raw_strings: "200710L",
|
|
7616
|
+
__cpp_ref_qualifiers: "200710L",
|
|
7617
|
+
__cpp_return_type_deduction: "201304L",
|
|
7618
|
+
__cpp_rtti: "199711L",
|
|
7619
|
+
__cpp_rvalue_references: "200610L",
|
|
7620
|
+
__cpp_static_assert: "202306L",
|
|
7621
|
+
__cpp_static_call_operator: "202207L",
|
|
7622
|
+
__cpp_structured_bindings: "202411L",
|
|
7623
|
+
__cpp_template_auto: "201606L",
|
|
7624
|
+
__cpp_template_template_args: "201611L",
|
|
7625
|
+
__cpp_threadsafe_static_init: "200806L",
|
|
7626
|
+
__cpp_unicode_characters: "200704L",
|
|
7627
|
+
__cpp_unicode_literals: "200710L",
|
|
7628
|
+
__cpp_user_defined_literals: "200809L",
|
|
7629
|
+
__cpp_variable_templates: "201304L",
|
|
7630
|
+
__cpp_variadic_friend: "202403L",
|
|
7631
|
+
__cpp_variadic_templates: "200704L",
|
|
7632
|
+
__cpp_variadic_using: "201611L",
|
|
7633
|
+
__llvm__: "1",
|
|
7634
|
+
__nonnull: "_Nonnull",
|
|
7635
|
+
__null_unspecified: "_Null_unspecified",
|
|
7636
|
+
__nullable: "_Nullable",
|
|
7637
|
+
__pic__: "2",
|
|
7638
|
+
__private_extern__: "extern",
|
|
7639
|
+
__strong: null,
|
|
7640
|
+
__unsafe_unretained: null,
|
|
7641
|
+
__weak: "__attribute__((objc_gc(weak)))"
|
|
7642
|
+
},
|
|
7643
|
+
"objective-c": {
|
|
7644
|
+
IBAction: "void)__attribute__((ibaction)",
|
|
7645
|
+
IBInspectable: null,
|
|
7646
|
+
IBOutlet: "__attribute__((iboutlet))",
|
|
7647
|
+
IBOutletCollection: "(ClassName) __attribute__((iboutletcollection(ClassName)))",
|
|
7648
|
+
IB_DESIGNABLE: null,
|
|
7649
|
+
OBJC_NEW_PROPERTIES: "1",
|
|
7650
|
+
OBJC_ZEROCOST_EXCEPTIONS: "1",
|
|
7651
|
+
TARGET_IPHONE_SIMULATOR: "0",
|
|
7652
|
+
TARGET_OS_DRIVERKIT: "0",
|
|
7653
|
+
TARGET_OS_EMBEDDED: "1",
|
|
7654
|
+
TARGET_OS_FIRMWARE: "0",
|
|
7655
|
+
TARGET_OS_IOS: "1",
|
|
7656
|
+
TARGET_OS_IPHONE: "1",
|
|
7657
|
+
TARGET_OS_LINUX: "0",
|
|
7658
|
+
TARGET_OS_MAC: "1",
|
|
7659
|
+
TARGET_OS_MACCATALYST: "0",
|
|
7660
|
+
TARGET_OS_NANO: "0",
|
|
7661
|
+
TARGET_OS_OSX: "0",
|
|
7662
|
+
TARGET_OS_SIMULATOR: "0",
|
|
7663
|
+
TARGET_OS_TV: "0",
|
|
7664
|
+
TARGET_OS_UEFI: "0",
|
|
7665
|
+
TARGET_OS_UIKITFORMAC: "0",
|
|
7666
|
+
TARGET_OS_UNIX: "0",
|
|
7667
|
+
TARGET_OS_VISION: "0",
|
|
7668
|
+
TARGET_OS_WATCH: "0",
|
|
7669
|
+
TARGET_OS_WIN32: "0",
|
|
7670
|
+
TARGET_OS_WINDOWS: "0",
|
|
7671
|
+
_LP64: "1",
|
|
7672
|
+
__AARCH64EL__: "1",
|
|
7673
|
+
__AARCH64_CMODEL_SMALL__: "1",
|
|
7674
|
+
__AARCH64_SIMD__: "1",
|
|
7675
|
+
__APPLE_CC__: "6000",
|
|
7676
|
+
__APPLE__: "1",
|
|
7677
|
+
__ARM64_ARCH_8__: "1",
|
|
7678
|
+
__ARM_64BIT_STATE: "1",
|
|
7679
|
+
__ARM_ACLE: "202420",
|
|
7680
|
+
__ARM_ACLE_VERSION: "(year,quarter,patch) (100 * (year) + 10 * (quarter) + (patch))",
|
|
7681
|
+
__ARM_ALIGN_MAX_STACK_PWR: "4",
|
|
7682
|
+
__ARM_ARCH: "8",
|
|
7683
|
+
__ARM_ARCH_ISA_A64: "1",
|
|
7684
|
+
__ARM_ARCH_PROFILE: "'A'",
|
|
7685
|
+
__ARM_FEATURE_AES: "1",
|
|
7686
|
+
__ARM_FEATURE_CLZ: "1",
|
|
7687
|
+
__ARM_FEATURE_CRYPTO: "1",
|
|
7688
|
+
__ARM_FEATURE_DIRECTED_ROUNDING: "1",
|
|
7689
|
+
__ARM_FEATURE_DIV: "1",
|
|
7690
|
+
__ARM_FEATURE_FMA: "1",
|
|
7691
|
+
__ARM_FEATURE_IDIV: "1",
|
|
7692
|
+
__ARM_FEATURE_LDREX: "0xF",
|
|
7693
|
+
__ARM_FEATURE_NUMERIC_MAXMIN: "1",
|
|
7694
|
+
__ARM_FEATURE_SHA2: "1",
|
|
7695
|
+
__ARM_FEATURE_UNALIGNED: "1",
|
|
7696
|
+
__ARM_FP: "0xE",
|
|
7697
|
+
__ARM_FP16_ARGS: "1",
|
|
7698
|
+
__ARM_FP16_FORMAT_IEEE: "1",
|
|
7699
|
+
__ARM_NEON: "1",
|
|
7700
|
+
__ARM_NEON_FP: "0xE",
|
|
7701
|
+
__ARM_NEON_SVE_BRIDGE: "1",
|
|
7702
|
+
__ARM_NEON__: "1",
|
|
7703
|
+
__ARM_PCS_AAPCS64: "1",
|
|
7704
|
+
__ARM_SIZEOF_MINIMAL_ENUM: "4",
|
|
7705
|
+
__ARM_SIZEOF_WCHAR_T: "4",
|
|
7706
|
+
__ARM_STATE_ZA: "1",
|
|
7707
|
+
__ARM_STATE_ZT0: "1",
|
|
7708
|
+
__ATOMIC_ACQUIRE: "2",
|
|
7709
|
+
__ATOMIC_ACQ_REL: "4",
|
|
7710
|
+
__ATOMIC_CONSUME: "1",
|
|
7711
|
+
__ATOMIC_RELAXED: "0",
|
|
7712
|
+
__ATOMIC_RELEASE: "3",
|
|
7713
|
+
__ATOMIC_SEQ_CST: "5",
|
|
7714
|
+
__BIGGEST_ALIGNMENT__: "8",
|
|
7715
|
+
__BITINT_MAXWIDTH__: "128",
|
|
7716
|
+
__BLOCKS__: "1",
|
|
7717
|
+
__BOOL_WIDTH__: "1",
|
|
7718
|
+
__BYTE_ORDER__: "__ORDER_LITTLE_ENDIAN__",
|
|
7719
|
+
__CHAR16_TYPE__: "unsigned short",
|
|
7720
|
+
__CHAR32_TYPE__: "unsigned int",
|
|
7721
|
+
__CHAR_BIT__: "8",
|
|
7722
|
+
__CLANG_ATOMIC_BOOL_LOCK_FREE: "2",
|
|
7723
|
+
__CLANG_ATOMIC_CHAR16_T_LOCK_FREE: "2",
|
|
7724
|
+
__CLANG_ATOMIC_CHAR32_T_LOCK_FREE: "2",
|
|
7725
|
+
__CLANG_ATOMIC_CHAR_LOCK_FREE: "2",
|
|
7726
|
+
__CLANG_ATOMIC_INT_LOCK_FREE: "2",
|
|
7727
|
+
__CLANG_ATOMIC_LLONG_LOCK_FREE: "2",
|
|
7728
|
+
__CLANG_ATOMIC_LONG_LOCK_FREE: "2",
|
|
7729
|
+
__CLANG_ATOMIC_POINTER_LOCK_FREE: "2",
|
|
7730
|
+
__CLANG_ATOMIC_SHORT_LOCK_FREE: "2",
|
|
7731
|
+
__CLANG_ATOMIC_WCHAR_T_LOCK_FREE: "2",
|
|
7732
|
+
__CONSTANT_CFSTRINGS__: "1",
|
|
7733
|
+
__DBL_DECIMAL_DIG__: "17",
|
|
7734
|
+
__DBL_DENORM_MIN__: "4.9406564584124654e-324",
|
|
7735
|
+
__DBL_DIG__: "15",
|
|
7736
|
+
__DBL_EPSILON__: "2.2204460492503131e-16",
|
|
7737
|
+
__DBL_HAS_DENORM__: "1",
|
|
7738
|
+
__DBL_HAS_INFINITY__: "1",
|
|
7739
|
+
__DBL_HAS_QUIET_NAN__: "1",
|
|
7740
|
+
__DBL_MANT_DIG__: "53",
|
|
7741
|
+
__DBL_MAX_10_EXP__: "308",
|
|
7742
|
+
__DBL_MAX_EXP__: "1024",
|
|
7743
|
+
__DBL_MAX__: "1.7976931348623157e+308",
|
|
7744
|
+
__DBL_MIN_10_EXP__: "(-307)",
|
|
7745
|
+
__DBL_MIN_EXP__: "(-1021)",
|
|
7746
|
+
__DBL_MIN__: "2.2250738585072014e-308",
|
|
7747
|
+
__DBL_NORM_MAX__: "1.7976931348623157e+308",
|
|
7748
|
+
__DECIMAL_DIG__: "__LDBL_DECIMAL_DIG__",
|
|
7749
|
+
__DYNAMIC__: "1",
|
|
7750
|
+
__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__: "70000",
|
|
7751
|
+
__ENVIRONMENT_OS_VERSION_MIN_REQUIRED__: "70000",
|
|
7752
|
+
__EXCEPTIONS: "1",
|
|
7753
|
+
__FINITE_MATH_ONLY__: "0",
|
|
7754
|
+
__FLT16_DECIMAL_DIG__: "5",
|
|
7755
|
+
__FLT16_DENORM_MIN__: "5.9604644775390625e-8F16",
|
|
7756
|
+
__FLT16_DIG__: "3",
|
|
7757
|
+
__FLT16_EPSILON__: "9.765625e-4F16",
|
|
7758
|
+
__FLT16_HAS_DENORM__: "1",
|
|
7759
|
+
__FLT16_HAS_INFINITY__: "1",
|
|
7760
|
+
__FLT16_HAS_QUIET_NAN__: "1",
|
|
7761
|
+
__FLT16_MANT_DIG__: "11",
|
|
7762
|
+
__FLT16_MAX_10_EXP__: "4",
|
|
7763
|
+
__FLT16_MAX_EXP__: "16",
|
|
7764
|
+
__FLT16_MAX__: "6.5504e+4F16",
|
|
7765
|
+
__FLT16_MIN_10_EXP__: "(-4)",
|
|
7766
|
+
__FLT16_MIN_EXP__: "(-13)",
|
|
7767
|
+
__FLT16_MIN__: "6.103515625e-5F16",
|
|
7768
|
+
__FLT16_NORM_MAX__: "6.5504e+4F16",
|
|
7769
|
+
__FLT_DECIMAL_DIG__: "9",
|
|
7770
|
+
__FLT_DENORM_MIN__: "1.40129846e-45F",
|
|
7771
|
+
__FLT_DIG__: "6",
|
|
7772
|
+
__FLT_EPSILON__: "1.19209290e-7F",
|
|
7773
|
+
__FLT_HAS_DENORM__: "1",
|
|
7774
|
+
__FLT_HAS_INFINITY__: "1",
|
|
7775
|
+
__FLT_HAS_QUIET_NAN__: "1",
|
|
7776
|
+
__FLT_MANT_DIG__: "24",
|
|
7777
|
+
__FLT_MAX_10_EXP__: "38",
|
|
7778
|
+
__FLT_MAX_EXP__: "128",
|
|
7779
|
+
__FLT_MAX__: "3.40282347e+38F",
|
|
7780
|
+
__FLT_MIN_10_EXP__: "(-37)",
|
|
7781
|
+
__FLT_MIN_EXP__: "(-125)",
|
|
7782
|
+
__FLT_MIN__: "1.17549435e-38F",
|
|
7783
|
+
__FLT_NORM_MAX__: "3.40282347e+38F",
|
|
7784
|
+
__FLT_RADIX__: "2",
|
|
7785
|
+
__FPCLASS_NEGINF: "0x0004",
|
|
7786
|
+
__FPCLASS_NEGNORMAL: "0x0008",
|
|
7787
|
+
__FPCLASS_NEGSUBNORMAL: "0x0010",
|
|
7788
|
+
__FPCLASS_NEGZERO: "0x0020",
|
|
7789
|
+
__FPCLASS_POSINF: "0x0200",
|
|
7790
|
+
__FPCLASS_POSNORMAL: "0x0100",
|
|
7791
|
+
__FPCLASS_POSSUBNORMAL: "0x0080",
|
|
7792
|
+
__FPCLASS_POSZERO: "0x0040",
|
|
7793
|
+
__FPCLASS_QNAN: "0x0002",
|
|
7794
|
+
__FPCLASS_SNAN: "0x0001",
|
|
7795
|
+
__FP_FAST_FMA: "1",
|
|
7796
|
+
__FP_FAST_FMAF: "1",
|
|
7797
|
+
__FUNCTION_MULTI_VERSIONING_SUPPORT_LEVEL: "202430",
|
|
7798
|
+
__GCC_ASM_FLAG_OUTPUTS__: "1",
|
|
7799
|
+
__GCC_ATOMIC_BOOL_LOCK_FREE: "2",
|
|
7800
|
+
__GCC_ATOMIC_CHAR16_T_LOCK_FREE: "2",
|
|
7801
|
+
__GCC_ATOMIC_CHAR32_T_LOCK_FREE: "2",
|
|
7802
|
+
__GCC_ATOMIC_CHAR_LOCK_FREE: "2",
|
|
7803
|
+
__GCC_ATOMIC_INT_LOCK_FREE: "2",
|
|
7804
|
+
__GCC_ATOMIC_LLONG_LOCK_FREE: "2",
|
|
7805
|
+
__GCC_ATOMIC_LONG_LOCK_FREE: "2",
|
|
7806
|
+
__GCC_ATOMIC_POINTER_LOCK_FREE: "2",
|
|
7807
|
+
__GCC_ATOMIC_SHORT_LOCK_FREE: "2",
|
|
7808
|
+
__GCC_ATOMIC_TEST_AND_SET_TRUEVAL: "1",
|
|
7809
|
+
__GCC_ATOMIC_WCHAR_T_LOCK_FREE: "2",
|
|
7810
|
+
__GCC_CONSTRUCTIVE_SIZE: "64",
|
|
7811
|
+
__GCC_DESTRUCTIVE_SIZE: "256",
|
|
7812
|
+
__GCC_HAVE_DWARF2_CFI_ASM: "1",
|
|
7813
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1: "1",
|
|
7814
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16: "1",
|
|
7815
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2: "1",
|
|
7816
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4: "1",
|
|
7817
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8: "1",
|
|
7818
|
+
__GNUC_MINOR__: "2",
|
|
7819
|
+
__GNUC_PATCHLEVEL__: "1",
|
|
7820
|
+
__GNUC_STDC_INLINE__: "1",
|
|
7821
|
+
__GNUC__: "4",
|
|
7822
|
+
__GXX_ABI_VERSION: "1002",
|
|
7823
|
+
__HAVE_FUNCTION_MULTI_VERSIONING: "1",
|
|
7824
|
+
__INT16_C: "(c) c",
|
|
7825
|
+
__INT16_C_SUFFIX__: null,
|
|
7826
|
+
__INT16_FMTd__: '"hd"',
|
|
7827
|
+
__INT16_FMTi__: '"hi"',
|
|
7828
|
+
__INT16_MAX__: "32767",
|
|
7829
|
+
__INT16_TYPE__: "short",
|
|
7830
|
+
__INT32_C: "(c) c",
|
|
7831
|
+
__INT32_C_SUFFIX__: null,
|
|
7832
|
+
__INT32_FMTd__: '"d"',
|
|
7833
|
+
__INT32_FMTi__: '"i"',
|
|
7834
|
+
__INT32_MAX__: "2147483647",
|
|
7835
|
+
__INT32_TYPE__: "int",
|
|
7836
|
+
__INT64_C: "(c) c##LL",
|
|
7837
|
+
__INT64_C_SUFFIX__: "LL",
|
|
7838
|
+
__INT64_FMTd__: '"lld"',
|
|
7839
|
+
__INT64_FMTi__: '"lli"',
|
|
7840
|
+
__INT64_MAX__: "9223372036854775807LL",
|
|
7841
|
+
__INT64_TYPE__: "long long int",
|
|
7842
|
+
__INT8_C: "(c) c",
|
|
7843
|
+
__INT8_C_SUFFIX__: null,
|
|
7844
|
+
__INT8_FMTd__: '"hhd"',
|
|
7845
|
+
__INT8_FMTi__: '"hhi"',
|
|
7846
|
+
__INT8_MAX__: "127",
|
|
7847
|
+
__INT8_TYPE__: "signed char",
|
|
7848
|
+
__INTMAX_C: "(c) c##L",
|
|
7849
|
+
__INTMAX_C_SUFFIX__: "L",
|
|
7850
|
+
__INTMAX_FMTd__: '"ld"',
|
|
7851
|
+
__INTMAX_FMTi__: '"li"',
|
|
7852
|
+
__INTMAX_MAX__: "9223372036854775807L",
|
|
7853
|
+
__INTMAX_TYPE__: "long int",
|
|
7854
|
+
__INTMAX_WIDTH__: "64",
|
|
7855
|
+
__INTPTR_FMTd__: '"ld"',
|
|
7856
|
+
__INTPTR_FMTi__: '"li"',
|
|
7857
|
+
__INTPTR_MAX__: "9223372036854775807L",
|
|
7858
|
+
__INTPTR_TYPE__: "long int",
|
|
7859
|
+
__INTPTR_WIDTH__: "64",
|
|
7860
|
+
__INT_FAST16_FMTd__: '"hd"',
|
|
7861
|
+
__INT_FAST16_FMTi__: '"hi"',
|
|
7862
|
+
__INT_FAST16_MAX__: "32767",
|
|
7863
|
+
__INT_FAST16_TYPE__: "short",
|
|
7864
|
+
__INT_FAST16_WIDTH__: "16",
|
|
7865
|
+
__INT_FAST32_FMTd__: '"d"',
|
|
7866
|
+
__INT_FAST32_FMTi__: '"i"',
|
|
7867
|
+
__INT_FAST32_MAX__: "2147483647",
|
|
7868
|
+
__INT_FAST32_TYPE__: "int",
|
|
7869
|
+
__INT_FAST32_WIDTH__: "32",
|
|
7870
|
+
__INT_FAST64_FMTd__: '"lld"',
|
|
7871
|
+
__INT_FAST64_FMTi__: '"lli"',
|
|
7872
|
+
__INT_FAST64_MAX__: "9223372036854775807LL",
|
|
7873
|
+
__INT_FAST64_TYPE__: "long long int",
|
|
7874
|
+
__INT_FAST64_WIDTH__: "64",
|
|
7875
|
+
__INT_FAST8_FMTd__: '"hhd"',
|
|
7876
|
+
__INT_FAST8_FMTi__: '"hhi"',
|
|
7877
|
+
__INT_FAST8_MAX__: "127",
|
|
7878
|
+
__INT_FAST8_TYPE__: "signed char",
|
|
7879
|
+
__INT_FAST8_WIDTH__: "8",
|
|
7880
|
+
__INT_LEAST16_FMTd__: '"hd"',
|
|
7881
|
+
__INT_LEAST16_FMTi__: '"hi"',
|
|
7882
|
+
__INT_LEAST16_MAX__: "32767",
|
|
7883
|
+
__INT_LEAST16_TYPE__: "short",
|
|
7884
|
+
__INT_LEAST16_WIDTH__: "16",
|
|
7885
|
+
__INT_LEAST32_FMTd__: '"d"',
|
|
7886
|
+
__INT_LEAST32_FMTi__: '"i"',
|
|
7887
|
+
__INT_LEAST32_MAX__: "2147483647",
|
|
7888
|
+
__INT_LEAST32_TYPE__: "int",
|
|
7889
|
+
__INT_LEAST32_WIDTH__: "32",
|
|
7890
|
+
__INT_LEAST64_FMTd__: '"lld"',
|
|
7891
|
+
__INT_LEAST64_FMTi__: '"lli"',
|
|
7892
|
+
__INT_LEAST64_MAX__: "9223372036854775807LL",
|
|
7893
|
+
__INT_LEAST64_TYPE__: "long long int",
|
|
7894
|
+
__INT_LEAST64_WIDTH__: "64",
|
|
7895
|
+
__INT_LEAST8_FMTd__: '"hhd"',
|
|
7896
|
+
__INT_LEAST8_FMTi__: '"hhi"',
|
|
7897
|
+
__INT_LEAST8_MAX__: "127",
|
|
7898
|
+
__INT_LEAST8_TYPE__: "signed char",
|
|
7899
|
+
__INT_LEAST8_WIDTH__: "8",
|
|
7900
|
+
__INT_MAX__: "2147483647",
|
|
7901
|
+
__INT_WIDTH__: "32",
|
|
7902
|
+
__LDBL_DECIMAL_DIG__: "17",
|
|
7903
|
+
__LDBL_DENORM_MIN__: "4.9406564584124654e-324L",
|
|
7904
|
+
__LDBL_DIG__: "15",
|
|
7905
|
+
__LDBL_EPSILON__: "2.2204460492503131e-16L",
|
|
7906
|
+
__LDBL_HAS_DENORM__: "1",
|
|
7907
|
+
__LDBL_HAS_INFINITY__: "1",
|
|
7908
|
+
__LDBL_HAS_QUIET_NAN__: "1",
|
|
7909
|
+
__LDBL_MANT_DIG__: "53",
|
|
7910
|
+
__LDBL_MAX_10_EXP__: "308",
|
|
7911
|
+
__LDBL_MAX_EXP__: "1024",
|
|
7912
|
+
__LDBL_MAX__: "1.7976931348623157e+308L",
|
|
7913
|
+
__LDBL_MIN_10_EXP__: "(-307)",
|
|
7914
|
+
__LDBL_MIN_EXP__: "(-1021)",
|
|
7915
|
+
__LDBL_MIN__: "2.2250738585072014e-308L",
|
|
7916
|
+
__LDBL_NORM_MAX__: "1.7976931348623157e+308L",
|
|
7917
|
+
__LITTLE_ENDIAN__: "1",
|
|
7918
|
+
__LLONG_WIDTH__: "64",
|
|
7919
|
+
__LONG_LONG_MAX__: "9223372036854775807LL",
|
|
7920
|
+
__LONG_MAX__: "9223372036854775807L",
|
|
7921
|
+
__LONG_WIDTH__: "64",
|
|
7922
|
+
__LP64__: "1",
|
|
7923
|
+
__MACH__: "1",
|
|
7924
|
+
__MEMORY_SCOPE_DEVICE: "1",
|
|
7925
|
+
__MEMORY_SCOPE_SINGLE: "4",
|
|
7926
|
+
__MEMORY_SCOPE_SYSTEM: "0",
|
|
7927
|
+
__MEMORY_SCOPE_WRKGRP: "2",
|
|
7928
|
+
__MEMORY_SCOPE_WVFRNT: "3",
|
|
7929
|
+
__NEXT_RUNTIME__: "1",
|
|
7930
|
+
__NO_INLINE__: "1",
|
|
7931
|
+
__NO_MATH_ERRNO__: "1",
|
|
7932
|
+
__OBJC2__: "1",
|
|
7933
|
+
__OBJC_BOOL_IS_BOOL: "1",
|
|
7934
|
+
__OBJC__: "1",
|
|
7935
|
+
__OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES: "3",
|
|
7936
|
+
__OPENCL_MEMORY_SCOPE_DEVICE: "2",
|
|
7937
|
+
__OPENCL_MEMORY_SCOPE_SUB_GROUP: "4",
|
|
7938
|
+
__OPENCL_MEMORY_SCOPE_WORK_GROUP: "1",
|
|
7939
|
+
__OPENCL_MEMORY_SCOPE_WORK_ITEM: "0",
|
|
7940
|
+
__ORDER_BIG_ENDIAN__: "4321",
|
|
7941
|
+
__ORDER_LITTLE_ENDIAN__: "1234",
|
|
7942
|
+
__ORDER_PDP_ENDIAN__: "3412",
|
|
7943
|
+
__PIC__: "2",
|
|
7944
|
+
__POINTER_WIDTH__: "64",
|
|
7945
|
+
__PRAGMA_REDEFINE_EXTNAME: "1",
|
|
7946
|
+
__PTRDIFF_FMTd__: '"ld"',
|
|
7947
|
+
__PTRDIFF_FMTi__: '"li"',
|
|
7948
|
+
__PTRDIFF_MAX__: "9223372036854775807L",
|
|
7949
|
+
__PTRDIFF_TYPE__: "long int",
|
|
7950
|
+
__PTRDIFF_WIDTH__: "64",
|
|
7951
|
+
__REGISTER_PREFIX__: null,
|
|
7952
|
+
__SCHAR_MAX__: "127",
|
|
7953
|
+
__SHRT_MAX__: "32767",
|
|
7954
|
+
__SHRT_WIDTH__: "16",
|
|
7955
|
+
__SIG_ATOMIC_MAX__: "2147483647",
|
|
7956
|
+
__SIG_ATOMIC_WIDTH__: "32",
|
|
7957
|
+
__SIZEOF_DOUBLE__: "8",
|
|
7958
|
+
__SIZEOF_FLOAT__: "4",
|
|
7959
|
+
__SIZEOF_INT128__: "16",
|
|
7960
|
+
__SIZEOF_INT__: "4",
|
|
7961
|
+
__SIZEOF_LONG_DOUBLE__: "8",
|
|
7962
|
+
__SIZEOF_LONG_LONG__: "8",
|
|
7963
|
+
__SIZEOF_LONG__: "8",
|
|
7964
|
+
__SIZEOF_POINTER__: "8",
|
|
7965
|
+
__SIZEOF_PTRDIFF_T__: "8",
|
|
7966
|
+
__SIZEOF_SHORT__: "2",
|
|
7967
|
+
__SIZEOF_SIZE_T__: "8",
|
|
7968
|
+
__SIZEOF_WCHAR_T__: "4",
|
|
7969
|
+
__SIZEOF_WINT_T__: "4",
|
|
7970
|
+
__SIZE_FMTX__: '"lX"',
|
|
7971
|
+
__SIZE_FMTo__: '"lo"',
|
|
7972
|
+
__SIZE_FMTu__: '"lu"',
|
|
7973
|
+
__SIZE_FMTx__: '"lx"',
|
|
7974
|
+
__SIZE_MAX__: "18446744073709551615UL",
|
|
7975
|
+
__SIZE_TYPE__: "long unsigned int",
|
|
7976
|
+
__SIZE_WIDTH__: "64",
|
|
7977
|
+
__SSP__: "1",
|
|
7978
|
+
__STDC_EMBED_EMPTY__: "2",
|
|
7979
|
+
__STDC_EMBED_FOUND__: "1",
|
|
7980
|
+
__STDC_EMBED_NOT_FOUND__: "0",
|
|
7981
|
+
__STDC_HOSTED__: "1",
|
|
7982
|
+
__STDC_NO_THREADS__: "1",
|
|
7983
|
+
__STDC_UTF_16__: "1",
|
|
7984
|
+
__STDC_UTF_32__: "1",
|
|
7985
|
+
__STDC_VERSION__: "201112L",
|
|
7986
|
+
__STDC__: "1",
|
|
7987
|
+
__UINT16_C: "(c) c",
|
|
7988
|
+
__UINT16_C_SUFFIX__: null,
|
|
7989
|
+
__UINT16_FMTX__: '"hX"',
|
|
7990
|
+
__UINT16_FMTo__: '"ho"',
|
|
7991
|
+
__UINT16_FMTu__: '"hu"',
|
|
7992
|
+
__UINT16_FMTx__: '"hx"',
|
|
7993
|
+
__UINT16_MAX__: "65535",
|
|
7994
|
+
__UINT16_TYPE__: "unsigned short",
|
|
7995
|
+
__UINT32_C: "(c) c##U",
|
|
7996
|
+
__UINT32_C_SUFFIX__: "U",
|
|
7997
|
+
__UINT32_FMTX__: '"X"',
|
|
7998
|
+
__UINT32_FMTo__: '"o"',
|
|
7999
|
+
__UINT32_FMTu__: '"u"',
|
|
8000
|
+
__UINT32_FMTx__: '"x"',
|
|
8001
|
+
__UINT32_MAX__: "4294967295U",
|
|
8002
|
+
__UINT32_TYPE__: "unsigned int",
|
|
8003
|
+
__UINT64_C: "(c) c##ULL",
|
|
8004
|
+
__UINT64_C_SUFFIX__: "ULL",
|
|
8005
|
+
__UINT64_FMTX__: '"llX"',
|
|
8006
|
+
__UINT64_FMTo__: '"llo"',
|
|
8007
|
+
__UINT64_FMTu__: '"llu"',
|
|
8008
|
+
__UINT64_FMTx__: '"llx"',
|
|
8009
|
+
__UINT64_MAX__: "18446744073709551615ULL",
|
|
8010
|
+
__UINT64_TYPE__: "long long unsigned int",
|
|
8011
|
+
__UINT8_C: "(c) c",
|
|
8012
|
+
__UINT8_C_SUFFIX__: null,
|
|
8013
|
+
__UINT8_FMTX__: '"hhX"',
|
|
8014
|
+
__UINT8_FMTo__: '"hho"',
|
|
8015
|
+
__UINT8_FMTu__: '"hhu"',
|
|
8016
|
+
__UINT8_FMTx__: '"hhx"',
|
|
8017
|
+
__UINT8_MAX__: "255",
|
|
8018
|
+
__UINT8_TYPE__: "unsigned char",
|
|
8019
|
+
__UINTMAX_C: "(c) c##UL",
|
|
8020
|
+
__UINTMAX_C_SUFFIX__: "UL",
|
|
8021
|
+
__UINTMAX_FMTX__: '"lX"',
|
|
8022
|
+
__UINTMAX_FMTo__: '"lo"',
|
|
8023
|
+
__UINTMAX_FMTu__: '"lu"',
|
|
8024
|
+
__UINTMAX_FMTx__: '"lx"',
|
|
8025
|
+
__UINTMAX_MAX__: "18446744073709551615UL",
|
|
8026
|
+
__UINTMAX_TYPE__: "long unsigned int",
|
|
8027
|
+
__UINTMAX_WIDTH__: "64",
|
|
8028
|
+
__UINTPTR_FMTX__: '"lX"',
|
|
8029
|
+
__UINTPTR_FMTo__: '"lo"',
|
|
8030
|
+
__UINTPTR_FMTu__: '"lu"',
|
|
8031
|
+
__UINTPTR_FMTx__: '"lx"',
|
|
8032
|
+
__UINTPTR_MAX__: "18446744073709551615UL",
|
|
8033
|
+
__UINTPTR_TYPE__: "long unsigned int",
|
|
8034
|
+
__UINTPTR_WIDTH__: "64",
|
|
8035
|
+
__UINT_FAST16_FMTX__: '"hX"',
|
|
8036
|
+
__UINT_FAST16_FMTo__: '"ho"',
|
|
8037
|
+
__UINT_FAST16_FMTu__: '"hu"',
|
|
8038
|
+
__UINT_FAST16_FMTx__: '"hx"',
|
|
8039
|
+
__UINT_FAST16_MAX__: "65535",
|
|
8040
|
+
__UINT_FAST16_TYPE__: "unsigned short",
|
|
8041
|
+
__UINT_FAST32_FMTX__: '"X"',
|
|
8042
|
+
__UINT_FAST32_FMTo__: '"o"',
|
|
8043
|
+
__UINT_FAST32_FMTu__: '"u"',
|
|
8044
|
+
__UINT_FAST32_FMTx__: '"x"',
|
|
8045
|
+
__UINT_FAST32_MAX__: "4294967295U",
|
|
8046
|
+
__UINT_FAST32_TYPE__: "unsigned int",
|
|
8047
|
+
__UINT_FAST64_FMTX__: '"llX"',
|
|
8048
|
+
__UINT_FAST64_FMTo__: '"llo"',
|
|
8049
|
+
__UINT_FAST64_FMTu__: '"llu"',
|
|
8050
|
+
__UINT_FAST64_FMTx__: '"llx"',
|
|
8051
|
+
__UINT_FAST64_MAX__: "18446744073709551615ULL",
|
|
8052
|
+
__UINT_FAST64_TYPE__: "long long unsigned int",
|
|
8053
|
+
__UINT_FAST8_FMTX__: '"hhX"',
|
|
8054
|
+
__UINT_FAST8_FMTo__: '"hho"',
|
|
8055
|
+
__UINT_FAST8_FMTu__: '"hhu"',
|
|
8056
|
+
__UINT_FAST8_FMTx__: '"hhx"',
|
|
8057
|
+
__UINT_FAST8_MAX__: "255",
|
|
8058
|
+
__UINT_FAST8_TYPE__: "unsigned char",
|
|
8059
|
+
__UINT_LEAST16_FMTX__: '"hX"',
|
|
8060
|
+
__UINT_LEAST16_FMTo__: '"ho"',
|
|
8061
|
+
__UINT_LEAST16_FMTu__: '"hu"',
|
|
8062
|
+
__UINT_LEAST16_FMTx__: '"hx"',
|
|
8063
|
+
__UINT_LEAST16_MAX__: "65535",
|
|
8064
|
+
__UINT_LEAST16_TYPE__: "unsigned short",
|
|
8065
|
+
__UINT_LEAST32_FMTX__: '"X"',
|
|
8066
|
+
__UINT_LEAST32_FMTo__: '"o"',
|
|
8067
|
+
__UINT_LEAST32_FMTu__: '"u"',
|
|
8068
|
+
__UINT_LEAST32_FMTx__: '"x"',
|
|
8069
|
+
__UINT_LEAST32_MAX__: "4294967295U",
|
|
8070
|
+
__UINT_LEAST32_TYPE__: "unsigned int",
|
|
8071
|
+
__UINT_LEAST64_FMTX__: '"llX"',
|
|
8072
|
+
__UINT_LEAST64_FMTo__: '"llo"',
|
|
8073
|
+
__UINT_LEAST64_FMTu__: '"llu"',
|
|
8074
|
+
__UINT_LEAST64_FMTx__: '"llx"',
|
|
8075
|
+
__UINT_LEAST64_MAX__: "18446744073709551615ULL",
|
|
8076
|
+
__UINT_LEAST64_TYPE__: "long long unsigned int",
|
|
8077
|
+
__UINT_LEAST8_FMTX__: '"hhX"',
|
|
8078
|
+
__UINT_LEAST8_FMTo__: '"hho"',
|
|
8079
|
+
__UINT_LEAST8_FMTu__: '"hhu"',
|
|
8080
|
+
__UINT_LEAST8_FMTx__: '"hhx"',
|
|
8081
|
+
__UINT_LEAST8_MAX__: "255",
|
|
8082
|
+
__UINT_LEAST8_TYPE__: "unsigned char",
|
|
8083
|
+
__USER_LABEL_PREFIX__: "_",
|
|
8084
|
+
__VERSION__: '"Clang 21.0.0"',
|
|
8085
|
+
__WCHAR_MAX__: "2147483647",
|
|
8086
|
+
__WCHAR_TYPE__: "int",
|
|
8087
|
+
__WCHAR_WIDTH__: "32",
|
|
8088
|
+
__WINT_MAX__: "2147483647",
|
|
8089
|
+
__WINT_TYPE__: "int",
|
|
8090
|
+
__WINT_WIDTH__: "32",
|
|
8091
|
+
__aarch64__: "1",
|
|
8092
|
+
__arm64: "1",
|
|
8093
|
+
__arm64__: "1",
|
|
8094
|
+
__autoreleasing: "__attribute__((objc_ownership(autoreleasing)))",
|
|
8095
|
+
__block: "__attribute__((__blocks__(byref)))",
|
|
8096
|
+
__clang__: "1",
|
|
8097
|
+
__clang_literal_encoding__: '"UTF-8"',
|
|
8098
|
+
__clang_major__: "21",
|
|
8099
|
+
__clang_minor__: "0",
|
|
8100
|
+
__clang_patchlevel__: "0",
|
|
8101
|
+
__clang_version__: '"21.0.0 "',
|
|
8102
|
+
__clang_wide_literal_encoding__: '"UTF-32"',
|
|
8103
|
+
__llvm__: "1",
|
|
8104
|
+
__nonnull: "_Nonnull",
|
|
8105
|
+
__null_unspecified: "_Null_unspecified",
|
|
8106
|
+
__nullable: "_Nullable",
|
|
8107
|
+
__pic__: "2",
|
|
8108
|
+
__strong: "__attribute__((objc_ownership(strong)))",
|
|
8109
|
+
__unsafe_unretained: "__attribute__((objc_ownership(none)))",
|
|
8110
|
+
__weak: "__attribute__((objc_ownership(weak)))"
|
|
8111
|
+
},
|
|
8112
|
+
"objective-c++": {
|
|
8113
|
+
IBAction: "void)__attribute__((ibaction)",
|
|
8114
|
+
IBInspectable: null,
|
|
8115
|
+
IBOutlet: "__attribute__((iboutlet))",
|
|
8116
|
+
IBOutletCollection: "(ClassName) __attribute__((iboutletcollection(ClassName)))",
|
|
8117
|
+
IB_DESIGNABLE: null,
|
|
8118
|
+
OBJC_NEW_PROPERTIES: "1",
|
|
8119
|
+
OBJC_ZEROCOST_EXCEPTIONS: "1",
|
|
8120
|
+
TARGET_IPHONE_SIMULATOR: "0",
|
|
8121
|
+
TARGET_OS_DRIVERKIT: "0",
|
|
8122
|
+
TARGET_OS_EMBEDDED: "1",
|
|
8123
|
+
TARGET_OS_FIRMWARE: "0",
|
|
8124
|
+
TARGET_OS_IOS: "1",
|
|
8125
|
+
TARGET_OS_IPHONE: "1",
|
|
8126
|
+
TARGET_OS_LINUX: "0",
|
|
8127
|
+
TARGET_OS_MAC: "1",
|
|
8128
|
+
TARGET_OS_MACCATALYST: "0",
|
|
8129
|
+
TARGET_OS_NANO: "0",
|
|
8130
|
+
TARGET_OS_OSX: "0",
|
|
8131
|
+
TARGET_OS_SIMULATOR: "0",
|
|
8132
|
+
TARGET_OS_TV: "0",
|
|
8133
|
+
TARGET_OS_UEFI: "0",
|
|
8134
|
+
TARGET_OS_UIKITFORMAC: "0",
|
|
8135
|
+
TARGET_OS_UNIX: "0",
|
|
8136
|
+
TARGET_OS_VISION: "0",
|
|
8137
|
+
TARGET_OS_WATCH: "0",
|
|
8138
|
+
TARGET_OS_WIN32: "0",
|
|
8139
|
+
TARGET_OS_WINDOWS: "0",
|
|
8140
|
+
_LP64: "1",
|
|
8141
|
+
__AARCH64EL__: "1",
|
|
8142
|
+
__AARCH64_CMODEL_SMALL__: "1",
|
|
8143
|
+
__AARCH64_SIMD__: "1",
|
|
8144
|
+
__APPLE_CC__: "6000",
|
|
8145
|
+
__APPLE__: "1",
|
|
8146
|
+
__ARM64_ARCH_8__: "1",
|
|
8147
|
+
__ARM_64BIT_STATE: "1",
|
|
8148
|
+
__ARM_ACLE: "202420",
|
|
8149
|
+
__ARM_ACLE_VERSION: "(year,quarter,patch) (100 * (year) + 10 * (quarter) + (patch))",
|
|
8150
|
+
__ARM_ALIGN_MAX_STACK_PWR: "4",
|
|
8151
|
+
__ARM_ARCH: "8",
|
|
8152
|
+
__ARM_ARCH_ISA_A64: "1",
|
|
8153
|
+
__ARM_ARCH_PROFILE: "'A'",
|
|
8154
|
+
__ARM_FEATURE_AES: "1",
|
|
8155
|
+
__ARM_FEATURE_CLZ: "1",
|
|
8156
|
+
__ARM_FEATURE_CRYPTO: "1",
|
|
8157
|
+
__ARM_FEATURE_DIRECTED_ROUNDING: "1",
|
|
8158
|
+
__ARM_FEATURE_DIV: "1",
|
|
8159
|
+
__ARM_FEATURE_FMA: "1",
|
|
8160
|
+
__ARM_FEATURE_IDIV: "1",
|
|
8161
|
+
__ARM_FEATURE_LDREX: "0xF",
|
|
8162
|
+
__ARM_FEATURE_NUMERIC_MAXMIN: "1",
|
|
8163
|
+
__ARM_FEATURE_SHA2: "1",
|
|
8164
|
+
__ARM_FEATURE_UNALIGNED: "1",
|
|
8165
|
+
__ARM_FP: "0xE",
|
|
8166
|
+
__ARM_FP16_ARGS: "1",
|
|
8167
|
+
__ARM_FP16_FORMAT_IEEE: "1",
|
|
8168
|
+
__ARM_NEON: "1",
|
|
8169
|
+
__ARM_NEON_FP: "0xE",
|
|
8170
|
+
__ARM_NEON_SVE_BRIDGE: "1",
|
|
8171
|
+
__ARM_NEON__: "1",
|
|
8172
|
+
__ARM_PCS_AAPCS64: "1",
|
|
8173
|
+
__ARM_SIZEOF_MINIMAL_ENUM: "4",
|
|
8174
|
+
__ARM_SIZEOF_WCHAR_T: "4",
|
|
8175
|
+
__ARM_STATE_ZA: "1",
|
|
8176
|
+
__ARM_STATE_ZT0: "1",
|
|
8177
|
+
__ATOMIC_ACQUIRE: "2",
|
|
8178
|
+
__ATOMIC_ACQ_REL: "4",
|
|
8179
|
+
__ATOMIC_CONSUME: "1",
|
|
8180
|
+
__ATOMIC_RELAXED: "0",
|
|
8181
|
+
__ATOMIC_RELEASE: "3",
|
|
8182
|
+
__ATOMIC_SEQ_CST: "5",
|
|
8183
|
+
__BIGGEST_ALIGNMENT__: "8",
|
|
8184
|
+
__BITINT_MAXWIDTH__: "128",
|
|
8185
|
+
__BLOCKS__: "1",
|
|
8186
|
+
__BOOL_WIDTH__: "1",
|
|
8187
|
+
__BYTE_ORDER__: "__ORDER_LITTLE_ENDIAN__",
|
|
8188
|
+
__CHAR16_TYPE__: "unsigned short",
|
|
8189
|
+
__CHAR32_TYPE__: "unsigned int",
|
|
8190
|
+
__CHAR_BIT__: "8",
|
|
8191
|
+
__CLANG_ATOMIC_BOOL_LOCK_FREE: "2",
|
|
8192
|
+
__CLANG_ATOMIC_CHAR16_T_LOCK_FREE: "2",
|
|
8193
|
+
__CLANG_ATOMIC_CHAR32_T_LOCK_FREE: "2",
|
|
8194
|
+
__CLANG_ATOMIC_CHAR_LOCK_FREE: "2",
|
|
8195
|
+
__CLANG_ATOMIC_INT_LOCK_FREE: "2",
|
|
8196
|
+
__CLANG_ATOMIC_LLONG_LOCK_FREE: "2",
|
|
8197
|
+
__CLANG_ATOMIC_LONG_LOCK_FREE: "2",
|
|
8198
|
+
__CLANG_ATOMIC_POINTER_LOCK_FREE: "2",
|
|
8199
|
+
__CLANG_ATOMIC_SHORT_LOCK_FREE: "2",
|
|
8200
|
+
__CLANG_ATOMIC_WCHAR_T_LOCK_FREE: "2",
|
|
8201
|
+
__CONSTANT_CFSTRINGS__: "1",
|
|
8202
|
+
__DBL_DECIMAL_DIG__: "17",
|
|
8203
|
+
__DBL_DENORM_MIN__: "4.9406564584124654e-324",
|
|
8204
|
+
__DBL_DIG__: "15",
|
|
8205
|
+
__DBL_EPSILON__: "2.2204460492503131e-16",
|
|
8206
|
+
__DBL_HAS_DENORM__: "1",
|
|
8207
|
+
__DBL_HAS_INFINITY__: "1",
|
|
8208
|
+
__DBL_HAS_QUIET_NAN__: "1",
|
|
8209
|
+
__DBL_MANT_DIG__: "53",
|
|
8210
|
+
__DBL_MAX_10_EXP__: "308",
|
|
8211
|
+
__DBL_MAX_EXP__: "1024",
|
|
8212
|
+
__DBL_MAX__: "1.7976931348623157e+308",
|
|
8213
|
+
__DBL_MIN_10_EXP__: "(-307)",
|
|
8214
|
+
__DBL_MIN_EXP__: "(-1021)",
|
|
8215
|
+
__DBL_MIN__: "2.2250738585072014e-308",
|
|
8216
|
+
__DBL_NORM_MAX__: "1.7976931348623157e+308",
|
|
8217
|
+
__DECIMAL_DIG__: "__LDBL_DECIMAL_DIG__",
|
|
8218
|
+
__DEPRECATED: "1",
|
|
8219
|
+
__DYNAMIC__: "1",
|
|
8220
|
+
__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__: "70000",
|
|
8221
|
+
__ENVIRONMENT_OS_VERSION_MIN_REQUIRED__: "70000",
|
|
8222
|
+
__EXCEPTIONS: "1",
|
|
8223
|
+
__FINITE_MATH_ONLY__: "0",
|
|
8224
|
+
__FLT16_DECIMAL_DIG__: "5",
|
|
8225
|
+
__FLT16_DENORM_MIN__: "5.9604644775390625e-8F16",
|
|
8226
|
+
__FLT16_DIG__: "3",
|
|
8227
|
+
__FLT16_EPSILON__: "9.765625e-4F16",
|
|
8228
|
+
__FLT16_HAS_DENORM__: "1",
|
|
8229
|
+
__FLT16_HAS_INFINITY__: "1",
|
|
8230
|
+
__FLT16_HAS_QUIET_NAN__: "1",
|
|
8231
|
+
__FLT16_MANT_DIG__: "11",
|
|
8232
|
+
__FLT16_MAX_10_EXP__: "4",
|
|
8233
|
+
__FLT16_MAX_EXP__: "16",
|
|
8234
|
+
__FLT16_MAX__: "6.5504e+4F16",
|
|
8235
|
+
__FLT16_MIN_10_EXP__: "(-4)",
|
|
8236
|
+
__FLT16_MIN_EXP__: "(-13)",
|
|
8237
|
+
__FLT16_MIN__: "6.103515625e-5F16",
|
|
8238
|
+
__FLT16_NORM_MAX__: "6.5504e+4F16",
|
|
8239
|
+
__FLT_DECIMAL_DIG__: "9",
|
|
8240
|
+
__FLT_DENORM_MIN__: "1.40129846e-45F",
|
|
8241
|
+
__FLT_DIG__: "6",
|
|
8242
|
+
__FLT_EPSILON__: "1.19209290e-7F",
|
|
8243
|
+
__FLT_HAS_DENORM__: "1",
|
|
8244
|
+
__FLT_HAS_INFINITY__: "1",
|
|
8245
|
+
__FLT_HAS_QUIET_NAN__: "1",
|
|
8246
|
+
__FLT_MANT_DIG__: "24",
|
|
8247
|
+
__FLT_MAX_10_EXP__: "38",
|
|
8248
|
+
__FLT_MAX_EXP__: "128",
|
|
8249
|
+
__FLT_MAX__: "3.40282347e+38F",
|
|
8250
|
+
__FLT_MIN_10_EXP__: "(-37)",
|
|
8251
|
+
__FLT_MIN_EXP__: "(-125)",
|
|
8252
|
+
__FLT_MIN__: "1.17549435e-38F",
|
|
8253
|
+
__FLT_NORM_MAX__: "3.40282347e+38F",
|
|
8254
|
+
__FLT_RADIX__: "2",
|
|
8255
|
+
__FPCLASS_NEGINF: "0x0004",
|
|
8256
|
+
__FPCLASS_NEGNORMAL: "0x0008",
|
|
8257
|
+
__FPCLASS_NEGSUBNORMAL: "0x0010",
|
|
8258
|
+
__FPCLASS_NEGZERO: "0x0020",
|
|
8259
|
+
__FPCLASS_POSINF: "0x0200",
|
|
8260
|
+
__FPCLASS_POSNORMAL: "0x0100",
|
|
8261
|
+
__FPCLASS_POSSUBNORMAL: "0x0080",
|
|
8262
|
+
__FPCLASS_POSZERO: "0x0040",
|
|
8263
|
+
__FPCLASS_QNAN: "0x0002",
|
|
8264
|
+
__FPCLASS_SNAN: "0x0001",
|
|
8265
|
+
__FP_FAST_FMA: "1",
|
|
8266
|
+
__FP_FAST_FMAF: "1",
|
|
8267
|
+
__FUNCTION_MULTI_VERSIONING_SUPPORT_LEVEL: "202430",
|
|
8268
|
+
__GCC_ASM_FLAG_OUTPUTS__: "1",
|
|
8269
|
+
__GCC_ATOMIC_BOOL_LOCK_FREE: "2",
|
|
8270
|
+
__GCC_ATOMIC_CHAR16_T_LOCK_FREE: "2",
|
|
8271
|
+
__GCC_ATOMIC_CHAR32_T_LOCK_FREE: "2",
|
|
8272
|
+
__GCC_ATOMIC_CHAR_LOCK_FREE: "2",
|
|
8273
|
+
__GCC_ATOMIC_INT_LOCK_FREE: "2",
|
|
8274
|
+
__GCC_ATOMIC_LLONG_LOCK_FREE: "2",
|
|
8275
|
+
__GCC_ATOMIC_LONG_LOCK_FREE: "2",
|
|
8276
|
+
__GCC_ATOMIC_POINTER_LOCK_FREE: "2",
|
|
8277
|
+
__GCC_ATOMIC_SHORT_LOCK_FREE: "2",
|
|
8278
|
+
__GCC_ATOMIC_TEST_AND_SET_TRUEVAL: "1",
|
|
8279
|
+
__GCC_ATOMIC_WCHAR_T_LOCK_FREE: "2",
|
|
8280
|
+
__GCC_CONSTRUCTIVE_SIZE: "64",
|
|
8281
|
+
__GCC_DESTRUCTIVE_SIZE: "256",
|
|
8282
|
+
__GCC_HAVE_DWARF2_CFI_ASM: "1",
|
|
8283
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1: "1",
|
|
8284
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16: "1",
|
|
8285
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2: "1",
|
|
8286
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4: "1",
|
|
8287
|
+
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8: "1",
|
|
8288
|
+
__GLIBCXX_BITSIZE_INT_N_0: "128",
|
|
8289
|
+
__GLIBCXX_TYPE_INT_N_0: "__int128",
|
|
8290
|
+
__GNUC_GNU_INLINE__: "1",
|
|
8291
|
+
__GNUC_MINOR__: "2",
|
|
8292
|
+
__GNUC_PATCHLEVEL__: "1",
|
|
8293
|
+
__GNUC__: "4",
|
|
8294
|
+
__GNUG__: "4",
|
|
8295
|
+
__GXX_ABI_VERSION: "1002",
|
|
8296
|
+
__GXX_EXPERIMENTAL_CXX0X__: "1",
|
|
8297
|
+
__GXX_RTTI: "1",
|
|
8298
|
+
__GXX_WEAK__: "1",
|
|
8299
|
+
__HAVE_FUNCTION_MULTI_VERSIONING: "1",
|
|
8300
|
+
__INT16_C: "(c) c",
|
|
8301
|
+
__INT16_C_SUFFIX__: null,
|
|
8302
|
+
__INT16_FMTd__: '"hd"',
|
|
8303
|
+
__INT16_FMTi__: '"hi"',
|
|
8304
|
+
__INT16_MAX__: "32767",
|
|
8305
|
+
__INT16_TYPE__: "short",
|
|
8306
|
+
__INT32_C: "(c) c",
|
|
8307
|
+
__INT32_C_SUFFIX__: null,
|
|
8308
|
+
__INT32_FMTd__: '"d"',
|
|
8309
|
+
__INT32_FMTi__: '"i"',
|
|
8310
|
+
__INT32_MAX__: "2147483647",
|
|
8311
|
+
__INT32_TYPE__: "int",
|
|
8312
|
+
__INT64_C: "(c) c##LL",
|
|
8313
|
+
__INT64_C_SUFFIX__: "LL",
|
|
8314
|
+
__INT64_FMTd__: '"lld"',
|
|
8315
|
+
__INT64_FMTi__: '"lli"',
|
|
8316
|
+
__INT64_MAX__: "9223372036854775807LL",
|
|
8317
|
+
__INT64_TYPE__: "long long int",
|
|
8318
|
+
__INT8_C: "(c) c",
|
|
8319
|
+
__INT8_C_SUFFIX__: null,
|
|
8320
|
+
__INT8_FMTd__: '"hhd"',
|
|
8321
|
+
__INT8_FMTi__: '"hhi"',
|
|
8322
|
+
__INT8_MAX__: "127",
|
|
8323
|
+
__INT8_TYPE__: "signed char",
|
|
8324
|
+
__INTMAX_C: "(c) c##L",
|
|
8325
|
+
__INTMAX_C_SUFFIX__: "L",
|
|
8326
|
+
__INTMAX_FMTd__: '"ld"',
|
|
8327
|
+
__INTMAX_FMTi__: '"li"',
|
|
8328
|
+
__INTMAX_MAX__: "9223372036854775807L",
|
|
8329
|
+
__INTMAX_TYPE__: "long int",
|
|
8330
|
+
__INTMAX_WIDTH__: "64",
|
|
8331
|
+
__INTPTR_FMTd__: '"ld"',
|
|
8332
|
+
__INTPTR_FMTi__: '"li"',
|
|
8333
|
+
__INTPTR_MAX__: "9223372036854775807L",
|
|
8334
|
+
__INTPTR_TYPE__: "long int",
|
|
8335
|
+
__INTPTR_WIDTH__: "64",
|
|
8336
|
+
__INT_FAST16_FMTd__: '"hd"',
|
|
8337
|
+
__INT_FAST16_FMTi__: '"hi"',
|
|
8338
|
+
__INT_FAST16_MAX__: "32767",
|
|
8339
|
+
__INT_FAST16_TYPE__: "short",
|
|
8340
|
+
__INT_FAST16_WIDTH__: "16",
|
|
8341
|
+
__INT_FAST32_FMTd__: '"d"',
|
|
8342
|
+
__INT_FAST32_FMTi__: '"i"',
|
|
8343
|
+
__INT_FAST32_MAX__: "2147483647",
|
|
8344
|
+
__INT_FAST32_TYPE__: "int",
|
|
8345
|
+
__INT_FAST32_WIDTH__: "32",
|
|
8346
|
+
__INT_FAST64_FMTd__: '"lld"',
|
|
8347
|
+
__INT_FAST64_FMTi__: '"lli"',
|
|
8348
|
+
__INT_FAST64_MAX__: "9223372036854775807LL",
|
|
8349
|
+
__INT_FAST64_TYPE__: "long long int",
|
|
8350
|
+
__INT_FAST64_WIDTH__: "64",
|
|
8351
|
+
__INT_FAST8_FMTd__: '"hhd"',
|
|
8352
|
+
__INT_FAST8_FMTi__: '"hhi"',
|
|
8353
|
+
__INT_FAST8_MAX__: "127",
|
|
8354
|
+
__INT_FAST8_TYPE__: "signed char",
|
|
8355
|
+
__INT_FAST8_WIDTH__: "8",
|
|
8356
|
+
__INT_LEAST16_FMTd__: '"hd"',
|
|
8357
|
+
__INT_LEAST16_FMTi__: '"hi"',
|
|
8358
|
+
__INT_LEAST16_MAX__: "32767",
|
|
8359
|
+
__INT_LEAST16_TYPE__: "short",
|
|
8360
|
+
__INT_LEAST16_WIDTH__: "16",
|
|
8361
|
+
__INT_LEAST32_FMTd__: '"d"',
|
|
8362
|
+
__INT_LEAST32_FMTi__: '"i"',
|
|
8363
|
+
__INT_LEAST32_MAX__: "2147483647",
|
|
8364
|
+
__INT_LEAST32_TYPE__: "int",
|
|
8365
|
+
__INT_LEAST32_WIDTH__: "32",
|
|
8366
|
+
__INT_LEAST64_FMTd__: '"lld"',
|
|
8367
|
+
__INT_LEAST64_FMTi__: '"lli"',
|
|
8368
|
+
__INT_LEAST64_MAX__: "9223372036854775807LL",
|
|
8369
|
+
__INT_LEAST64_TYPE__: "long long int",
|
|
8370
|
+
__INT_LEAST64_WIDTH__: "64",
|
|
8371
|
+
__INT_LEAST8_FMTd__: '"hhd"',
|
|
8372
|
+
__INT_LEAST8_FMTi__: '"hhi"',
|
|
8373
|
+
__INT_LEAST8_MAX__: "127",
|
|
8374
|
+
__INT_LEAST8_TYPE__: "signed char",
|
|
8375
|
+
__INT_LEAST8_WIDTH__: "8",
|
|
8376
|
+
__INT_MAX__: "2147483647",
|
|
8377
|
+
__INT_WIDTH__: "32",
|
|
8378
|
+
__LDBL_DECIMAL_DIG__: "17",
|
|
8379
|
+
__LDBL_DENORM_MIN__: "4.9406564584124654e-324L",
|
|
8380
|
+
__LDBL_DIG__: "15",
|
|
8381
|
+
__LDBL_EPSILON__: "2.2204460492503131e-16L",
|
|
8382
|
+
__LDBL_HAS_DENORM__: "1",
|
|
8383
|
+
__LDBL_HAS_INFINITY__: "1",
|
|
8384
|
+
__LDBL_HAS_QUIET_NAN__: "1",
|
|
8385
|
+
__LDBL_MANT_DIG__: "53",
|
|
8386
|
+
__LDBL_MAX_10_EXP__: "308",
|
|
8387
|
+
__LDBL_MAX_EXP__: "1024",
|
|
8388
|
+
__LDBL_MAX__: "1.7976931348623157e+308L",
|
|
8389
|
+
__LDBL_MIN_10_EXP__: "(-307)",
|
|
8390
|
+
__LDBL_MIN_EXP__: "(-1021)",
|
|
8391
|
+
__LDBL_MIN__: "2.2250738585072014e-308L",
|
|
8392
|
+
__LDBL_NORM_MAX__: "1.7976931348623157e+308L",
|
|
8393
|
+
__LITTLE_ENDIAN__: "1",
|
|
8394
|
+
__LLONG_WIDTH__: "64",
|
|
8395
|
+
__LONG_LONG_MAX__: "9223372036854775807LL",
|
|
8396
|
+
__LONG_MAX__: "9223372036854775807L",
|
|
8397
|
+
__LONG_WIDTH__: "64",
|
|
8398
|
+
__LP64__: "1",
|
|
8399
|
+
__MACH__: "1",
|
|
8400
|
+
__MEMORY_SCOPE_DEVICE: "1",
|
|
8401
|
+
__MEMORY_SCOPE_SINGLE: "4",
|
|
8402
|
+
__MEMORY_SCOPE_SYSTEM: "0",
|
|
8403
|
+
__MEMORY_SCOPE_WRKGRP: "2",
|
|
8404
|
+
__MEMORY_SCOPE_WVFRNT: "3",
|
|
8405
|
+
__NEXT_RUNTIME__: "1",
|
|
8406
|
+
__NO_INLINE__: "1",
|
|
8407
|
+
__NO_MATH_ERRNO__: "1",
|
|
8408
|
+
__OBJC2__: "1",
|
|
8409
|
+
__OBJC_BOOL_IS_BOOL: "1",
|
|
8410
|
+
__OBJC__: "1",
|
|
8411
|
+
__OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES: "3",
|
|
8412
|
+
__OPENCL_MEMORY_SCOPE_DEVICE: "2",
|
|
8413
|
+
__OPENCL_MEMORY_SCOPE_SUB_GROUP: "4",
|
|
8414
|
+
__OPENCL_MEMORY_SCOPE_WORK_GROUP: "1",
|
|
8415
|
+
__OPENCL_MEMORY_SCOPE_WORK_ITEM: "0",
|
|
8416
|
+
__ORDER_BIG_ENDIAN__: "4321",
|
|
8417
|
+
__ORDER_LITTLE_ENDIAN__: "1234",
|
|
8418
|
+
__ORDER_PDP_ENDIAN__: "3412",
|
|
8419
|
+
__PIC__: "2",
|
|
8420
|
+
__POINTER_WIDTH__: "64",
|
|
8421
|
+
__PRAGMA_REDEFINE_EXTNAME: "1",
|
|
8422
|
+
__PTRDIFF_FMTd__: '"ld"',
|
|
8423
|
+
__PTRDIFF_FMTi__: '"li"',
|
|
8424
|
+
__PTRDIFF_MAX__: "9223372036854775807L",
|
|
8425
|
+
__PTRDIFF_TYPE__: "long int",
|
|
8426
|
+
__PTRDIFF_WIDTH__: "64",
|
|
8427
|
+
__REGISTER_PREFIX__: null,
|
|
8428
|
+
__SCHAR_MAX__: "127",
|
|
8429
|
+
__SHRT_MAX__: "32767",
|
|
8430
|
+
__SHRT_WIDTH__: "16",
|
|
8431
|
+
__SIG_ATOMIC_MAX__: "2147483647",
|
|
8432
|
+
__SIG_ATOMIC_WIDTH__: "32",
|
|
8433
|
+
__SIZEOF_DOUBLE__: "8",
|
|
8434
|
+
__SIZEOF_FLOAT__: "4",
|
|
8435
|
+
__SIZEOF_INT128__: "16",
|
|
8436
|
+
__SIZEOF_INT__: "4",
|
|
8437
|
+
__SIZEOF_LONG_DOUBLE__: "8",
|
|
8438
|
+
__SIZEOF_LONG_LONG__: "8",
|
|
8439
|
+
__SIZEOF_LONG__: "8",
|
|
8440
|
+
__SIZEOF_POINTER__: "8",
|
|
8441
|
+
__SIZEOF_PTRDIFF_T__: "8",
|
|
8442
|
+
__SIZEOF_SHORT__: "2",
|
|
8443
|
+
__SIZEOF_SIZE_T__: "8",
|
|
8444
|
+
__SIZEOF_WCHAR_T__: "4",
|
|
8445
|
+
__SIZEOF_WINT_T__: "4",
|
|
8446
|
+
__SIZE_FMTX__: '"lX"',
|
|
8447
|
+
__SIZE_FMTo__: '"lo"',
|
|
8448
|
+
__SIZE_FMTu__: '"lu"',
|
|
8449
|
+
__SIZE_FMTx__: '"lx"',
|
|
8450
|
+
__SIZE_MAX__: "18446744073709551615UL",
|
|
8451
|
+
__SIZE_TYPE__: "long unsigned int",
|
|
8452
|
+
__SIZE_WIDTH__: "64",
|
|
8453
|
+
__SSP__: "1",
|
|
8454
|
+
__STDCPP_DEFAULT_NEW_ALIGNMENT__: "16UL",
|
|
8455
|
+
__STDCPP_THREADS__: "1",
|
|
8456
|
+
__STDC_EMBED_EMPTY__: "2",
|
|
8457
|
+
__STDC_EMBED_FOUND__: "1",
|
|
8458
|
+
__STDC_EMBED_NOT_FOUND__: "0",
|
|
8459
|
+
__STDC_HOSTED__: "1",
|
|
8460
|
+
__STDC_NO_THREADS__: "1",
|
|
8461
|
+
__STDC_UTF_16__: "1",
|
|
8462
|
+
__STDC_UTF_32__: "1",
|
|
8463
|
+
__STDC__: "1",
|
|
8464
|
+
__UINT16_C: "(c) c",
|
|
8465
|
+
__UINT16_C_SUFFIX__: null,
|
|
8466
|
+
__UINT16_FMTX__: '"hX"',
|
|
8467
|
+
__UINT16_FMTo__: '"ho"',
|
|
8468
|
+
__UINT16_FMTu__: '"hu"',
|
|
8469
|
+
__UINT16_FMTx__: '"hx"',
|
|
8470
|
+
__UINT16_MAX__: "65535",
|
|
8471
|
+
__UINT16_TYPE__: "unsigned short",
|
|
8472
|
+
__UINT32_C: "(c) c##U",
|
|
8473
|
+
__UINT32_C_SUFFIX__: "U",
|
|
8474
|
+
__UINT32_FMTX__: '"X"',
|
|
8475
|
+
__UINT32_FMTo__: '"o"',
|
|
8476
|
+
__UINT32_FMTu__: '"u"',
|
|
8477
|
+
__UINT32_FMTx__: '"x"',
|
|
8478
|
+
__UINT32_MAX__: "4294967295U",
|
|
8479
|
+
__UINT32_TYPE__: "unsigned int",
|
|
8480
|
+
__UINT64_C: "(c) c##ULL",
|
|
8481
|
+
__UINT64_C_SUFFIX__: "ULL",
|
|
8482
|
+
__UINT64_FMTX__: '"llX"',
|
|
8483
|
+
__UINT64_FMTo__: '"llo"',
|
|
8484
|
+
__UINT64_FMTu__: '"llu"',
|
|
8485
|
+
__UINT64_FMTx__: '"llx"',
|
|
8486
|
+
__UINT64_MAX__: "18446744073709551615ULL",
|
|
8487
|
+
__UINT64_TYPE__: "long long unsigned int",
|
|
8488
|
+
__UINT8_C: "(c) c",
|
|
8489
|
+
__UINT8_C_SUFFIX__: null,
|
|
8490
|
+
__UINT8_FMTX__: '"hhX"',
|
|
8491
|
+
__UINT8_FMTo__: '"hho"',
|
|
8492
|
+
__UINT8_FMTu__: '"hhu"',
|
|
8493
|
+
__UINT8_FMTx__: '"hhx"',
|
|
8494
|
+
__UINT8_MAX__: "255",
|
|
8495
|
+
__UINT8_TYPE__: "unsigned char",
|
|
8496
|
+
__UINTMAX_C: "(c) c##UL",
|
|
8497
|
+
__UINTMAX_C_SUFFIX__: "UL",
|
|
8498
|
+
__UINTMAX_FMTX__: '"lX"',
|
|
8499
|
+
__UINTMAX_FMTo__: '"lo"',
|
|
8500
|
+
__UINTMAX_FMTu__: '"lu"',
|
|
8501
|
+
__UINTMAX_FMTx__: '"lx"',
|
|
8502
|
+
__UINTMAX_MAX__: "18446744073709551615UL",
|
|
8503
|
+
__UINTMAX_TYPE__: "long unsigned int",
|
|
8504
|
+
__UINTMAX_WIDTH__: "64",
|
|
8505
|
+
__UINTPTR_FMTX__: '"lX"',
|
|
8506
|
+
__UINTPTR_FMTo__: '"lo"',
|
|
8507
|
+
__UINTPTR_FMTu__: '"lu"',
|
|
8508
|
+
__UINTPTR_FMTx__: '"lx"',
|
|
8509
|
+
__UINTPTR_MAX__: "18446744073709551615UL",
|
|
8510
|
+
__UINTPTR_TYPE__: "long unsigned int",
|
|
8511
|
+
__UINTPTR_WIDTH__: "64",
|
|
8512
|
+
__UINT_FAST16_FMTX__: '"hX"',
|
|
8513
|
+
__UINT_FAST16_FMTo__: '"ho"',
|
|
8514
|
+
__UINT_FAST16_FMTu__: '"hu"',
|
|
8515
|
+
__UINT_FAST16_FMTx__: '"hx"',
|
|
8516
|
+
__UINT_FAST16_MAX__: "65535",
|
|
8517
|
+
__UINT_FAST16_TYPE__: "unsigned short",
|
|
8518
|
+
__UINT_FAST32_FMTX__: '"X"',
|
|
8519
|
+
__UINT_FAST32_FMTo__: '"o"',
|
|
8520
|
+
__UINT_FAST32_FMTu__: '"u"',
|
|
8521
|
+
__UINT_FAST32_FMTx__: '"x"',
|
|
8522
|
+
__UINT_FAST32_MAX__: "4294967295U",
|
|
8523
|
+
__UINT_FAST32_TYPE__: "unsigned int",
|
|
8524
|
+
__UINT_FAST64_FMTX__: '"llX"',
|
|
8525
|
+
__UINT_FAST64_FMTo__: '"llo"',
|
|
8526
|
+
__UINT_FAST64_FMTu__: '"llu"',
|
|
8527
|
+
__UINT_FAST64_FMTx__: '"llx"',
|
|
8528
|
+
__UINT_FAST64_MAX__: "18446744073709551615ULL",
|
|
8529
|
+
__UINT_FAST64_TYPE__: "long long unsigned int",
|
|
8530
|
+
__UINT_FAST8_FMTX__: '"hhX"',
|
|
8531
|
+
__UINT_FAST8_FMTo__: '"hho"',
|
|
8532
|
+
__UINT_FAST8_FMTu__: '"hhu"',
|
|
8533
|
+
__UINT_FAST8_FMTx__: '"hhx"',
|
|
8534
|
+
__UINT_FAST8_MAX__: "255",
|
|
8535
|
+
__UINT_FAST8_TYPE__: "unsigned char",
|
|
8536
|
+
__UINT_LEAST16_FMTX__: '"hX"',
|
|
8537
|
+
__UINT_LEAST16_FMTo__: '"ho"',
|
|
8538
|
+
__UINT_LEAST16_FMTu__: '"hu"',
|
|
8539
|
+
__UINT_LEAST16_FMTx__: '"hx"',
|
|
8540
|
+
__UINT_LEAST16_MAX__: "65535",
|
|
8541
|
+
__UINT_LEAST16_TYPE__: "unsigned short",
|
|
8542
|
+
__UINT_LEAST32_FMTX__: '"X"',
|
|
8543
|
+
__UINT_LEAST32_FMTo__: '"o"',
|
|
8544
|
+
__UINT_LEAST32_FMTu__: '"u"',
|
|
8545
|
+
__UINT_LEAST32_FMTx__: '"x"',
|
|
8546
|
+
__UINT_LEAST32_MAX__: "4294967295U",
|
|
8547
|
+
__UINT_LEAST32_TYPE__: "unsigned int",
|
|
8548
|
+
__UINT_LEAST64_FMTX__: '"llX"',
|
|
8549
|
+
__UINT_LEAST64_FMTo__: '"llo"',
|
|
8550
|
+
__UINT_LEAST64_FMTu__: '"llu"',
|
|
8551
|
+
__UINT_LEAST64_FMTx__: '"llx"',
|
|
8552
|
+
__UINT_LEAST64_MAX__: "18446744073709551615ULL",
|
|
8553
|
+
__UINT_LEAST64_TYPE__: "long long unsigned int",
|
|
8554
|
+
__UINT_LEAST8_FMTX__: '"hhX"',
|
|
8555
|
+
__UINT_LEAST8_FMTo__: '"hho"',
|
|
8556
|
+
__UINT_LEAST8_FMTu__: '"hhu"',
|
|
8557
|
+
__UINT_LEAST8_FMTx__: '"hhx"',
|
|
8558
|
+
__UINT_LEAST8_MAX__: "255",
|
|
8559
|
+
__UINT_LEAST8_TYPE__: "unsigned char",
|
|
8560
|
+
__USER_LABEL_PREFIX__: "_",
|
|
8561
|
+
__VERSION__: '"Clang 21.0.0"',
|
|
8562
|
+
__WCHAR_MAX__: "2147483647",
|
|
8563
|
+
__WCHAR_TYPE__: "int",
|
|
8564
|
+
__WCHAR_WIDTH__: "32",
|
|
8565
|
+
__WINT_MAX__: "2147483647",
|
|
8566
|
+
__WINT_TYPE__: "int",
|
|
8567
|
+
__WINT_WIDTH__: "32",
|
|
8568
|
+
__aarch64__: "1",
|
|
8569
|
+
__arm64: "1",
|
|
8570
|
+
__arm64__: "1",
|
|
8571
|
+
__autoreleasing: "__attribute__((objc_ownership(autoreleasing)))",
|
|
8572
|
+
__block: "__attribute__((__blocks__(byref)))",
|
|
8573
|
+
__clang__: "1",
|
|
8574
|
+
__clang_literal_encoding__: '"UTF-8"',
|
|
8575
|
+
__clang_major__: "21",
|
|
8576
|
+
__clang_minor__: "0",
|
|
8577
|
+
__clang_patchlevel__: "0",
|
|
8578
|
+
__clang_version__: '"21.0.0 "',
|
|
8579
|
+
__clang_wide_literal_encoding__: '"UTF-32"',
|
|
8580
|
+
__cplusplus: "201703L",
|
|
8581
|
+
__cpp_aggregate_bases: "201603L",
|
|
8582
|
+
__cpp_aggregate_nsdmi: "201304L",
|
|
8583
|
+
__cpp_alias_templates: "200704L",
|
|
8584
|
+
__cpp_attributes: "200809L",
|
|
8585
|
+
__cpp_binary_literals: "201304L",
|
|
8586
|
+
__cpp_capture_star_this: "201603L",
|
|
8587
|
+
__cpp_constexpr: "201603L",
|
|
8588
|
+
__cpp_constexpr_in_decltype: "201711L",
|
|
8589
|
+
__cpp_decltype: "200707L",
|
|
8590
|
+
__cpp_decltype_auto: "201304L",
|
|
8591
|
+
__cpp_deduction_guides: "201703L",
|
|
8592
|
+
__cpp_delegating_constructors: "200604L",
|
|
8593
|
+
__cpp_deleted_function: "202403L",
|
|
8594
|
+
__cpp_digit_separators: "201309L",
|
|
8595
|
+
__cpp_enumerator_attributes: "201411L",
|
|
8596
|
+
__cpp_exceptions: "199711L",
|
|
8597
|
+
__cpp_fold_expressions: "201603L",
|
|
8598
|
+
__cpp_generic_lambdas: "201304L",
|
|
8599
|
+
__cpp_guaranteed_copy_elision: "201606L",
|
|
8600
|
+
__cpp_hex_float: "201603L",
|
|
8601
|
+
__cpp_if_constexpr: "201606L",
|
|
8602
|
+
__cpp_impl_destroying_delete: "201806L",
|
|
8603
|
+
__cpp_inheriting_constructors: "201511L",
|
|
8604
|
+
__cpp_init_captures: "201304L",
|
|
8605
|
+
__cpp_initializer_lists: "200806L",
|
|
8606
|
+
__cpp_inline_variables: "201606L",
|
|
8607
|
+
__cpp_lambdas: "200907L",
|
|
8608
|
+
__cpp_named_character_escapes: "202207L",
|
|
8609
|
+
__cpp_namespace_attributes: "201411L",
|
|
8610
|
+
__cpp_nested_namespace_definitions: "201411L",
|
|
8611
|
+
__cpp_noexcept_function_type: "201510L",
|
|
8612
|
+
__cpp_nontype_template_args: "201411L",
|
|
8613
|
+
__cpp_nontype_template_parameter_auto: "201606L",
|
|
8614
|
+
__cpp_nsdmi: "200809L",
|
|
8615
|
+
__cpp_pack_indexing: "202311L",
|
|
8616
|
+
__cpp_placeholder_variables: "202306L",
|
|
8617
|
+
__cpp_range_based_for: "201603L",
|
|
8618
|
+
__cpp_raw_strings: "200710L",
|
|
8619
|
+
__cpp_ref_qualifiers: "200710L",
|
|
8620
|
+
__cpp_return_type_deduction: "201304L",
|
|
8621
|
+
__cpp_rtti: "199711L",
|
|
8622
|
+
__cpp_rvalue_references: "200610L",
|
|
8623
|
+
__cpp_static_assert: "202306L",
|
|
8624
|
+
__cpp_static_call_operator: "202207L",
|
|
8625
|
+
__cpp_structured_bindings: "202411L",
|
|
8626
|
+
__cpp_template_auto: "201606L",
|
|
8627
|
+
__cpp_template_template_args: "201611L",
|
|
8628
|
+
__cpp_threadsafe_static_init: "200806L",
|
|
8629
|
+
__cpp_unicode_characters: "200704L",
|
|
8630
|
+
__cpp_unicode_literals: "200710L",
|
|
8631
|
+
__cpp_user_defined_literals: "200809L",
|
|
8632
|
+
__cpp_variable_templates: "201304L",
|
|
8633
|
+
__cpp_variadic_friend: "202403L",
|
|
8634
|
+
__cpp_variadic_templates: "200704L",
|
|
8635
|
+
__cpp_variadic_using: "201611L",
|
|
8636
|
+
__llvm__: "1",
|
|
8637
|
+
__nonnull: "_Nonnull",
|
|
8638
|
+
__null_unspecified: "_Null_unspecified",
|
|
8639
|
+
__nullable: "_Nullable",
|
|
8640
|
+
__pic__: "2",
|
|
8641
|
+
__private_extern__: "extern",
|
|
8642
|
+
__strong: "__attribute__((objc_ownership(strong)))",
|
|
8643
|
+
__unsafe_unretained: "__attribute__((objc_ownership(none)))",
|
|
8644
|
+
__weak: "__attribute__((objc_ownership(weak)))"
|
|
8645
|
+
}
|
|
8646
|
+
}
|
|
8647
|
+
};
|
|
8648
|
+
|
|
6659
8649
|
// src/home-paths.ts
|
|
6660
8650
|
import { randomUUID } from "node:crypto";
|
|
6661
8651
|
import fs from "node:fs";
|
|
@@ -7376,9 +9366,9 @@ var EXCERPT = /^(\s*)(\d+)( \| )(.*)$/;
|
|
|
7376
9366
|
var MARKER = /^(\s*)( \| )(.*)$/;
|
|
7377
9367
|
function designTimeDiagnostic(output, files) {
|
|
7378
9368
|
const rewritten = /* @__PURE__ */ new Map();
|
|
7379
|
-
const linesOf = (
|
|
9369
|
+
const linesOf = (path13) => {
|
|
7380
9370
|
const file = Object.keys(files).find(
|
|
7381
|
-
(name2) => name2.endsWith(".swift") && (
|
|
9371
|
+
(name2) => name2.endsWith(".swift") && (path13 === name2 || path13.endsWith(`/${name2}`))
|
|
7382
9372
|
);
|
|
7383
9373
|
if (file === void 0) return null;
|
|
7384
9374
|
let lines = rewritten.get(file);
|
|
@@ -7490,20 +9480,20 @@ function swiftSdkOptions() {
|
|
|
7490
9480
|
}
|
|
7491
9481
|
return [];
|
|
7492
9482
|
}
|
|
7493
|
-
var SWIFT_HOST_COMPILER_RELEASE = "swift-6.4.0-RELEASE-custom-
|
|
7494
|
-
var SWIFT_HOST_COMPILER_ID = "
|
|
9483
|
+
var SWIFT_HOST_COMPILER_RELEASE = "swift-6.4.0-RELEASE-custom-8be2e4a7a393b003";
|
|
9484
|
+
var SWIFT_HOST_COMPILER_ID = "8be2e4a7a393b003";
|
|
7495
9485
|
var compilerArchives = {
|
|
7496
9486
|
"darwin-arm64": {
|
|
7497
|
-
checksum: "
|
|
7498
|
-
manifest: "
|
|
9487
|
+
checksum: "88d69b7ac912962adaadce9fdb2c57fe07cd19e4d8158088e0acbd247496ca6d",
|
|
9488
|
+
manifest: "70d5e2be8c959eb5dd1d9b576e6c209e1f58bfb9089f90c38c2d7e087759f0b3"
|
|
7499
9489
|
},
|
|
7500
9490
|
"linux-x64": {
|
|
7501
|
-
checksum: "
|
|
7502
|
-
manifest: "
|
|
9491
|
+
checksum: "7c42ded03742d16816e64f8ae8fca478aaaff450d22ab3d698daf78c010854b2",
|
|
9492
|
+
manifest: "90cfb09c5a0ba8c119066787cf47244a45bf3cda68dce94c6b1a16337b9b91bd"
|
|
7503
9493
|
},
|
|
7504
9494
|
"linux-arm64": {
|
|
7505
|
-
checksum: "
|
|
7506
|
-
manifest: "
|
|
9495
|
+
checksum: "f9f1d96fb1a6325d3bb30ab12a75fc06e4e8535aab58a91581e03f3d91f68fa6",
|
|
9496
|
+
manifest: "f988181dce795f6c8a6d4a8d86f7b61768f23a743b4e7bea76e64862ef328ad6"
|
|
7507
9497
|
}
|
|
7508
9498
|
};
|
|
7509
9499
|
function swiftHostCompilerArchive(release, host2 = `${process.platform}-${process.arch}`) {
|
|
@@ -9062,10 +11052,10 @@ function swiftObjCImports(graphs, options) {
|
|
|
9062
11052
|
}
|
|
9063
11053
|
|
|
9064
11054
|
// src/swift-objc-metadata.ts
|
|
9065
|
-
import { spawnSync as
|
|
11055
|
+
import { spawnSync as spawnSync5 } from "node:child_process";
|
|
9066
11056
|
import { createHash as createHash7 } from "node:crypto";
|
|
9067
11057
|
import fs4 from "node:fs";
|
|
9068
|
-
import
|
|
11058
|
+
import path9 from "node:path";
|
|
9069
11059
|
|
|
9070
11060
|
// src/swift-objc-sdk.ts
|
|
9071
11061
|
import path6 from "node:path";
|
|
@@ -9089,12 +11079,65 @@ for (const [file, text3] of tree) {
|
|
|
9089
11079
|
}
|
|
9090
11080
|
|
|
9091
11081
|
// src/swift-objc-standin.ts
|
|
9092
|
-
import { execFileSync as execFileSync2, spawnSync as
|
|
11082
|
+
import { execFileSync as execFileSync2, spawnSync as spawnSync4 } from "node:child_process";
|
|
9093
11083
|
import { createHash as createHash6 } from "node:crypto";
|
|
9094
11084
|
import fs3 from "node:fs";
|
|
11085
|
+
import path8 from "node:path";
|
|
11086
|
+
|
|
11087
|
+
// src/swift-objc-platform.ts
|
|
11088
|
+
import { spawnSync as spawnSync3 } from "node:child_process";
|
|
9095
11089
|
import path7 from "node:path";
|
|
11090
|
+
var platforms = /* @__PURE__ */ new Map();
|
|
11091
|
+
function swiftObjCPlatformFlags(toolchainBin, minimum) {
|
|
11092
|
+
const key = `${toolchainBin}:${minimum}`;
|
|
11093
|
+
const cached = platforms.get(key);
|
|
11094
|
+
if (cached) return cached;
|
|
11095
|
+
const version = [
|
|
11096
|
+
Math.floor(minimum / 1e4),
|
|
11097
|
+
Math.floor(minimum % 1e4 / 100),
|
|
11098
|
+
minimum % 100
|
|
11099
|
+
].join(".");
|
|
11100
|
+
const result = spawnSync3(
|
|
11101
|
+
path7.join(toolchainBin, "clang"),
|
|
11102
|
+
[
|
|
11103
|
+
"-target",
|
|
11104
|
+
`arm64-apple-ios${version}-simulator`,
|
|
11105
|
+
"-dM",
|
|
11106
|
+
"-E",
|
|
11107
|
+
"-x",
|
|
11108
|
+
"objective-c",
|
|
11109
|
+
"-"
|
|
11110
|
+
],
|
|
11111
|
+
{
|
|
11112
|
+
input: "",
|
|
11113
|
+
encoding: "utf8",
|
|
11114
|
+
env: swiftEnvironment(),
|
|
11115
|
+
timeout: 3e4,
|
|
11116
|
+
maxBuffer: 1024 * 1024
|
|
11117
|
+
}
|
|
11118
|
+
);
|
|
11119
|
+
if (result.error || result.status !== 0)
|
|
11120
|
+
throw new Error(
|
|
11121
|
+
`could not read iOS compiler platform predefines: ${result.error?.message ?? result.stderr}`
|
|
11122
|
+
);
|
|
11123
|
+
const flags = [
|
|
11124
|
+
...result.stdout.matchAll(
|
|
11125
|
+
/^#define (TARGET_OS_\w+|TARGET_IPHONE_SIMULATOR|__APPLE\w*__|__MACH__|__ENVIRONMENT_\w+) (.*)$/gm
|
|
11126
|
+
)
|
|
11127
|
+
].map(([, name2, value]) => `-D${name2}=${value}`);
|
|
11128
|
+
if (!flags.includes("-D__APPLE__=1") || !flags.includes("-D__MACH__=1"))
|
|
11129
|
+
throw new Error("iOS compiler platform predefines lack Apple and Mach identity");
|
|
11130
|
+
platforms.set(key, flags);
|
|
11131
|
+
return flags;
|
|
11132
|
+
}
|
|
11133
|
+
|
|
11134
|
+
// src/swift-objc-standin.ts
|
|
9096
11135
|
var NATIVE_GRAPH_SDK_VERSION = "27.1";
|
|
9097
|
-
var WASI_EMULATION = [
|
|
11136
|
+
var WASI_EMULATION = [
|
|
11137
|
+
"_WASI_EMULATED_SIGNAL",
|
|
11138
|
+
"_WASI_EMULATED_MMAN",
|
|
11139
|
+
"_WASI_EMULATED_PROCESS_CLOCKS"
|
|
11140
|
+
];
|
|
9098
11141
|
var WASI_EMULATION_FLAGS = WASI_EMULATION.map((name2) => `-D${name2}`);
|
|
9099
11142
|
var NATIVE_GRAPH_INPUTS = {
|
|
9100
11143
|
sdk: NATIVE_GRAPH_SDK_VERSION,
|
|
@@ -9120,13 +11163,13 @@ ${text3}`
|
|
|
9120
11163
|
}
|
|
9121
11164
|
var IOS_SDK_ID = createHash6("sha256").update(JSON.stringify(iosSdkEntries())).digest("hex").slice(0, 16);
|
|
9122
11165
|
function materializeObjcSdk(cacheDir2) {
|
|
9123
|
-
const sdk =
|
|
11166
|
+
const sdk = path8.join(cacheDir2, "ios-sdk", IOS_SDK_ID);
|
|
9124
11167
|
if (fs3.existsSync(sdk)) return sdk;
|
|
9125
|
-
fs3.mkdirSync(
|
|
11168
|
+
fs3.mkdirSync(path8.dirname(sdk), { recursive: true });
|
|
9126
11169
|
const staging = fs3.mkdtempSync(`${sdk}-`);
|
|
9127
11170
|
for (const [file, text3] of iosSdkEntries()) {
|
|
9128
|
-
fs3.mkdirSync(
|
|
9129
|
-
fs3.writeFileSync(
|
|
11171
|
+
fs3.mkdirSync(path8.dirname(path8.join(staging, file)), { recursive: true });
|
|
11172
|
+
fs3.writeFileSync(path8.join(staging, file), text3);
|
|
9130
11173
|
}
|
|
9131
11174
|
try {
|
|
9132
11175
|
fs3.renameSync(staging, sdk);
|
|
@@ -9136,7 +11179,45 @@ function materializeObjcSdk(cacheDir2) {
|
|
|
9136
11179
|
}
|
|
9137
11180
|
return sdk;
|
|
9138
11181
|
}
|
|
11182
|
+
function objcSdkIntakeFlags(headers, toolchainBin, minimum) {
|
|
11183
|
+
return [
|
|
11184
|
+
...swiftObjCPlatformFlags(toolchainBin, minimum),
|
|
11185
|
+
// AvailabilityInternal.h derives this through __is_target_os(ios), which
|
|
11186
|
+
// is false for wasm32.
|
|
11187
|
+
`-D__IPHONE_OS_VERSION_MIN_REQUIRED=${minimum}`,
|
|
11188
|
+
// apple's build setting for a 32-bit target to keep NSInteger and
|
|
11189
|
+
// NSUInteger long, the nominal types they have on arm64.
|
|
11190
|
+
"-DNS_BUILD_32_LIKE_64=1",
|
|
11191
|
+
// the installed libc's default feature set otherwise defines
|
|
11192
|
+
// _XOPEN_SOURCE, which darwin's sys/cdefs.h turns into a strict posix
|
|
11193
|
+
// level; iOS compiles at darwin's full level with neither defined.
|
|
11194
|
+
"-D_BSD_SOURCE",
|
|
11195
|
+
...WASI_EMULATION_FLAGS,
|
|
11196
|
+
"-iframework",
|
|
11197
|
+
path8.join(headers, "System/Library/Frameworks"),
|
|
11198
|
+
"-isystem",
|
|
11199
|
+
path8.join(headers, "wasm/include"),
|
|
11200
|
+
"-idirafter",
|
|
11201
|
+
path8.join(headers, "usr/include")
|
|
11202
|
+
];
|
|
11203
|
+
}
|
|
11204
|
+
function iosDeploymentMinimum(version) {
|
|
11205
|
+
const parts = /^(\d{1,2})(?:\.(\d{1,2}))?(?:\.(\d{1,2}))?$/.exec(version ?? "");
|
|
11206
|
+
if (!parts) return void 0;
|
|
11207
|
+
return Number(parts[1]) * 1e4 + Number(parts[2] ?? 0) * 100 + Number(parts[3] ?? 0);
|
|
11208
|
+
}
|
|
9139
11209
|
var headerFiles = (dir) => fs3.readdirSync(dir, { recursive: true, encoding: "utf8" }).filter((file) => file.endsWith(".h")).sort();
|
|
11210
|
+
function moduleMapHeaders(modulemap, directoryHeaders = []) {
|
|
11211
|
+
const headers = [];
|
|
11212
|
+
const excluded = /* @__PURE__ */ new Set();
|
|
11213
|
+
for (const match of fs3.readFileSync(modulemap, "utf8").matchAll(/\b(?:(exclude)\s+)?header\s+"([^"]+)"/g)) {
|
|
11214
|
+
if (match[1] === "exclude") excluded.add(match[2]);
|
|
11215
|
+
else headers.push(match[2]);
|
|
11216
|
+
}
|
|
11217
|
+
return (headers.length > 0 ? headers : directoryHeaders).filter(
|
|
11218
|
+
(header) => !excluded.has(header)
|
|
11219
|
+
);
|
|
11220
|
+
}
|
|
9140
11221
|
function missingHeader(missing) {
|
|
9141
11222
|
const lines = ["#import <Foundation/Foundation.h>", "#import <UIKit/UIKit.h>"];
|
|
9142
11223
|
for (const [name2, kind] of missing) if (kind === "macro") lines.push(`#define ${name2}`);
|
|
@@ -9158,52 +11239,52 @@ function objcView(surface, toolchainBin, stdlib, cacheDir2, work, original) {
|
|
|
9158
11239
|
`this peach's Swift has no iOS simulator standard library at ${stdlib}`
|
|
9159
11240
|
);
|
|
9160
11241
|
const sdk = materializeObjcSdk(cacheDir2);
|
|
9161
|
-
const framework =
|
|
9162
|
-
const frameworks =
|
|
9163
|
-
const include =
|
|
9164
|
-
const headersDir = framework ?
|
|
11242
|
+
const framework = path8.basename(path8.dirname(surface.modulemap)) === "Modules";
|
|
11243
|
+
const frameworks = path8.join(work, "frameworks");
|
|
11244
|
+
const include = path8.join(work, "include");
|
|
11245
|
+
const headersDir = framework ? path8.join(frameworks, `${surface.module}.framework`, "Headers") : path8.join(include, surface.module);
|
|
9165
11246
|
fs3.mkdirSync(headersDir, { recursive: true });
|
|
9166
11247
|
const originals = new Map(
|
|
9167
11248
|
headerFiles(surface.headers).map((file) => [
|
|
9168
|
-
|
|
9169
|
-
fs3.readFileSync(
|
|
11249
|
+
path8.join(headersDir, file),
|
|
11250
|
+
fs3.readFileSync(path8.join(surface.headers, file), "utf8")
|
|
9170
11251
|
])
|
|
9171
11252
|
);
|
|
9172
11253
|
for (const [file, text3] of originals) {
|
|
9173
|
-
fs3.mkdirSync(
|
|
11254
|
+
fs3.mkdirSync(path8.dirname(file), { recursive: true });
|
|
9174
11255
|
fs3.writeFileSync(file, text3);
|
|
9175
11256
|
}
|
|
9176
11257
|
if (framework) {
|
|
9177
|
-
fs3.mkdirSync(
|
|
11258
|
+
fs3.mkdirSync(path8.join(frameworks, `${surface.module}.framework`, "Modules"), {
|
|
9178
11259
|
recursive: true
|
|
9179
11260
|
});
|
|
9180
11261
|
fs3.copyFileSync(
|
|
9181
11262
|
surface.modulemap,
|
|
9182
|
-
|
|
11263
|
+
path8.join(frameworks, `${surface.module}.framework`, "Modules", "module.modulemap")
|
|
9183
11264
|
);
|
|
9184
11265
|
} else {
|
|
9185
|
-
fs3.copyFileSync(surface.modulemap,
|
|
11266
|
+
fs3.copyFileSync(surface.modulemap, path8.join(headersDir, "module.modulemap"));
|
|
9186
11267
|
}
|
|
9187
11268
|
const dependencyOriginals = /* @__PURE__ */ new Map();
|
|
9188
11269
|
for (const dependency of surface.dependencies ?? []) {
|
|
9189
|
-
const dir =
|
|
11270
|
+
const dir = path8.join(include, dependency.module);
|
|
9190
11271
|
fs3.mkdirSync(dir, { recursive: true });
|
|
9191
11272
|
for (const file of headerFiles(dependency.headers)) {
|
|
9192
|
-
const destination =
|
|
9193
|
-
const text3 = fs3.readFileSync(
|
|
11273
|
+
const destination = path8.join(dir, file);
|
|
11274
|
+
const text3 = fs3.readFileSync(path8.join(dependency.headers, file), "utf8");
|
|
9194
11275
|
dependencyOriginals.set(destination, text3);
|
|
9195
|
-
fs3.mkdirSync(
|
|
11276
|
+
fs3.mkdirSync(path8.dirname(destination), { recursive: true });
|
|
9196
11277
|
fs3.writeFileSync(destination, text3);
|
|
9197
11278
|
}
|
|
9198
|
-
const supplied =
|
|
11279
|
+
const supplied = path8.join(dependency.headers, "module.modulemap");
|
|
9199
11280
|
fs3.writeFileSync(
|
|
9200
|
-
|
|
11281
|
+
path8.join(dir, "module.modulemap"),
|
|
9201
11282
|
fs3.existsSync(supplied) ? fs3.readFileSync(supplied, "utf8") : `module ${dependency.module} { umbrella "." export * }
|
|
9202
11283
|
`
|
|
9203
11284
|
);
|
|
9204
11285
|
}
|
|
9205
|
-
const stubs =
|
|
9206
|
-
const stubIncludes =
|
|
11286
|
+
const stubs = path8.join(work, "stubs");
|
|
11287
|
+
const stubIncludes = path8.join(work, "stub-include");
|
|
9207
11288
|
fs3.mkdirSync(stubs, { recursive: true });
|
|
9208
11289
|
fs3.mkdirSync(stubIncludes, { recursive: true });
|
|
9209
11290
|
const search = [
|
|
@@ -9211,11 +11292,11 @@ function objcView(surface, toolchainBin, stdlib, cacheDir2, work, original) {
|
|
|
9211
11292
|
sdk,
|
|
9212
11293
|
// keep compiler support headers without importing host platform modules.
|
|
9213
11294
|
"-resource-dir",
|
|
9214
|
-
|
|
11295
|
+
path8.join(sdk, "usr/lib/swift"),
|
|
9215
11296
|
"-I",
|
|
9216
|
-
|
|
11297
|
+
path8.resolve(toolchainBin, "../lib/swift/clang/include"),
|
|
9217
11298
|
"-I",
|
|
9218
|
-
|
|
11299
|
+
path8.resolve(toolchainBin, "../lib/swift/shims"),
|
|
9219
11300
|
"-I",
|
|
9220
11301
|
stdlib,
|
|
9221
11302
|
"-F",
|
|
@@ -9226,7 +11307,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir2, work, original) {
|
|
|
9226
11307
|
headersDir,
|
|
9227
11308
|
...(surface.dependencies ?? []).flatMap((dependency) => [
|
|
9228
11309
|
"-I",
|
|
9229
|
-
|
|
11310
|
+
path8.join(include, dependency.module)
|
|
9230
11311
|
]),
|
|
9231
11312
|
"-F",
|
|
9232
11313
|
stubs,
|
|
@@ -9235,7 +11316,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir2, work, original) {
|
|
|
9235
11316
|
];
|
|
9236
11317
|
const missing = /* @__PURE__ */ new Map();
|
|
9237
11318
|
const stubbed = /* @__PURE__ */ new Set();
|
|
9238
|
-
const out =
|
|
11319
|
+
const out = path8.join(work, "graphs");
|
|
9239
11320
|
const stub = (include2) => {
|
|
9240
11321
|
if (stubbed.has(include2)) return false;
|
|
9241
11322
|
stubbed.add(include2);
|
|
@@ -9247,22 +11328,22 @@ function objcView(surface, toolchainBin, stdlib, cacheDir2, work, original) {
|
|
|
9247
11328
|
IOS_SDK_HEADERS,
|
|
9248
11329
|
`System/Library/Frameworks/${name2}.framework/Headers/${name2}.h`
|
|
9249
11330
|
)) {
|
|
9250
|
-
const header2 =
|
|
9251
|
-
fs3.mkdirSync(
|
|
11331
|
+
const header2 = path8.join(stubIncludes, include2);
|
|
11332
|
+
fs3.mkdirSync(path8.dirname(header2), { recursive: true });
|
|
9252
11333
|
fs3.writeFileSync(header2, `#import <${umbrella}>
|
|
9253
11334
|
`);
|
|
9254
11335
|
return true;
|
|
9255
11336
|
}
|
|
9256
|
-
const root =
|
|
9257
|
-
const header =
|
|
9258
|
-
fs3.mkdirSync(
|
|
11337
|
+
const root = path8.join(stubs, `${name2}.framework`);
|
|
11338
|
+
const header = path8.join(root, "Headers", include2.slice(slash + 1));
|
|
11339
|
+
fs3.mkdirSync(path8.dirname(header), { recursive: true });
|
|
9259
11340
|
fs3.writeFileSync(
|
|
9260
11341
|
header,
|
|
9261
11342
|
"#import <Foundation/Foundation.h>\n#import <UIKit/UIKit.h>\n"
|
|
9262
11343
|
);
|
|
9263
|
-
fs3.mkdirSync(
|
|
11344
|
+
fs3.mkdirSync(path8.join(root, "Modules"), { recursive: true });
|
|
9264
11345
|
fs3.writeFileSync(
|
|
9265
|
-
|
|
11346
|
+
path8.join(root, "Modules", "module.modulemap"),
|
|
9266
11347
|
`framework module ${name2} {
|
|
9267
11348
|
umbrella "Headers"
|
|
9268
11349
|
export *
|
|
@@ -9271,19 +11352,19 @@ function objcView(surface, toolchainBin, stdlib, cacheDir2, work, original) {
|
|
|
9271
11352
|
`
|
|
9272
11353
|
);
|
|
9273
11354
|
} else {
|
|
9274
|
-
const header =
|
|
9275
|
-
fs3.mkdirSync(
|
|
11355
|
+
const header = path8.join(stubIncludes, include2);
|
|
11356
|
+
fs3.mkdirSync(path8.dirname(header), { recursive: true });
|
|
9276
11357
|
fs3.writeFileSync(header, "");
|
|
9277
11358
|
}
|
|
9278
11359
|
return true;
|
|
9279
11360
|
};
|
|
9280
11361
|
const declareMissing = () => {
|
|
9281
|
-
const root =
|
|
9282
|
-
fs3.mkdirSync(
|
|
9283
|
-
fs3.mkdirSync(
|
|
9284
|
-
fs3.writeFileSync(
|
|
11362
|
+
const root = path8.join(stubs, "PeachMissing.framework");
|
|
11363
|
+
fs3.mkdirSync(path8.join(root, "Headers"), { recursive: true });
|
|
11364
|
+
fs3.mkdirSync(path8.join(root, "Modules"), { recursive: true });
|
|
11365
|
+
fs3.writeFileSync(path8.join(root, "Headers", "PeachMissing.h"), missingHeader(missing));
|
|
9285
11366
|
fs3.writeFileSync(
|
|
9286
|
-
|
|
11367
|
+
path8.join(root, "Modules", "module.modulemap"),
|
|
9287
11368
|
'framework module PeachMissing {\n umbrella header "PeachMissing.h"\n export *\n}\n'
|
|
9288
11369
|
);
|
|
9289
11370
|
for (const [file, text3] of [...originals, ...dependencyOriginals])
|
|
@@ -9300,8 +11381,8 @@ function objcView(surface, toolchainBin, stdlib, cacheDir2, work, original) {
|
|
|
9300
11381
|
for (let round = 0; ; round++) {
|
|
9301
11382
|
fs3.rmSync(out, { recursive: true, force: true });
|
|
9302
11383
|
fs3.mkdirSync(out, { recursive: true });
|
|
9303
|
-
const run2 =
|
|
9304
|
-
|
|
11384
|
+
const run2 = spawnSync4(
|
|
11385
|
+
path8.join(toolchainBin, "swift-symbolgraph-extract"),
|
|
9305
11386
|
[
|
|
9306
11387
|
"-module-name",
|
|
9307
11388
|
surface.module,
|
|
@@ -9310,7 +11391,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir2, work, original) {
|
|
|
9310
11391
|
...search,
|
|
9311
11392
|
...original?.flags.flatMap((flag) => ["-Xcc", flag]) ?? [],
|
|
9312
11393
|
"-module-cache-path",
|
|
9313
|
-
|
|
11394
|
+
path8.join(cacheDir2, "ios-module-cache"),
|
|
9314
11395
|
"-minimum-access-level",
|
|
9315
11396
|
// symbol graphs hide public underscored names at the public threshold.
|
|
9316
11397
|
// original clang headers remain the declaration boundary.
|
|
@@ -9373,7 +11454,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir2, work, original) {
|
|
|
9373
11454
|
);
|
|
9374
11455
|
if (missing.size > 0) declareMissing();
|
|
9375
11456
|
}
|
|
9376
|
-
const graphs = fs3.readdirSync(out).filter((name2) => name2.endsWith(".symbols.json")).sort().map((name2) => JSON.parse(fs3.readFileSync(
|
|
11457
|
+
const graphs = fs3.readdirSync(out).filter((name2) => name2.endsWith(".symbols.json")).sort().map((name2) => JSON.parse(fs3.readFileSync(path8.join(out, name2), "utf8")));
|
|
9377
11458
|
const imports = /* @__PURE__ */ new Set(["Foundation", "UIKit"]);
|
|
9378
11459
|
for (const text3 of originals.values())
|
|
9379
11460
|
for (const match of text3.matchAll(
|
|
@@ -9399,10 +11480,8 @@ function objcView(surface, toolchainBin, stdlib, cacheDir2, work, original) {
|
|
|
9399
11480
|
};
|
|
9400
11481
|
}
|
|
9401
11482
|
function objcDeclarationAST(surface, framework, toolchainBin, search, work, originalFlags, target) {
|
|
9402
|
-
const roots =
|
|
9403
|
-
|
|
9404
|
-
].map((match) => match[1]);
|
|
9405
|
-
const probe = path7.join(work, "declarations.m");
|
|
11483
|
+
const roots = moduleMapHeaders(surface.modulemap);
|
|
11484
|
+
const probe = path8.join(work, "declarations.m");
|
|
9406
11485
|
fs3.writeFileSync(
|
|
9407
11486
|
probe,
|
|
9408
11487
|
roots.map(
|
|
@@ -9432,8 +11511,8 @@ function objcDeclarationAST(surface, framework, toolchainBin, search, work, orig
|
|
|
9432
11511
|
"-ast-dump-all=json"
|
|
9433
11512
|
];
|
|
9434
11513
|
const dump = (filter) => {
|
|
9435
|
-
const run2 =
|
|
9436
|
-
|
|
11514
|
+
const run2 = spawnSync4(
|
|
11515
|
+
path8.join(toolchainBin, "clang"),
|
|
9437
11516
|
[
|
|
9438
11517
|
...args,
|
|
9439
11518
|
...filter ? ["-Xclang", "-ast-dump-filter", "-Xclang", filter] : [],
|
|
@@ -9494,10 +11573,8 @@ function enumValues(graphs, surface, framework, toolchainBin, search, work, orig
|
|
|
9494
11573
|
}
|
|
9495
11574
|
const values = /* @__PURE__ */ new Map();
|
|
9496
11575
|
if (wanted.size === 0) return values;
|
|
9497
|
-
const roots =
|
|
9498
|
-
|
|
9499
|
-
].map((match) => match[1]);
|
|
9500
|
-
const probe = path7.join(work, "values.m");
|
|
11576
|
+
const roots = moduleMapHeaders(surface.modulemap);
|
|
11577
|
+
const probe = path8.join(work, "values.m");
|
|
9501
11578
|
fs3.writeFileSync(
|
|
9502
11579
|
probe,
|
|
9503
11580
|
roots.map(
|
|
@@ -9512,8 +11589,8 @@ function enumValues(graphs, surface, framework, toolchainBin, search, work, orig
|
|
|
9512
11589
|
if (flag === "-sdk") flags.push("-isysroot", dir);
|
|
9513
11590
|
else flags.push(flag, dir);
|
|
9514
11591
|
}
|
|
9515
|
-
const run2 =
|
|
9516
|
-
|
|
11592
|
+
const run2 = spawnSync4(
|
|
11593
|
+
path8.join(toolchainBin, "clang"),
|
|
9517
11594
|
[
|
|
9518
11595
|
"-x",
|
|
9519
11596
|
"objective-c",
|
|
@@ -9526,7 +11603,7 @@ function enumValues(graphs, surface, framework, toolchainBin, search, work, orig
|
|
|
9526
11603
|
original?.target ?? IOS_SDK_TARGET,
|
|
9527
11604
|
...flags,
|
|
9528
11605
|
...original?.flags ?? [],
|
|
9529
|
-
`-fmodules-cache-path=${
|
|
11606
|
+
`-fmodules-cache-path=${path8.join(work, "clang-modules")}`,
|
|
9530
11607
|
"-Xclang",
|
|
9531
11608
|
"-ast-dump=json",
|
|
9532
11609
|
probe
|
|
@@ -9797,6 +11874,40 @@ function splitManifestArguments(source) {
|
|
|
9797
11874
|
if (final) arguments_.push(final);
|
|
9798
11875
|
return arguments_;
|
|
9799
11876
|
}
|
|
11877
|
+
function swiftManifestPackages(manifest) {
|
|
11878
|
+
return new Map(
|
|
11879
|
+
manifestCalls(manifest, ["package"]).flatMap(({ flat }) => {
|
|
11880
|
+
const directory = /\bpath\s*:\s*"([^"]+)"/.exec(flat)?.[1];
|
|
11881
|
+
if (!directory) return [];
|
|
11882
|
+
const name2 = /\bname\s*:\s*"([^"]+)"/.exec(flat)?.[1] ?? directory.split("/").pop();
|
|
11883
|
+
return [[name2.toLowerCase(), directory]];
|
|
11884
|
+
})
|
|
11885
|
+
);
|
|
11886
|
+
}
|
|
11887
|
+
var SWIFT_NATIVE_TRANSLATION_UNIT_EXTENSIONS = [
|
|
11888
|
+
".c",
|
|
11889
|
+
".cc",
|
|
11890
|
+
".cpp",
|
|
11891
|
+
".cxx",
|
|
11892
|
+
".m",
|
|
11893
|
+
".mm"
|
|
11894
|
+
];
|
|
11895
|
+
function isSwiftNativeTranslationUnit(file) {
|
|
11896
|
+
return SWIFT_NATIVE_TRANSLATION_UNIT_EXTENSIONS.some(
|
|
11897
|
+
(extension) => file.endsWith(extension)
|
|
11898
|
+
);
|
|
11899
|
+
}
|
|
11900
|
+
var SWIFT_NATIVE_SOURCE_EXTENSIONS = [
|
|
11901
|
+
...SWIFT_NATIVE_TRANSLATION_UNIT_EXTENSIONS,
|
|
11902
|
+
".h",
|
|
11903
|
+
".hh",
|
|
11904
|
+
".hpp",
|
|
11905
|
+
".hxx",
|
|
11906
|
+
".pch",
|
|
11907
|
+
".inc",
|
|
11908
|
+
".inl",
|
|
11909
|
+
".modulemap"
|
|
11910
|
+
];
|
|
9800
11911
|
function swiftTargetModuleName(name2) {
|
|
9801
11912
|
return name2.replace(/[^A-Za-z0-9_]/g, "_").replace(/^[0-9]/, "_");
|
|
9802
11913
|
}
|
|
@@ -9812,21 +11923,45 @@ var swiftEscapes = {
|
|
|
9812
11923
|
r: "\r",
|
|
9813
11924
|
t: " "
|
|
9814
11925
|
};
|
|
11926
|
+
function bracketBody(text3, openIndex) {
|
|
11927
|
+
let depth = 1;
|
|
11928
|
+
let index = openIndex;
|
|
11929
|
+
for (; index < text3.length && depth > 0; index++) {
|
|
11930
|
+
const char = text3[index];
|
|
11931
|
+
if (char === '"') {
|
|
11932
|
+
for (index++; index < text3.length && text3[index] !== '"'; index++)
|
|
11933
|
+
if (text3[index] === "\\") index++;
|
|
11934
|
+
} else if (char === "[") depth++;
|
|
11935
|
+
else if (char === "]") depth--;
|
|
11936
|
+
}
|
|
11937
|
+
return text3.slice(openIndex, index - 1);
|
|
11938
|
+
}
|
|
11939
|
+
function settingsBlocks(call, tool) {
|
|
11940
|
+
const bodies = [];
|
|
11941
|
+
for (const open of call.matchAll(new RegExp(`\\b${tool}Settings\\s*:\\s*\\[`, "g")))
|
|
11942
|
+
bodies.push(bracketBody(call, open.index + open[0].length));
|
|
11943
|
+
return bodies;
|
|
11944
|
+
}
|
|
11945
|
+
function settingFeatures(call, setting) {
|
|
11946
|
+
const found = [];
|
|
11947
|
+
for (const body of settingsBlocks(call, "swift")) {
|
|
11948
|
+
if (setting === ".unsafeFlags") {
|
|
11949
|
+
for (const open of body.matchAll(/\.unsafeFlags\(\s*\[/g))
|
|
11950
|
+
for (const match of bracketBody(body, open.index + open[0].length).matchAll(
|
|
11951
|
+
/"((?:[^"\\]|\\.)*)"/g
|
|
11952
|
+
))
|
|
11953
|
+
found.push(JSON.parse(`"${match[1]}"`));
|
|
11954
|
+
} else {
|
|
11955
|
+
const name2 = "([A-Za-z_][A-Za-z0-9_]*(?:=[A-Za-z_][A-Za-z0-9_.-]*)?)";
|
|
11956
|
+
const pattern = setting === ".enableExperimentalFeature" ? new RegExp(`\\.enableExperimentalFeature\\(\\s*"${name2}"\\s*\\)`, "g") : new RegExp(`\\.enableUpcomingFeature\\(\\s*"${name2}"\\s*\\)`, "g");
|
|
11957
|
+
for (const match of body.matchAll(pattern)) found.push(match[1]);
|
|
11958
|
+
}
|
|
11959
|
+
}
|
|
11960
|
+
return found;
|
|
11961
|
+
}
|
|
9815
11962
|
function settingDefines(call, tool) {
|
|
9816
11963
|
const defines = [];
|
|
9817
|
-
for (const
|
|
9818
|
-
let depth = 1;
|
|
9819
|
-
let index = open.index + open[0].length;
|
|
9820
|
-
const start = index;
|
|
9821
|
-
for (; index < call.length && depth > 0; index++) {
|
|
9822
|
-
const char = call[index];
|
|
9823
|
-
if (char === '"') {
|
|
9824
|
-
for (index++; index < call.length && call[index] !== '"'; index++)
|
|
9825
|
-
if (call[index] === "\\") index++;
|
|
9826
|
-
} else if (char === "[") depth++;
|
|
9827
|
-
else if (char === "]") depth--;
|
|
9828
|
-
}
|
|
9829
|
-
const body = call.slice(start, index - 1);
|
|
11964
|
+
for (const body of settingsBlocks(call, tool)) {
|
|
9830
11965
|
for (const match of body.matchAll(
|
|
9831
11966
|
/\.define\(\s*"([A-Za-z_][A-Za-z0-9_]*)"\s*(?:,\s*to:\s*"((?:[^"\\]|\\.)*)"\s*)?\)/g
|
|
9832
11967
|
)) {
|
|
@@ -9845,26 +11980,61 @@ function settingDefines(call, tool) {
|
|
|
9845
11980
|
}
|
|
9846
11981
|
return defines;
|
|
9847
11982
|
}
|
|
9848
|
-
function
|
|
11983
|
+
function swiftManifestDeclarations(manifest, resourcePaths = []) {
|
|
9849
11984
|
const implicitResources = swiftImplicitResourcePaths(resourcePaths);
|
|
9850
11985
|
const targets = [];
|
|
9851
|
-
const
|
|
11986
|
+
for (const declaration of manifestCalls(manifest, [
|
|
9852
11987
|
"executableTarget",
|
|
9853
11988
|
"target",
|
|
9854
11989
|
"systemLibrary"
|
|
9855
|
-
])
|
|
9856
|
-
|
|
9857
|
-
declarations.flatMap(({ flat }) => {
|
|
9858
|
-
const name2 = /\bname\s*:\s*"([^"]+)"/.exec(flat)?.[1];
|
|
9859
|
-
return name2 ? [name2] : [];
|
|
9860
|
-
})
|
|
9861
|
-
);
|
|
9862
|
-
for (const { kind, flat, call } of declarations) {
|
|
9863
|
-
const executable = kind === "executableTarget";
|
|
11990
|
+
])) {
|
|
11991
|
+
const { kind, flat } = declaration;
|
|
9864
11992
|
const name2 = /\bname\s*:\s*"([^"]+)"/.exec(flat)?.[1];
|
|
9865
11993
|
if (!name2) continue;
|
|
9866
11994
|
const rawPath = /\bpath\s*:\s*"([^"]*)"/.exec(flat)?.[1];
|
|
9867
11995
|
const targetPath = rawPath == null || rawPath === "" ? `Sources/${name2}` : rawPath.replace(/^\.\//, "").replace(/\/+$/, "");
|
|
11996
|
+
const exclude = /\bexclude\s*:\s*\[/.exec(flat);
|
|
11997
|
+
const excluded = [
|
|
11998
|
+
...(exclude ? bracketBody(flat, exclude.index + exclude[0].length) : "").matchAll(
|
|
11999
|
+
/"([^"]+)"/g
|
|
12000
|
+
)
|
|
12001
|
+
].map((match) => match[1].replace(/^\.\//, "").replace(/\/+$/, ""));
|
|
12002
|
+
const prefix = targetPath === "." ? "" : `${targetPath}/`;
|
|
12003
|
+
const resources = /\bresources\s*:/.test(flat) || implicitResources.some((file) => {
|
|
12004
|
+
if (!file.startsWith(prefix)) return false;
|
|
12005
|
+
const relative = file.slice(prefix.length);
|
|
12006
|
+
if (excluded.some(
|
|
12007
|
+
(exclude2) => relative === exclude2 || relative.startsWith(`${exclude2}/`)
|
|
12008
|
+
))
|
|
12009
|
+
return false;
|
|
12010
|
+
return true;
|
|
12011
|
+
});
|
|
12012
|
+
targets.push({
|
|
12013
|
+
...declaration,
|
|
12014
|
+
name: name2,
|
|
12015
|
+
path: targetPath,
|
|
12016
|
+
executable: kind === "executableTarget",
|
|
12017
|
+
resources,
|
|
12018
|
+
exclude: excluded
|
|
12019
|
+
});
|
|
12020
|
+
}
|
|
12021
|
+
return targets;
|
|
12022
|
+
}
|
|
12023
|
+
function swiftManifestTargets(manifest, resourcePaths = []) {
|
|
12024
|
+
const targets = [];
|
|
12025
|
+
const declarations = swiftManifestDeclarations(manifest, resourcePaths);
|
|
12026
|
+
const targetNames = new Set(declarations.map(({ name: name2 }) => name2));
|
|
12027
|
+
for (const {
|
|
12028
|
+
kind,
|
|
12029
|
+
flat,
|
|
12030
|
+
call,
|
|
12031
|
+
name: name2,
|
|
12032
|
+
path: targetPath,
|
|
12033
|
+
executable,
|
|
12034
|
+
resources,
|
|
12035
|
+
exclude: excluded
|
|
12036
|
+
} of declarations) {
|
|
12037
|
+
const publicHeadersPath = /\bpublicHeadersPath\s*:\s*"([^"]*)"/.exec(flat)?.[1];
|
|
9868
12038
|
const languageMode = Number(
|
|
9869
12039
|
/\.swiftLanguageMode\(\s*\.v(\d+)\s*\)/.exec(call)?.[1] ?? "5"
|
|
9870
12040
|
);
|
|
@@ -9873,50 +12043,47 @@ function swiftManifestTargets(manifest, resourcePaths = []) {
|
|
|
9873
12043
|
call.replace(/"(?:\\.|[^"\\])*"/g, "")
|
|
9874
12044
|
);
|
|
9875
12045
|
const defines = settingDefines(call, "swift").map((define) => define.split("=")[0]);
|
|
12046
|
+
const experimentalFeatures = settingFeatures(call, ".enableExperimentalFeature");
|
|
12047
|
+
const upcomingFeatures = settingFeatures(call, ".enableUpcomingFeature");
|
|
12048
|
+
const swiftFlags = settingFeatures(call, ".unsafeFlags");
|
|
9876
12049
|
const cDefines = settingDefines(call, "c");
|
|
9877
12050
|
const cxxDefines = settingDefines(call, "cxx");
|
|
9878
12051
|
const linkedLibraries = [...call.matchAll(/\.linkedLibrary\(\s*"([^"]+)"\s*\)/g)].map(
|
|
9879
12052
|
(match) => match[1]
|
|
9880
12053
|
);
|
|
9881
|
-
const excluded = [
|
|
9882
|
-
...(/\bexclude\s*:\s*\[([^\]]*)\]/.exec(flat)?.[1] ?? "").matchAll(/"([^"]+)"/g)
|
|
9883
|
-
].map((match) => match[1].replace(/^\.\//, "").replace(/\/+$/, ""));
|
|
9884
|
-
const prefix = targetPath === "." ? "" : `${targetPath}/`;
|
|
9885
|
-
const resources = /\bresources\s*:/.test(flat) || implicitResources.some((file) => {
|
|
9886
|
-
if (!file.startsWith(prefix)) return false;
|
|
9887
|
-
const relative = file.slice(prefix.length);
|
|
9888
|
-
if (excluded.some(
|
|
9889
|
-
(exclude) => relative === exclude || relative.startsWith(`${exclude}/`)
|
|
9890
|
-
))
|
|
9891
|
-
return false;
|
|
9892
|
-
return true;
|
|
9893
|
-
});
|
|
9894
12054
|
const targetArguments = splitManifestArguments(call.slice(0, -1));
|
|
9895
12055
|
const dependencyArgument = targetArguments.find(
|
|
9896
12056
|
(argument) => /^dependencies\s*:/.test(argument)
|
|
9897
12057
|
);
|
|
9898
12058
|
const dependencyList = dependencyArgument?.replace(/^dependencies\s*:\s*/, "").trim();
|
|
9899
|
-
const
|
|
12059
|
+
const dependencies = [];
|
|
9900
12060
|
if (dependencyList?.startsWith("[") && dependencyList.endsWith("]")) {
|
|
9901
12061
|
for (const dependency of splitManifestArguments(dependencyList.slice(1, -1))) {
|
|
12062
|
+
const product = /^\.product\s*\(\s*name\s*:\s*"([^"]+)"\s*,\s*package\s*:\s*"([^"]+)"\s*\)$/.exec(
|
|
12063
|
+
dependency
|
|
12064
|
+
);
|
|
12065
|
+
if (product) {
|
|
12066
|
+
dependencies.push({ kind: "product", name: product[1], package: product[2] });
|
|
12067
|
+
continue;
|
|
12068
|
+
}
|
|
9902
12069
|
const dependencyName = /^"([^"]+)"$/.exec(dependency)?.[1] ?? /^\.(?:target|byName)\s*\(\s*name\s*:\s*"([^"]+)"/.exec(dependency)?.[1];
|
|
9903
12070
|
if (dependencyName && targetNames.has(dependencyName))
|
|
9904
|
-
|
|
12071
|
+
dependencies.push({ kind: "target", name: dependencyName });
|
|
9905
12072
|
}
|
|
9906
12073
|
}
|
|
9907
|
-
const dependencies = [...dependencyNames].map((name3) => ({
|
|
9908
|
-
kind: "target",
|
|
9909
|
-
name: name3
|
|
9910
|
-
}));
|
|
9911
12074
|
targets.push({
|
|
9912
12075
|
name: name2,
|
|
9913
12076
|
path: targetPath,
|
|
9914
12077
|
executable,
|
|
9915
12078
|
...kind === "systemLibrary" ? { systemLibrary: true } : {},
|
|
12079
|
+
...publicHeadersPath === void 0 ? {} : { publicHeadersPath },
|
|
9916
12080
|
languageMode,
|
|
9917
12081
|
mainActorIsolation,
|
|
9918
12082
|
...cxxInterop ? { cxxInterop: true } : {},
|
|
9919
12083
|
...defines.length === 0 ? {} : { defines },
|
|
12084
|
+
...experimentalFeatures.length === 0 ? {} : { experimentalFeatures },
|
|
12085
|
+
...upcomingFeatures.length === 0 ? {} : { upcomingFeatures },
|
|
12086
|
+
...swiftFlags.length === 0 ? {} : { swiftFlags },
|
|
9920
12087
|
...cDefines.length === 0 ? {} : { cDefines },
|
|
9921
12088
|
...cxxDefines.length === 0 ? {} : { cxxDefines },
|
|
9922
12089
|
...linkedLibraries.length === 0 ? {} : { linkedLibraries },
|
|
@@ -10004,13 +12171,13 @@ function swiftObjCResourceAccessor(bundleName) {
|
|
|
10004
12171
|
}
|
|
10005
12172
|
function swiftPackagePartition(manifest, resourcePaths = []) {
|
|
10006
12173
|
const targets = swiftManifestTargets(manifest, resourcePaths);
|
|
10007
|
-
return targets.length === 1 && targets[0].executable && targets[0].path === "." && targets[0].languageMode === 5 && !targets[0].mainActorIsolation && !targets[0].defines?.length && !targets[0].linkedLibraries?.length && !targets[0].cxxInterop && !swiftManifestCxxLanguageStandard(manifest) ? [] : targets;
|
|
12174
|
+
return targets.length === 1 && targets[0].executable && targets[0].path === "." && targets[0].languageMode === 5 && !targets[0].mainActorIsolation && !targets[0].defines?.length && !targets[0].experimentalFeatures?.length && !targets[0].upcomingFeatures?.length && !targets[0].swiftFlags?.length && !targets[0].linkedLibraries?.length && !targets[0].cxxInterop && !swiftManifestCxxLanguageStandard(manifest) ? [] : targets;
|
|
10008
12175
|
}
|
|
10009
12176
|
|
|
10010
12177
|
// src/swift-root-lock.ts
|
|
10011
12178
|
import {
|
|
10012
12179
|
spawn as spawn2,
|
|
10013
|
-
spawnSync as
|
|
12180
|
+
spawnSync as spawnSync6
|
|
10014
12181
|
} from "node:child_process";
|
|
10015
12182
|
import { createHash as createHash8, randomUUID as randomUUID2 } from "node:crypto";
|
|
10016
12183
|
import {
|
|
@@ -10021,7 +12188,7 @@ import {
|
|
|
10021
12188
|
rmSync as rmSync2,
|
|
10022
12189
|
writeFileSync as writeFileSync2
|
|
10023
12190
|
} from "node:fs";
|
|
10024
|
-
import
|
|
12191
|
+
import path10 from "node:path";
|
|
10025
12192
|
var POLL_MS = 250;
|
|
10026
12193
|
var START_TOLERANCE_MS = 2e3;
|
|
10027
12194
|
function errorCode(error) {
|
|
@@ -10033,7 +12200,7 @@ function parseStart(text3) {
|
|
|
10033
12200
|
return start;
|
|
10034
12201
|
}
|
|
10035
12202
|
function processTable() {
|
|
10036
|
-
const result =
|
|
12203
|
+
const result = spawnSync6("ps", ["-A", "-o", "pid=,pgid=,stat=,lstart="], {
|
|
10037
12204
|
encoding: "utf8",
|
|
10038
12205
|
env: { ...process.env, LC_ALL: "C", TZ: "UTC" },
|
|
10039
12206
|
stdio: ["ignore", "pipe", "pipe"],
|
|
@@ -10096,7 +12263,7 @@ function generationNumbers(directory) {
|
|
|
10096
12263
|
function readGeneration(directory, number) {
|
|
10097
12264
|
let owner;
|
|
10098
12265
|
try {
|
|
10099
|
-
owner = readFileSync5(
|
|
12266
|
+
owner = readFileSync5(path10.join(directory, name(number, "owner")), "utf8");
|
|
10100
12267
|
} catch (error) {
|
|
10101
12268
|
if (errorCode(error) === "ENOENT") return null;
|
|
10102
12269
|
throw error;
|
|
@@ -10109,7 +12276,7 @@ function readGeneration(directory, number) {
|
|
|
10109
12276
|
}
|
|
10110
12277
|
function readChildren(directory, number) {
|
|
10111
12278
|
const prefix = name(number, "child.");
|
|
10112
|
-
return readdirSync3(directory).filter((entry) => entry.startsWith(prefix)).map((entry) => parseIdentity(readFileSync5(
|
|
12279
|
+
return readdirSync3(directory).filter((entry) => entry.startsWith(prefix)).map((entry) => parseIdentity(readFileSync5(path10.join(directory, entry), "utf8")));
|
|
10113
12280
|
}
|
|
10114
12281
|
function groupAlive(table, leader) {
|
|
10115
12282
|
const row = table.find((candidate) => candidate.pid === leader.pid);
|
|
@@ -10117,7 +12284,7 @@ function groupAlive(table, leader) {
|
|
|
10117
12284
|
return table.some((candidate) => candidate.pgid === leader.pid && !candidate.zombie);
|
|
10118
12285
|
}
|
|
10119
12286
|
async function withSwiftRootLock(root, work, signal) {
|
|
10120
|
-
const directory =
|
|
12287
|
+
const directory = path10.join(
|
|
10121
12288
|
rnxHomeDir(),
|
|
10122
12289
|
"cache",
|
|
10123
12290
|
"swift-root-locks",
|
|
@@ -10126,7 +12293,7 @@ async function withSwiftRootLock(root, work, signal) {
|
|
|
10126
12293
|
mkdirSync(directory, { recursive: true });
|
|
10127
12294
|
const token = randomUUID2();
|
|
10128
12295
|
const owner = JSON.stringify(ownIdentity(process.pid));
|
|
10129
|
-
const pending =
|
|
12296
|
+
const pending = path10.join(directory, `pending.${token}`);
|
|
10130
12297
|
let held = 0;
|
|
10131
12298
|
for (; ; ) {
|
|
10132
12299
|
signal?.throwIfAborted();
|
|
@@ -10147,7 +12314,7 @@ async function withSwiftRootLock(root, work, signal) {
|
|
|
10147
12314
|
}
|
|
10148
12315
|
writeFileSync2(pending, owner);
|
|
10149
12316
|
try {
|
|
10150
|
-
linkSync(pending,
|
|
12317
|
+
linkSync(pending, path10.join(directory, name(newest + 1, "owner")));
|
|
10151
12318
|
} catch (error) {
|
|
10152
12319
|
if (errorCode(error) === "EEXIST") continue;
|
|
10153
12320
|
throw error;
|
|
@@ -10156,7 +12323,7 @@ async function withSwiftRootLock(root, work, signal) {
|
|
|
10156
12323
|
}
|
|
10157
12324
|
const numbers = generationNumbers(directory);
|
|
10158
12325
|
if (numbers.at(-1) !== newest + 1) {
|
|
10159
|
-
rmSync2(
|
|
12326
|
+
rmSync2(path10.join(directory, name(newest + 1, "owner")), { force: true });
|
|
10160
12327
|
continue;
|
|
10161
12328
|
}
|
|
10162
12329
|
held = newest + 1;
|
|
@@ -10164,7 +12331,7 @@ async function withSwiftRootLock(root, work, signal) {
|
|
|
10164
12331
|
if (number < held) {
|
|
10165
12332
|
for (const entry of readdirSync3(directory))
|
|
10166
12333
|
if (entry.startsWith(name(number, "")))
|
|
10167
|
-
rmSync2(
|
|
12334
|
+
rmSync2(path10.join(directory, entry), { force: true });
|
|
10168
12335
|
}
|
|
10169
12336
|
break;
|
|
10170
12337
|
}
|
|
@@ -10188,7 +12355,7 @@ async function withSwiftRootLock(root, work, signal) {
|
|
|
10188
12355
|
const childPending = `${pending}.child.${child.pid}`;
|
|
10189
12356
|
try {
|
|
10190
12357
|
writeFileSync2(childPending, JSON.stringify(ownIdentity(child.pid)));
|
|
10191
|
-
linkSync(childPending,
|
|
12358
|
+
linkSync(childPending, path10.join(directory, name(held, `child.${child.pid}`)));
|
|
10192
12359
|
} finally {
|
|
10193
12360
|
rmSync2(childPending, { force: true });
|
|
10194
12361
|
}
|
|
@@ -10204,23 +12371,37 @@ async function withSwiftRootLock(root, work, signal) {
|
|
|
10204
12371
|
return await work(lease);
|
|
10205
12372
|
} finally {
|
|
10206
12373
|
await Promise.all(children.map((child) => terminateProcessGroup(child, "SIGKILL", 0)));
|
|
10207
|
-
writeFileSync2(
|
|
12374
|
+
writeFileSync2(path10.join(directory, name(held, "released")), "");
|
|
10208
12375
|
}
|
|
10209
12376
|
}
|
|
10210
12377
|
|
|
10211
12378
|
// src/swiftContract.ts
|
|
12379
|
+
var SWIFT_REMOTE_PACKAGES_DIR = "__packages__";
|
|
12380
|
+
var SWIFT_LOCAL_PACKAGES_DIR = "__local_packages__";
|
|
12381
|
+
function isSwiftPackageFiles(value) {
|
|
12382
|
+
return value !== null && typeof value === "object" && !Array.isArray(value) && Object.entries(value).every(
|
|
12383
|
+
([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)
|
|
12384
|
+
);
|
|
12385
|
+
}
|
|
10212
12386
|
function isSwiftObjCPeerStartup(value) {
|
|
10213
12387
|
return value !== null && typeof value === "object" && "registration" in value && isSwiftResourcePath(value.registration) && value.registration.endsWith(".swift") && Object.keys(value).length === 1;
|
|
10214
12388
|
}
|
|
10215
12389
|
var SWIFT_NATIVE_INPUT_ROOT = "$(PEACH_INPUT_ROOT)";
|
|
10216
12390
|
var SWIFT_NATIVE_SDK_INCLUDE = "$(PEACH_SDK_INCLUDE)";
|
|
10217
12391
|
function isSwiftNativeTargets(value) {
|
|
12392
|
+
return swiftNativeTargetsRefusal(value) === null;
|
|
12393
|
+
}
|
|
12394
|
+
function swiftNativeTargetsRefusal(value) {
|
|
10218
12395
|
const strings = (value2) => Array.isArray(value2) && value2.every((item) => typeof item === "string" && !item.includes("\0"));
|
|
10219
12396
|
const paths = (value2) => strings(value2) && value2.every(isSwiftResourcePath);
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
|
|
12397
|
+
if (!Array.isArray(value)) return "nativeTargets";
|
|
12398
|
+
if (value.length > 128) return "nativeTargets:length";
|
|
12399
|
+
for (const target of value) {
|
|
12400
|
+
if (!target || typeof target !== "object") return "nativeTargets:shape";
|
|
12401
|
+
const field = (name3) => Reflect.get(target, name3);
|
|
12402
|
+
const name2 = typeof field("name") === "string" ? String(field("name")) : "?";
|
|
12403
|
+
const at = (shape) => `nativeTargets:${name2}:${shape}`;
|
|
12404
|
+
const nullablePath = (key) => field(key) === null || isSwiftResourcePath(field(key));
|
|
10224
12405
|
const perFile = field("fileFlags");
|
|
10225
12406
|
const directories = field("sourceDirectories");
|
|
10226
12407
|
const searches = field("headerSearchPaths");
|
|
@@ -10230,21 +12411,46 @@ function isSwiftNativeTargets(value) {
|
|
|
10230
12411
|
const products = field("productHeaders");
|
|
10231
12412
|
const inputPath = (value2) => typeof value2 === "string" && value2.startsWith(`${SWIFT_NATIVE_INPUT_ROOT}/`) && isSwiftResourcePath(value2.slice(SWIFT_NATIVE_INPUT_ROOT.length + 1));
|
|
10232
12413
|
const deployment = field("deploymentTarget");
|
|
10233
|
-
|
|
12414
|
+
const targetName = field("name");
|
|
12415
|
+
if (typeof targetName !== "string" || targetName.length === 0 || targetName.length > 4096 || targetName.includes("\0") || targetName.includes("/") || targetName.includes("\\") || targetName === "." || targetName === "..")
|
|
12416
|
+
return at("name");
|
|
12417
|
+
if (!(deployment === null || typeof deployment === "string" && /^\d+(?:\.\d+){0,2}$/.test(deployment)))
|
|
12418
|
+
return at("deploymentTarget");
|
|
12419
|
+
if (!paths(field("headers"))) return at("headers");
|
|
12420
|
+
if (!paths(field("publicHeaders"))) return at("publicHeaders");
|
|
12421
|
+
if (!nullablePath("bridgingHeader")) return at("bridgingHeader");
|
|
12422
|
+
if (!nullablePath("prefixHeader")) return at("prefixHeader");
|
|
12423
|
+
if (!strings(searches) || !searches.every((item) => item === "." || isSwiftResourcePath(item)))
|
|
12424
|
+
return at("headerSearchPaths");
|
|
12425
|
+
if (!strings(userSearches) || !userSearches.every((item) => item === "." || isSwiftResourcePath(item)))
|
|
12426
|
+
return at("userHeaderSearchPaths");
|
|
12427
|
+
if (!strings(frameworks) || !frameworks.every((item) => item === "." || isSwiftResourcePath(item)))
|
|
12428
|
+
return at("frameworkSearchPaths");
|
|
12429
|
+
if (!Array.isArray(maps) || !maps.every((map2) => {
|
|
10234
12430
|
if (!map2 || typeof map2 !== "object") return false;
|
|
10235
12431
|
const flag = Reflect.get(map2, "flag");
|
|
10236
12432
|
const entries = Reflect.get(map2, "entries");
|
|
10237
12433
|
return (flag === "-I" || flag === "-iquote") && Array.isArray(entries) && entries.every(
|
|
10238
12434
|
(entry) => Array.isArray(entry) && entry.length === 2 && typeof entry[0] === "string" && !entry[0].includes("\0") && (inputPath(entry[1]) || isSwiftResourcePath(entry[1]))
|
|
10239
12435
|
);
|
|
10240
|
-
})
|
|
12436
|
+
}))
|
|
12437
|
+
return at("headerMaps");
|
|
12438
|
+
if (!products || typeof products !== "object" || Array.isArray(products) || !Object.entries(products).every(
|
|
10241
12439
|
([product, file]) => isSwiftResourcePath(product) && isSwiftResourcePath(file)
|
|
10242
|
-
)
|
|
12440
|
+
))
|
|
12441
|
+
return at("productHeaders");
|
|
12442
|
+
if (!strings(field("flags"))) return at("flags");
|
|
12443
|
+
if (!strings(field("cxxFlags"))) return at("cxxFlags");
|
|
12444
|
+
if (!perFile || typeof perFile !== "object" || Array.isArray(perFile) || !Object.entries(perFile).every(
|
|
10243
12445
|
([file, flags]) => isSwiftResourcePath(file) && strings(flags)
|
|
10244
|
-
)
|
|
12446
|
+
))
|
|
12447
|
+
return at("fileFlags");
|
|
12448
|
+
if (!directories || typeof directories !== "object" || Array.isArray(directories) || !Object.entries(directories).every(
|
|
10245
12449
|
([file, directory]) => isSwiftResourcePath(file) && (directory === "." || isSwiftResourcePath(directory))
|
|
10246
|
-
)
|
|
10247
|
-
|
|
12450
|
+
))
|
|
12451
|
+
return at("sourceDirectories");
|
|
12452
|
+
}
|
|
12453
|
+
return null;
|
|
10248
12454
|
}
|
|
10249
12455
|
function isSwiftResourcePath(value) {
|
|
10250
12456
|
return typeof value === "string" && value.length <= 4096 && !value.startsWith("/") && !value.includes("\\") && !value.includes("\0") && value.split("/").every((part) => part !== "" && part !== "." && part !== "..");
|
|
@@ -10260,7 +12466,7 @@ function isSwiftResourceBundles(value) {
|
|
|
10260
12466
|
|
|
10261
12467
|
// src/xcode-header-search.ts
|
|
10262
12468
|
import fs5 from "node:fs";
|
|
10263
|
-
import
|
|
12469
|
+
import path11 from "node:path";
|
|
10264
12470
|
function headerMap(entries) {
|
|
10265
12471
|
const unique = /* @__PURE__ */ new Map();
|
|
10266
12472
|
for (const entry of entries)
|
|
@@ -10307,11 +12513,11 @@ function writeXcodeHeaderSearch(directory, targets) {
|
|
|
10307
12513
|
const productDirectories = /* @__PURE__ */ new Map();
|
|
10308
12514
|
for (const target of targets)
|
|
10309
12515
|
for (const [product, file] of Object.entries(target.productHeaders)) {
|
|
10310
|
-
const listed = productDirectories.get(
|
|
10311
|
-
productDirectories.set(
|
|
10312
|
-
listed.push({ name:
|
|
12516
|
+
const listed = productDirectories.get(path11.dirname(product)) ?? [];
|
|
12517
|
+
productDirectories.set(path11.dirname(product), listed);
|
|
12518
|
+
listed.push({ name: path11.basename(product), file });
|
|
10313
12519
|
}
|
|
10314
|
-
const overlay =
|
|
12520
|
+
const overlay = path11.join(directory, "all-product-headers.yaml");
|
|
10315
12521
|
fs5.writeFileSync(
|
|
10316
12522
|
overlay,
|
|
10317
12523
|
JSON.stringify({
|
|
@@ -10331,7 +12537,7 @@ function writeXcodeHeaderSearch(directory, targets) {
|
|
|
10331
12537
|
const files = [overlay];
|
|
10332
12538
|
const flags = targets.map((target, index) => {
|
|
10333
12539
|
const maps = target.headerMaps.map((map2, order) => {
|
|
10334
|
-
const file =
|
|
12540
|
+
const file = path11.join(directory, `${index}-${order}.hmap`);
|
|
10335
12541
|
fs5.writeFileSync(file, headerMap(map2.entries));
|
|
10336
12542
|
files.push(file);
|
|
10337
12543
|
return { flag: map2.flag, file };
|
|
@@ -10448,7 +12654,7 @@ function swiftBuilderHopTimeoutMs(compileTimeoutMs) {
|
|
|
10448
12654
|
return (compileTimeoutMs ?? SWIFT_BUILDER_DEFAULT_COMPILE_MS) + SWIFT_BUILDER_TRANSPORT_MARGIN_MS;
|
|
10449
12655
|
}
|
|
10450
12656
|
function swiftDistributionAt(root) {
|
|
10451
|
-
const file =
|
|
12657
|
+
const file = path12.join(root, SWIFT_DISTRIBUTION_MANIFEST);
|
|
10452
12658
|
if (!existsSync2(file)) return null;
|
|
10453
12659
|
return parseSwiftDistributionManifest(JSON.parse(readFileSync6(file, "utf8")));
|
|
10454
12660
|
}
|
|
@@ -10477,7 +12683,7 @@ function swiftModuleInputFiles(root) {
|
|
|
10477
12683
|
"toolchain.json"
|
|
10478
12684
|
];
|
|
10479
12685
|
const walk = (dir) => {
|
|
10480
|
-
for (const entry of readdirSync4(
|
|
12686
|
+
for (const entry of readdirSync4(path12.join(root, dir), {
|
|
10481
12687
|
withFileTypes: true
|
|
10482
12688
|
})) {
|
|
10483
12689
|
const relative = `${dir}/${entry.name}`;
|
|
@@ -10495,32 +12701,32 @@ function swiftMacroPlugins(moduleRoot) {
|
|
|
10495
12701
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
10496
12702
|
if (distribution)
|
|
10497
12703
|
return {
|
|
10498
|
-
libraries: distribution.plugins.map((plugin) =>
|
|
12704
|
+
libraries: distribution.plugins.map((plugin) => path12.join(moduleRoot, plugin)),
|
|
10499
12705
|
stale: false
|
|
10500
12706
|
};
|
|
10501
|
-
const dir =
|
|
12707
|
+
const dir = path12.join(moduleRoot, ".build/host/RnxPreviewMacros");
|
|
10502
12708
|
const release = JSON.parse(
|
|
10503
|
-
readFileSync6(
|
|
12709
|
+
readFileSync6(path12.join(moduleRoot, "toolchain.json"), "utf8")
|
|
10504
12710
|
).release;
|
|
10505
|
-
const compilerStamp =
|
|
12711
|
+
const compilerStamp = path12.join(dir, "compiler-release");
|
|
10506
12712
|
const ext = process.platform === "darwin" ? "dylib" : "so";
|
|
10507
12713
|
const plugins = [
|
|
10508
12714
|
{
|
|
10509
|
-
library:
|
|
10510
|
-
sources: [
|
|
12715
|
+
library: path12.join(dir, `libRnxPreviewMacros.${ext}`),
|
|
12716
|
+
sources: [path12.join(moduleRoot, "Sources/RnxPreviewMacros/PreviewMacro.swift")]
|
|
10511
12717
|
},
|
|
10512
12718
|
{
|
|
10513
|
-
library:
|
|
12719
|
+
library: path12.join(dir, `libFoundationMacros.${ext}`),
|
|
10514
12720
|
sources: [
|
|
10515
|
-
|
|
10516
|
-
|
|
12721
|
+
path12.join(moduleRoot, "Sources/FoundationMacros/PredicateMacro.swift"),
|
|
12722
|
+
path12.join(moduleRoot, "Sources/SwiftMacroSupport/PredicateExpression.swift")
|
|
10517
12723
|
]
|
|
10518
12724
|
},
|
|
10519
12725
|
{
|
|
10520
|
-
library:
|
|
12726
|
+
library: path12.join(dir, `libTipKitMacros.${ext}`),
|
|
10521
12727
|
sources: [
|
|
10522
|
-
|
|
10523
|
-
|
|
12728
|
+
path12.join(moduleRoot, "Sources/TipKitMacros/TipKitMacros.swift"),
|
|
12729
|
+
path12.join(moduleRoot, "Sources/SwiftMacroSupport/PredicateExpression.swift")
|
|
10524
12730
|
]
|
|
10525
12731
|
}
|
|
10526
12732
|
];
|
|
@@ -10537,14 +12743,14 @@ async function ensureMacroPlugins(moduleRoot, toolchainBin, release, signal) {
|
|
|
10537
12743
|
await runCompiler(
|
|
10538
12744
|
"sh",
|
|
10539
12745
|
[
|
|
10540
|
-
|
|
12746
|
+
path12.join(moduleRoot, "scripts/build-preview-plugin.sh"),
|
|
10541
12747
|
toolchainBin,
|
|
10542
12748
|
libraries[0]
|
|
10543
12749
|
],
|
|
10544
12750
|
{ signal }
|
|
10545
12751
|
);
|
|
10546
12752
|
writeFileSync3(
|
|
10547
|
-
|
|
12753
|
+
path12.join(path12.dirname(libraries[0]), "compiler-release"),
|
|
10548
12754
|
`${release}
|
|
10549
12755
|
`
|
|
10550
12756
|
);
|
|
@@ -10560,7 +12766,7 @@ function swiftModuleDigest(root) {
|
|
|
10560
12766
|
const files = swiftModuleInputFiles(root);
|
|
10561
12767
|
const stampHash = createHash9("sha256");
|
|
10562
12768
|
for (const file of files) {
|
|
10563
|
-
const stat = statSync(
|
|
12769
|
+
const stat = statSync(path12.join(root, file), { bigint: true });
|
|
10564
12770
|
stampHash.update(file);
|
|
10565
12771
|
stampHash.update(
|
|
10566
12772
|
`${stat.dev}:${stat.ino}:${stat.size}:${stat.mtimeNs}:${stat.ctimeNs}
|
|
@@ -10574,7 +12780,7 @@ function swiftModuleDigest(root) {
|
|
|
10574
12780
|
for (const file of files) {
|
|
10575
12781
|
hash2.update(createHash9("sha256").update(file).digest());
|
|
10576
12782
|
hash2.update(
|
|
10577
|
-
createHash9("sha256").update(readFileSync6(
|
|
12783
|
+
createHash9("sha256").update(readFileSync6(path12.join(root, file))).digest()
|
|
10578
12784
|
);
|
|
10579
12785
|
}
|
|
10580
12786
|
const digest = hash2.digest();
|
|
@@ -10598,7 +12804,7 @@ function withNativeSourceGlue(input, glue) {
|
|
|
10598
12804
|
...input,
|
|
10599
12805
|
files: {
|
|
10600
12806
|
...input.files,
|
|
10601
|
-
[
|
|
12807
|
+
[path12.posix.join(targetPath, "OneNativeSource.generated.swift")]: glue
|
|
10602
12808
|
},
|
|
10603
12809
|
oneModule: true
|
|
10604
12810
|
};
|
|
@@ -10669,8 +12875,8 @@ function swiftCondition(text3, available) {
|
|
|
10669
12875
|
if (!call) return void 0;
|
|
10670
12876
|
const [, name2, argument] = call;
|
|
10671
12877
|
if (name2 === "os") return argument === "iOS" || argument === "WASI";
|
|
10672
|
-
if (name2 === "canImport") return available
|
|
10673
|
-
if (name2 === "targetEnvironment") return
|
|
12878
|
+
if (name2 === "canImport") return available?.has(argument);
|
|
12879
|
+
if (name2 === "targetEnvironment") return argument === "simulator";
|
|
10674
12880
|
if (name2 === "arch") return argument === "wasm32";
|
|
10675
12881
|
return void 0;
|
|
10676
12882
|
};
|
|
@@ -10694,12 +12900,11 @@ function swiftCondition(text3, available) {
|
|
|
10694
12900
|
};
|
|
10695
12901
|
return either();
|
|
10696
12902
|
}
|
|
10697
|
-
function
|
|
10698
|
-
const names = [];
|
|
12903
|
+
function* swiftConditionalLines(contents, available) {
|
|
10699
12904
|
const frames = [];
|
|
10700
12905
|
for (const line of contents.split("\n")) {
|
|
10701
12906
|
const directive = /^\s*#(if|elseif|else|endif)\b(.*)$/.exec(line);
|
|
10702
|
-
if (directive
|
|
12907
|
+
if (directive) {
|
|
10703
12908
|
const [, kind, rest] = directive;
|
|
10704
12909
|
const condition = (rest ?? "").replace(/\/\/.*$/, "").trim();
|
|
10705
12910
|
if (kind === "if") {
|
|
@@ -10712,9 +12917,19 @@ function swiftImportNames(contents, available) {
|
|
|
10712
12917
|
frame.active = frame.taken === true ? false : frame.taken === false ? holds : holds && void 0;
|
|
10713
12918
|
frame.taken = frame.taken === true || holds === true ? true : frame.taken === false ? holds : void 0;
|
|
10714
12919
|
}
|
|
12920
|
+
yield { line, active: false };
|
|
10715
12921
|
continue;
|
|
10716
12922
|
}
|
|
10717
|
-
|
|
12923
|
+
yield {
|
|
12924
|
+
line,
|
|
12925
|
+
active: frames.some((frame) => frame.active === false) ? false : frames.every((frame) => frame.active === true) ? true : void 0
|
|
12926
|
+
};
|
|
12927
|
+
}
|
|
12928
|
+
}
|
|
12929
|
+
function swiftImportNames(contents, available) {
|
|
12930
|
+
const names = [];
|
|
12931
|
+
for (const { line, active } of swiftConditionalLines(contents, available)) {
|
|
12932
|
+
if (available && active !== true) continue;
|
|
10718
12933
|
const name2 = SWIFT_IMPORT.exec(line)?.[1];
|
|
10719
12934
|
if (name2) names.push(name2);
|
|
10720
12935
|
}
|
|
@@ -10722,11 +12937,9 @@ function swiftImportNames(contents, available) {
|
|
|
10722
12937
|
}
|
|
10723
12938
|
function swiftPeachModules(moduleRoot) {
|
|
10724
12939
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
10725
|
-
return distribution ? distribution.modules :
|
|
10726
|
-
|
|
10727
|
-
|
|
10728
|
-
)
|
|
10729
|
-
].map((match) => match[1]);
|
|
12940
|
+
return distribution ? distribution.modules : swiftManifestDeclarations(
|
|
12941
|
+
readFileSync6(path12.join(moduleRoot, "Package.swift"), "utf8")
|
|
12942
|
+
).filter((target) => !target.executable).map((target) => target.name);
|
|
10730
12943
|
}
|
|
10731
12944
|
var sdkPaths = /* @__PURE__ */ new Map();
|
|
10732
12945
|
function swiftSdkPaths(moduleRoot, toolchainBin) {
|
|
@@ -10735,7 +12948,7 @@ function swiftSdkPaths(moduleRoot, toolchainBin) {
|
|
|
10735
12948
|
const cached = sdkPaths.get(key);
|
|
10736
12949
|
if (cached) return cached;
|
|
10737
12950
|
const configuration = execFileSync3(
|
|
10738
|
-
|
|
12951
|
+
path12.join(toolchainBin, "swift"),
|
|
10739
12952
|
[
|
|
10740
12953
|
"sdk",
|
|
10741
12954
|
"configure",
|
|
@@ -10766,12 +12979,12 @@ function swiftAvailableModules(moduleRoot, toolchainBin) {
|
|
|
10766
12979
|
if (cached) return cached;
|
|
10767
12980
|
const modules = new Set(swiftPeachModules(moduleRoot));
|
|
10768
12981
|
const { resources } = swiftSdkPaths(moduleRoot, toolchainBin);
|
|
10769
|
-
for (const entry of readdirSync4(
|
|
12982
|
+
for (const entry of readdirSync4(path12.join(resources, "wasi"))) {
|
|
10770
12983
|
if (entry.endsWith(".swiftmodule"))
|
|
10771
12984
|
modules.add(entry.slice(0, -".swiftmodule".length));
|
|
10772
12985
|
}
|
|
10773
12986
|
for (const entry of readdirSync4(resources)) {
|
|
10774
|
-
const map2 =
|
|
12987
|
+
const map2 = path12.join(resources, entry, "module.modulemap");
|
|
10775
12988
|
if (!existsSync2(map2)) continue;
|
|
10776
12989
|
for (const match of readFileSync6(map2, "utf8").matchAll(/^module\s+([A-Za-z_]\w*)/gm))
|
|
10777
12990
|
modules.add(match[1]);
|
|
@@ -10779,12 +12992,14 @@ function swiftAvailableModules(moduleRoot, toolchainBin) {
|
|
|
10779
12992
|
availableModules.set(key, modules);
|
|
10780
12993
|
return modules;
|
|
10781
12994
|
}
|
|
10782
|
-
function missingSwiftModules(files, available) {
|
|
12995
|
+
function missingSwiftModules(files, available, providedByFile = () => []) {
|
|
10783
12996
|
const missing = /* @__PURE__ */ new Map();
|
|
10784
12997
|
for (const [file, contents] of Object.entries(files)) {
|
|
10785
12998
|
if (!file.endsWith(".swift") || file === "Package.swift") continue;
|
|
10786
|
-
|
|
10787
|
-
|
|
12999
|
+
const extra = providedByFile(file);
|
|
13000
|
+
const scoped = extra.length === 0 ? available : /* @__PURE__ */ new Set([...available, ...extra]);
|
|
13001
|
+
for (const name2 of new Set(swiftImportNames(contents, scoped))) {
|
|
13002
|
+
if (scoped.has(name2)) continue;
|
|
10788
13003
|
missing.set(name2, [...missing.get(name2) ?? [], file]);
|
|
10789
13004
|
}
|
|
10790
13005
|
}
|
|
@@ -10836,8 +13051,8 @@ var EXECUTABLE_LINK_FLAGS = ` "-Xclang-linker", "-O0",
|
|
|
10836
13051
|
"-Xlinker", "--global-base=8372224",
|
|
10837
13052
|
`;
|
|
10838
13053
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
10839
|
-
var MULTI_MANIFEST_VERSION =
|
|
10840
|
-
var compilerSourceDigest = true ? "
|
|
13054
|
+
var MULTI_MANIFEST_VERSION = 43;
|
|
13055
|
+
var compilerSourceDigest = true ? "c3642227b6260bfa89e4a5f0278959ecb55637a4506e5196604eb471ca8418d1" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
10841
13056
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
10842
13057
|
const hash2 = createHash9("sha256");
|
|
10843
13058
|
hash2.update(`swift-compile
|
|
@@ -10880,6 +13095,11 @@ ${release}
|
|
|
10880
13095
|
)
|
|
10881
13096
|
);
|
|
10882
13097
|
hash2.update(JSON.stringify(input.nativeTargets ?? []));
|
|
13098
|
+
hash2.update(JSON.stringify(input.packageGuestImports ?? []));
|
|
13099
|
+
for (const file of Object.keys(input.packageFiles ?? {}).sort()) {
|
|
13100
|
+
hash2.update(`package-file\0${file}\0`);
|
|
13101
|
+
hash2.update(createHash9("sha256").update(input.packageFiles[file]).digest());
|
|
13102
|
+
}
|
|
10883
13103
|
hash2.update(JSON.stringify(input.objcPeerStartup ?? null));
|
|
10884
13104
|
for (const target of Object.keys(input.libraries ?? {}).sort()) {
|
|
10885
13105
|
hash2.update(`library
|
|
@@ -10904,6 +13124,20 @@ ${target}
|
|
|
10904
13124
|
}
|
|
10905
13125
|
return hash2.digest("hex");
|
|
10906
13126
|
}
|
|
13127
|
+
function swiftCrossImportFlags(moduleRoot, distribution) {
|
|
13128
|
+
const overlayRoot = path12.join(
|
|
13129
|
+
moduleRoot,
|
|
13130
|
+
distribution ? "modules" : "cross-import-overlays"
|
|
13131
|
+
);
|
|
13132
|
+
return readdirSync4(overlayRoot, { encoding: "utf8", recursive: true }).filter((file) => file.endsWith(".swiftoverlay")).sort((left, right) => left.localeCompare(right)).flatMap((file) => [
|
|
13133
|
+
"-Xfrontend",
|
|
13134
|
+
"-swift-module-cross-import",
|
|
13135
|
+
"-Xfrontend",
|
|
13136
|
+
path12.basename(path12.dirname(file), ".swiftcrossimport"),
|
|
13137
|
+
"-Xfrontend",
|
|
13138
|
+
path12.join(overlayRoot, file)
|
|
13139
|
+
]);
|
|
13140
|
+
}
|
|
10907
13141
|
function emitSwiftPackageManifest(args) {
|
|
10908
13142
|
const { targets, siblings, moduleRoot, oneModule, spriteKit, distribution } = args;
|
|
10909
13143
|
const reachedFrameworks = /* @__PURE__ */ new Set();
|
|
@@ -10933,22 +13167,11 @@ function emitSwiftPackageManifest(args) {
|
|
|
10933
13167
|
distributionLink.files.set(
|
|
10934
13168
|
distributionLink.path,
|
|
10935
13169
|
objects.map(
|
|
10936
|
-
(object) => `"${
|
|
13170
|
+
(object) => `"${path12.join(moduleRoot, object).replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`
|
|
10937
13171
|
).join("\n") + "\n"
|
|
10938
13172
|
);
|
|
10939
13173
|
}
|
|
10940
|
-
const
|
|
10941
|
-
moduleRoot,
|
|
10942
|
-
distribution ? "modules" : "cross-import-overlays"
|
|
10943
|
-
);
|
|
10944
|
-
const overlayFlags = readdirSync4(overlayRoot, { encoding: "utf8", recursive: true }).filter((file) => file.endsWith(".swiftoverlay")).sort((left, right) => left.localeCompare(right)).flatMap((file) => [
|
|
10945
|
-
"-Xfrontend",
|
|
10946
|
-
"-swift-module-cross-import",
|
|
10947
|
-
"-Xfrontend",
|
|
10948
|
-
path11.basename(path11.dirname(file), ".swiftcrossimport"),
|
|
10949
|
-
"-Xfrontend",
|
|
10950
|
-
path11.join(overlayRoot, file)
|
|
10951
|
-
]).map((flag) => `, ${JSON.stringify(flag)}`).join("");
|
|
13174
|
+
const overlayFlags = swiftCrossImportFlags(moduleRoot, Boolean(distribution)).map((flag) => `, ${JSON.stringify(flag)}`).join("");
|
|
10952
13175
|
const executable = targets.find((target) => target.executable);
|
|
10953
13176
|
if (!executable) throw new Error("swift-compile: no executable target to emit");
|
|
10954
13177
|
const linkedNativeModules = [...args.native?.entries() ?? []].flatMap(
|
|
@@ -10962,7 +13185,10 @@ function emitSwiftPackageManifest(args) {
|
|
|
10962
13185
|
const interoperability = target.cxxInterop ? " .interoperabilityMode(.Cxx)," : "";
|
|
10963
13186
|
const exports = args.objcExports?.modules.has(target.name) || args.objcExports?.rootModule === target.name ? ' .enableExperimentalFeature("Extern"),' : "";
|
|
10964
13187
|
const defines = (target.defines ?? []).map((name2) => ` .define(${JSON.stringify(name2)}),`).join("");
|
|
10965
|
-
const
|
|
13188
|
+
const features = (target.experimentalFeatures ?? []).map((name2) => ` .enableExperimentalFeature(${JSON.stringify(name2)}),`).join("");
|
|
13189
|
+
const upcoming = (target.upcomingFeatures ?? []).map((name2) => ` .enableUpcomingFeature(${JSON.stringify(name2)}),`).join("");
|
|
13190
|
+
const upstream = (target.swiftFlags ?? []).map((flag) => `, ${JSON.stringify(flag)}`).join("");
|
|
13191
|
+
const imports = distribution ? `, "-I", ${JSON.stringify(path12.join(moduleRoot, "modules"))}` : "";
|
|
10966
13192
|
const native = args.native?.get(target.name);
|
|
10967
13193
|
const clang = native && !native.mixed;
|
|
10968
13194
|
const nativeImports = (siblings.get(target.name) ?? []).filter((name2) => args.native?.has(name2) && !args.native.get(name2)?.mixed).map(
|
|
@@ -10982,10 +13208,15 @@ function emitSwiftPackageManifest(args) {
|
|
|
10982
13208
|
const nativeImportFlags = [...importContext].flatMap((name2) => args.native?.get(name2)?.clang?.importFlags ?? []).map((flag) => `, "-Xcc", ${JSON.stringify(flag)}`).join("");
|
|
10983
13209
|
const header = args.headerDirectory && [...args.native?.values() ?? []].some(
|
|
10984
13210
|
(value) => value.late?.producers.includes(target.name)
|
|
10985
|
-
) ? `, "-emit-objc-header-path", ${JSON.stringify(
|
|
10986
|
-
const swiftSettings = `swiftSettings: [.swiftLanguageMode(.v${target.languageMode}),${isolation}${interoperability}${defines}${exports} .unsafeFlags(["-Osize", "-Xfrontend", "-enable-cross-import-overlays"${overlayFlags}${FOUNDATION_IMPLICIT_FLAGS}${oneModule ? ONE_IMPLICIT_FLAGS : ""}${imports}${nativeImports}${nativeImportFlags}${header}])]`;
|
|
13211
|
+
) ? `, "-emit-objc-header-path", ${JSON.stringify(path12.join(args.headerDirectory, `${target.name}-${args.objcExports?.modules.has(target.name) ? "Cxx" : "Swift"}.h`))}` : "";
|
|
13212
|
+
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}])]`;
|
|
10987
13213
|
const deps = [
|
|
10988
13214
|
.../* @__PURE__ */ new Set([
|
|
13215
|
+
...(target.dependencies ?? []).flatMap(
|
|
13216
|
+
(dependency) => dependency.kind === "product" ? [
|
|
13217
|
+
`.product(name: ${JSON.stringify(dependency.name)}, package: ${JSON.stringify(dependency.package)})`
|
|
13218
|
+
] : []
|
|
13219
|
+
),
|
|
10989
13220
|
...target.executable ? [
|
|
10990
13221
|
.../* @__PURE__ */ new Set([
|
|
10991
13222
|
...args.objcExports?.modules ?? [],
|
|
@@ -11034,11 +13265,11 @@ function emitSwiftPackageManifest(args) {
|
|
|
11034
13265
|
const cDefines = macroSettings(target.cDefines);
|
|
11035
13266
|
const cxxDefines = macroSettings(target.cxxDefines);
|
|
11036
13267
|
const nativeSettings = native?.clang ? [
|
|
11037
|
-
`cSettings: [${cDefines} .unsafeFlags(${JSON.stringify([...args.
|
|
11038
|
-
`cxxSettings: [${cxxDefines} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.
|
|
13268
|
+
`cSettings: [${cDefines} .unsafeFlags(${JSON.stringify([...args.nativeFlags?.get(target.name) ?? [], ...native.clang.flags])})]`,
|
|
13269
|
+
`cxxSettings: [${cxxDefines} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.nativeFlags?.get(target.name) ?? [], ...native.clang.cxxFlags])})]`
|
|
11039
13270
|
].join(", ") : [
|
|
11040
|
-
`cSettings: [${cDefines} .unsafeFlags(${JSON.stringify([...args.
|
|
11041
|
-
`cxxSettings: [${cxxDefines} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.
|
|
13271
|
+
`cSettings: [${cDefines} .unsafeFlags(${JSON.stringify([...args.nativeFlags?.get(target.name) ?? [], ...native?.flags ?? []])})]`,
|
|
13272
|
+
`cxxSettings: [${cxxDefines} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.nativeFlags?.get(target.name) ?? [], ...native?.cxxFlags ?? []])})]`
|
|
11042
13273
|
].join(", ");
|
|
11043
13274
|
return [
|
|
11044
13275
|
` ${kind}(`,
|
|
@@ -11047,9 +13278,10 @@ function emitSwiftPackageManifest(args) {
|
|
|
11047
13278
|
` path: ${JSON.stringify(native?.clang ? "." : target.path)},`,
|
|
11048
13279
|
...native ? [` exclude: ${JSON.stringify(native.exclude ?? native.lateSources)},`] : [],
|
|
11049
13280
|
...native?.clang ? [
|
|
11050
|
-
` sources: ${JSON.stringify(native.clang.sources.map((source) =>
|
|
11051
|
-
` publicHeadersPath: ${JSON.stringify(
|
|
13281
|
+
` sources: ${JSON.stringify(native.clang.sources.map((source) => path12.posix.join(native.path, source)))},`,
|
|
13282
|
+
` publicHeadersPath: ${JSON.stringify(path12.posix.dirname(native.clang.modulemap))},`
|
|
11052
13283
|
] : native?.flags ? [` sources: ${JSON.stringify(native.sources)},`] : [],
|
|
13284
|
+
...!native?.clang && target.publicHeadersPath !== void 0 ? [` publicHeadersPath: ${JSON.stringify(target.publicHeadersPath)},`] : [],
|
|
11053
13285
|
// the native backend supplies dependency module maps without their
|
|
11054
13286
|
// compiled modules. textual c++ includes keep those dependencies usable.
|
|
11055
13287
|
` ${clang ? nativeSettings : swiftSettings}${link}`,
|
|
@@ -11064,7 +13296,12 @@ function emitSwiftPackageManifest(args) {
|
|
|
11064
13296
|
"let package = Package(",
|
|
11065
13297
|
' name: "app",',
|
|
11066
13298
|
` products: [.executable(name: "${executable.name}", targets: ["${executable.name}"])],`,
|
|
11067
|
-
` dependencies: [${
|
|
13299
|
+
` dependencies: [${[
|
|
13300
|
+
...distribution ? [] : [`.package(path: ${JSON.stringify(moduleRoot)})`],
|
|
13301
|
+
...[...args.packages ?? []].map(
|
|
13302
|
+
([name2, directory]) => `.package(name: ${JSON.stringify(name2)}, path: ${JSON.stringify(directory)})`
|
|
13303
|
+
)
|
|
13304
|
+
].join(", ")}],`,
|
|
11068
13305
|
" targets: [",
|
|
11069
13306
|
...targets.map(stanza),
|
|
11070
13307
|
...args.objcExports ? [
|
|
@@ -11073,7 +13310,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
11073
13310
|
' path: "PeachObjCExports",',
|
|
11074
13311
|
` sources: ${JSON.stringify(["root.m", ...[...args.objcExports.modules].map((name2) => `${name2}.m`)])},`,
|
|
11075
13312
|
' publicHeadersPath: "include",',
|
|
11076
|
-
` cSettings: [.unsafeFlags(${JSON.stringify([...args.objcExports.
|
|
13313
|
+
` cSettings: [.unsafeFlags(${JSON.stringify([...args.nativeFlags.get(args.objcExports.rootModule).filter((flag) => flag !== "-fobjc-arc"), "-fno-objc-arc", "-Xclang", "-disable-objc-default-synthesize-properties"])})]),`
|
|
11077
13314
|
] : [],
|
|
11078
13315
|
...[...args.native?.entries() ?? []].flatMap(([name2, native]) => {
|
|
11079
13316
|
const late = native.late;
|
|
@@ -11089,10 +13326,10 @@ function emitSwiftPackageManifest(args) {
|
|
|
11089
13326
|
` .target(name: ${JSON.stringify(group.name)},`,
|
|
11090
13327
|
` dependencies: ${JSON.stringify(native.mixed ? [] : [name2, ...late.producers])},`,
|
|
11091
13328
|
` path: ${JSON.stringify(native.clang ? "." : native.path)},`,
|
|
11092
|
-
` sources: ${JSON.stringify(native.clang ? group.sources.map((source) =>
|
|
11093
|
-
` publicHeadersPath: ${JSON.stringify(native.clang ?
|
|
11094
|
-
` cSettings: [${macroSettings(owner?.cDefines)} .unsafeFlags(${JSON.stringify([...args.
|
|
11095
|
-
` cxxSettings: [${macroSettings(owner?.cxxDefines)} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.
|
|
13329
|
+
` sources: ${JSON.stringify(native.clang ? group.sources.map((source) => path12.posix.join(native.path, source)) : group.sources)},`,
|
|
13330
|
+
` publicHeadersPath: ${JSON.stringify(native.clang ? path12.posix.dirname(native.clang.modulemap) : "include")},`,
|
|
13331
|
+
` cSettings: [${macroSettings(owner?.cDefines)} .unsafeFlags(${JSON.stringify([...args.nativeFlags?.get(name2) ?? [], ...group.flags])})],`,
|
|
13332
|
+
` cxxSettings: [${macroSettings(owner?.cxxDefines)} .unsafeFlags(${JSON.stringify(["-fno-cxx-modules", ...args.nativeFlags?.get(name2) ?? [], "-I", native.includeDirectory, "-I", args.headerDirectory, ...group.cxxFlags])})]),`
|
|
11096
13333
|
]) : [];
|
|
11097
13334
|
}),
|
|
11098
13335
|
args.cxxLanguageStandard ? ` ],
|
|
@@ -11105,7 +13342,7 @@ function syncSwiftTree(base, files) {
|
|
|
11105
13342
|
mkdirSync2(base, { recursive: true });
|
|
11106
13343
|
const walk = (dir) => {
|
|
11107
13344
|
for (const entry of readdirSync4(dir, { withFileTypes: true })) {
|
|
11108
|
-
const full =
|
|
13345
|
+
const full = path12.join(dir, entry.name);
|
|
11109
13346
|
if (dir === base && entry.name === ".build") continue;
|
|
11110
13347
|
if (entry.isDirectory()) walk(full);
|
|
11111
13348
|
else if (!files.has(full)) rmSync3(full, { force: true });
|
|
@@ -11115,7 +13352,7 @@ function syncSwiftTree(base, files) {
|
|
|
11115
13352
|
for (const [full, contents] of files) {
|
|
11116
13353
|
if (existsSync2(full) && (typeof contents === "string" ? readFileSync6(full, "utf8") === contents : readFileSync6(full).equals(contents)))
|
|
11117
13354
|
continue;
|
|
11118
|
-
mkdirSync2(
|
|
13355
|
+
mkdirSync2(path12.dirname(full), { recursive: true });
|
|
11119
13356
|
writeFileSync3(full, contents);
|
|
11120
13357
|
}
|
|
11121
13358
|
}
|
|
@@ -14884,25 +17121,229 @@ function swiftSourceClosure(files, roots) {
|
|
|
14884
17121
|
return Object.fromEntries(Object.entries(files).filter(([file]) => included.has(file)));
|
|
14885
17122
|
}
|
|
14886
17123
|
function swiftApplicationEntry(file, source) {
|
|
14887
|
-
const {
|
|
17124
|
+
const code = [...swiftConditionalLines(swiftCodeMask(source))].map(({ line, active }) => active === false ? " ".repeat(line.length) : line).join("\n");
|
|
17125
|
+
const { tokens } = swiftCodeScan(code);
|
|
14888
17126
|
let depth = 0;
|
|
14889
17127
|
for (const at of tokens) {
|
|
14890
17128
|
if (source[at] === "{") depth++;
|
|
14891
17129
|
else if (source[at] === "}") depth--;
|
|
14892
17130
|
else if (depth === 0 && /^@(?:main|UIApplicationMain)\b/.test(source.slice(at)))
|
|
14893
17131
|
return true;
|
|
14894
|
-
else if (depth === 0 &&
|
|
17132
|
+
else if (depth === 0 && path12.basename(file) === "main.swift" && /^UIApplicationMain\s*\(/.test(source.slice(at)))
|
|
14895
17133
|
return true;
|
|
14896
17134
|
}
|
|
14897
17135
|
return false;
|
|
14898
17136
|
}
|
|
17137
|
+
var emptyMacroEnvironment = {
|
|
17138
|
+
defines: /* @__PURE__ */ new Map(),
|
|
17139
|
+
predefines: /* @__PURE__ */ new Map(),
|
|
17140
|
+
targetDefined: /* @__PURE__ */ new Set()
|
|
17141
|
+
};
|
|
17142
|
+
function cMacroDefined(name2, env) {
|
|
17143
|
+
if (env.defines.has(name2) || env.predefines.has(name2)) return true;
|
|
17144
|
+
if (env.targetDefined.has(name2)) return void 0;
|
|
17145
|
+
return false;
|
|
17146
|
+
}
|
|
17147
|
+
function cMacroIntOrTrue(value) {
|
|
17148
|
+
if (value === void 0) return true;
|
|
17149
|
+
if (/^0[xX][0-9a-fA-F]+[uUlL]*$/.test(value) || /^\d+[uUlL]*$/.test(value))
|
|
17150
|
+
return Number.parseInt(value) !== 0;
|
|
17151
|
+
return void 0;
|
|
17152
|
+
}
|
|
17153
|
+
function cMacroBareValue(name2, env) {
|
|
17154
|
+
if (env.defines.has(name2)) return cMacroIntOrTrue(env.defines.get(name2));
|
|
17155
|
+
if (env.predefines.has(name2)) return cMacroIntOrTrue(env.predefines.get(name2));
|
|
17156
|
+
if (env.targetDefined.has(name2)) return void 0;
|
|
17157
|
+
return false;
|
|
17158
|
+
}
|
|
17159
|
+
function cMacroNegated(name2, env) {
|
|
17160
|
+
const value = cMacroDefined(name2, env);
|
|
17161
|
+
return value === void 0 ? void 0 : !value;
|
|
17162
|
+
}
|
|
17163
|
+
function cConditionValue(expression, env) {
|
|
17164
|
+
let i = 0;
|
|
17165
|
+
const skipSpaces = () => {
|
|
17166
|
+
while (i < expression.length && /\s/.test(expression[i])) i++;
|
|
17167
|
+
};
|
|
17168
|
+
const parseOr = () => {
|
|
17169
|
+
let value2 = parseAnd();
|
|
17170
|
+
for (; ; ) {
|
|
17171
|
+
skipSpaces();
|
|
17172
|
+
if (!expression.startsWith("||", i)) return value2;
|
|
17173
|
+
i += 2;
|
|
17174
|
+
const right = parseAnd();
|
|
17175
|
+
value2 = value2 === void 0 || right === void 0 ? void 0 : value2 || right;
|
|
17176
|
+
}
|
|
17177
|
+
};
|
|
17178
|
+
const parseAnd = () => {
|
|
17179
|
+
let value2 = parseUnary();
|
|
17180
|
+
for (; ; ) {
|
|
17181
|
+
skipSpaces();
|
|
17182
|
+
if (!expression.startsWith("&&", i)) return value2;
|
|
17183
|
+
i += 2;
|
|
17184
|
+
const right = parseUnary();
|
|
17185
|
+
value2 = value2 === void 0 || right === void 0 ? void 0 : value2 && right;
|
|
17186
|
+
}
|
|
17187
|
+
};
|
|
17188
|
+
const parseUnary = () => {
|
|
17189
|
+
skipSpaces();
|
|
17190
|
+
if (expression[i] === "!") {
|
|
17191
|
+
i++;
|
|
17192
|
+
const value2 = parseUnary();
|
|
17193
|
+
return value2 === void 0 ? void 0 : !value2;
|
|
17194
|
+
}
|
|
17195
|
+
if (expression[i] === "(") {
|
|
17196
|
+
i++;
|
|
17197
|
+
const value2 = parseOr();
|
|
17198
|
+
skipSpaces();
|
|
17199
|
+
return expression[i] === ")" ? (i++, value2) : void 0;
|
|
17200
|
+
}
|
|
17201
|
+
const defined = /^defined\b/.exec(expression.slice(i));
|
|
17202
|
+
if (defined) {
|
|
17203
|
+
i += defined[0].length;
|
|
17204
|
+
skipSpaces();
|
|
17205
|
+
const parenthesized = expression[i] === "(";
|
|
17206
|
+
if (parenthesized) {
|
|
17207
|
+
i++;
|
|
17208
|
+
skipSpaces();
|
|
17209
|
+
}
|
|
17210
|
+
const name3 = /^\w+/.exec(expression.slice(i))?.[0];
|
|
17211
|
+
if (!name3) return void 0;
|
|
17212
|
+
i += name3.length;
|
|
17213
|
+
skipSpaces();
|
|
17214
|
+
if (parenthesized) {
|
|
17215
|
+
if (expression[i] !== ")") return void 0;
|
|
17216
|
+
i++;
|
|
17217
|
+
}
|
|
17218
|
+
return cMacroDefined(name3, env);
|
|
17219
|
+
}
|
|
17220
|
+
const literal = /^(0[xX][0-9a-fA-F]+|\d+)[uUlL]*/.exec(expression.slice(i));
|
|
17221
|
+
if (literal) {
|
|
17222
|
+
i += literal[0].length;
|
|
17223
|
+
return Number(literal[1]) !== 0;
|
|
17224
|
+
}
|
|
17225
|
+
const name2 = /^\w+/.exec(expression.slice(i))?.[0];
|
|
17226
|
+
if (!name2) return void 0;
|
|
17227
|
+
i += name2.length;
|
|
17228
|
+
return cMacroBareValue(name2, env);
|
|
17229
|
+
};
|
|
17230
|
+
const value = parseOr();
|
|
17231
|
+
skipSpaces();
|
|
17232
|
+
return i === expression.length ? value : void 0;
|
|
17233
|
+
}
|
|
17234
|
+
function cActiveCode(code, env) {
|
|
17235
|
+
const kept = [];
|
|
17236
|
+
const stack = [];
|
|
17237
|
+
let active = true;
|
|
17238
|
+
for (const line of code.replace(/\\\r?\n/g, "").split("\n")) {
|
|
17239
|
+
const directive = /^\s*#\s*(if|ifdef|ifndef|elif|elifdef|elifndef|else|endif)\b(.*)$/.exec(line);
|
|
17240
|
+
if (!directive) {
|
|
17241
|
+
if (active) kept.push(line);
|
|
17242
|
+
continue;
|
|
17243
|
+
}
|
|
17244
|
+
const keyword = directive[1];
|
|
17245
|
+
const rest = directive[2].trim();
|
|
17246
|
+
if (keyword === "if" || keyword === "ifdef" || keyword === "ifndef") {
|
|
17247
|
+
const name2 = /^\w+$/.exec(rest)?.[0];
|
|
17248
|
+
const value = keyword === "if" ? cConditionValue(rest, env) : name2 === void 0 ? void 0 : keyword === "ifdef" ? cMacroDefined(name2, env) : cMacroNegated(name2, env);
|
|
17249
|
+
stack.push({ parent: active, taken: value === true });
|
|
17250
|
+
active = active && value !== false;
|
|
17251
|
+
} else if (keyword === "endif") {
|
|
17252
|
+
active = stack.pop()?.parent ?? true;
|
|
17253
|
+
} else if (stack.length === 0) {
|
|
17254
|
+
continue;
|
|
17255
|
+
} else {
|
|
17256
|
+
const frame = stack[stack.length - 1];
|
|
17257
|
+
if (keyword === "else") {
|
|
17258
|
+
active = frame.parent && !frame.taken;
|
|
17259
|
+
frame.taken = true;
|
|
17260
|
+
} else {
|
|
17261
|
+
const name2 = /^\w+$/.exec(rest)?.[0];
|
|
17262
|
+
const value = keyword === "elif" ? cConditionValue(rest, env) : name2 === void 0 ? void 0 : keyword === "elifdef" ? cMacroDefined(name2, env) : cMacroNegated(name2, env);
|
|
17263
|
+
const branch = !frame.taken && value !== false;
|
|
17264
|
+
if (branch && value === true) frame.taken = true;
|
|
17265
|
+
active = frame.parent && branch;
|
|
17266
|
+
}
|
|
17267
|
+
}
|
|
17268
|
+
}
|
|
17269
|
+
return kept.join("\n");
|
|
17270
|
+
}
|
|
17271
|
+
function stripCCode(source) {
|
|
17272
|
+
let code = "";
|
|
17273
|
+
let i = 0;
|
|
17274
|
+
while (i < source.length) {
|
|
17275
|
+
if (source.startsWith("//", i)) {
|
|
17276
|
+
const end = source.indexOf("\n", i);
|
|
17277
|
+
i = end === -1 ? source.length : end;
|
|
17278
|
+
} else if (source.startsWith("/*", i)) {
|
|
17279
|
+
const end = source.indexOf("*/", i + 2);
|
|
17280
|
+
i = end === -1 ? source.length : end + 2;
|
|
17281
|
+
} else if (source[i] === '"' || source[i] === "'") {
|
|
17282
|
+
const quote = source[i];
|
|
17283
|
+
i++;
|
|
17284
|
+
while (i < source.length && source[i] !== quote) i += source[i] === "\\" ? 2 : 1;
|
|
17285
|
+
i++;
|
|
17286
|
+
} else {
|
|
17287
|
+
code += source[i];
|
|
17288
|
+
i++;
|
|
17289
|
+
}
|
|
17290
|
+
}
|
|
17291
|
+
return code;
|
|
17292
|
+
}
|
|
17293
|
+
function swiftCDefinedNames(sources) {
|
|
17294
|
+
const names = /* @__PURE__ */ new Set();
|
|
17295
|
+
for (const source of sources)
|
|
17296
|
+
for (const line of stripCCode(source).split("\n")) {
|
|
17297
|
+
const name2 = /^\s*#\s*define\s+([A-Za-z_]\w*)/.exec(line)?.[1];
|
|
17298
|
+
if (name2) names.add(name2);
|
|
17299
|
+
}
|
|
17300
|
+
return names;
|
|
17301
|
+
}
|
|
17302
|
+
var cPredefineTable = swift_c_predefines_default;
|
|
17303
|
+
var cPredefineCache = /* @__PURE__ */ new Map();
|
|
17304
|
+
function swiftCPredefines(language) {
|
|
17305
|
+
const cached = cPredefineCache.get(language);
|
|
17306
|
+
if (cached) return cached;
|
|
17307
|
+
const predefines = /* @__PURE__ */ new Map();
|
|
17308
|
+
for (const [name2, value] of Object.entries(cPredefineTable.languages[language]))
|
|
17309
|
+
predefines.set(name2, value ?? void 0);
|
|
17310
|
+
cPredefineCache.set(language, predefines);
|
|
17311
|
+
return predefines;
|
|
17312
|
+
}
|
|
17313
|
+
function swiftCMainEntry(file, source, env = emptyMacroEnvironment) {
|
|
17314
|
+
if (!isSwiftNativeTranslationUnit(file)) return false;
|
|
17315
|
+
const code = cActiveCode(stripCCode(source), env);
|
|
17316
|
+
for (const match of code.matchAll(/^\s*(?:int\s+|void\s+)?main\s*\(/gm)) {
|
|
17317
|
+
let depth = 1;
|
|
17318
|
+
let index = match.index + match[0].length;
|
|
17319
|
+
for (; index < code.length && depth > 0; index++) {
|
|
17320
|
+
if (code[index] === "(") depth++;
|
|
17321
|
+
else if (code[index] === ")") depth--;
|
|
17322
|
+
}
|
|
17323
|
+
if (depth > 0) continue;
|
|
17324
|
+
for (; index < code.length; index++) {
|
|
17325
|
+
const char = code[index];
|
|
17326
|
+
if (char === "{") return true;
|
|
17327
|
+
if (char === ";" || char === "}") break;
|
|
17328
|
+
if (char === "(" || char === "[") {
|
|
17329
|
+
const closer = char === "(" ? ")" : "]";
|
|
17330
|
+
let nested = 1;
|
|
17331
|
+
while (nested > 0 && ++index < code.length) {
|
|
17332
|
+
if (code[index] === char) nested++;
|
|
17333
|
+
else if (code[index] === closer) nested--;
|
|
17334
|
+
}
|
|
17335
|
+
}
|
|
17336
|
+
}
|
|
17337
|
+
}
|
|
17338
|
+
return false;
|
|
17339
|
+
}
|
|
14899
17340
|
function installObjcPeerStartup(input, targets, compiled) {
|
|
14900
17341
|
const startup = input.objcPeerStartup;
|
|
14901
17342
|
if (!startup) return;
|
|
14902
17343
|
function fail(detail) {
|
|
14903
17344
|
throw new Error(`Objective-C peer startup: ${detail}`);
|
|
14904
17345
|
}
|
|
14905
|
-
if ((input.nativeTargets?.length ?? 0) > 0 || Object.keys(input.files).some(
|
|
17346
|
+
if ((input.nativeTargets?.length ?? 0) > 0 || Object.keys(input.files).some(isSwiftNativeTranslationUnit))
|
|
14906
17347
|
fail("original native source targets require constructor provenance before admission");
|
|
14907
17348
|
validateObjcPeerStartupLibraries(input.libraries ?? {});
|
|
14908
17349
|
const executables = targets.filter((target2) => target2.executable);
|
|
@@ -14924,7 +17365,7 @@ function installObjcPeerStartup(input, targets, compiled) {
|
|
|
14924
17365
|
);
|
|
14925
17366
|
if (entries.length === 0) {
|
|
14926
17367
|
const source2 = compiled.get(input.entry);
|
|
14927
|
-
if (
|
|
17368
|
+
if (path12.basename(input.entry) !== "main.swift" || source2 === void 0)
|
|
14928
17369
|
fail("requires main.swift or a supported @main App/UIApplicationDelegate entry");
|
|
14929
17370
|
compiled.set(input.entry, `_peachRegisterObjcPeers()
|
|
14930
17371
|
${source2}`);
|
|
@@ -15060,14 +17501,14 @@ function prepareSwiftDependency(source, destination) {
|
|
|
15060
17501
|
for (const entry of readdirSync4(from, { withFileTypes: true })) {
|
|
15061
17502
|
if (entry.name === ".git" || entry.name === ".build" || entry.name === ".swiftpm")
|
|
15062
17503
|
continue;
|
|
15063
|
-
const file =
|
|
17504
|
+
const file = path12.join(from, entry.name);
|
|
15064
17505
|
if (entry.isDirectory()) gather(file);
|
|
15065
17506
|
else if (entry.isFile() && entry.name.endsWith(".swift"))
|
|
15066
|
-
origins[
|
|
17507
|
+
origins[path12.relative(source, file)] = readFileSync6(file, "utf8");
|
|
15067
17508
|
}
|
|
15068
17509
|
};
|
|
15069
17510
|
gather(source);
|
|
15070
|
-
const manifest =
|
|
17511
|
+
const manifest = path12.join(source, "Package.swift");
|
|
15071
17512
|
const targets = existsSync2(manifest) ? swiftManifestTargets(readFileSync6(manifest, "utf8")) : [];
|
|
15072
17513
|
const compiled = compiledSwiftSources(origins, targets);
|
|
15073
17514
|
const copy = (from, to) => {
|
|
@@ -15075,11 +17516,11 @@ function prepareSwiftDependency(source, destination) {
|
|
|
15075
17516
|
for (const entry of readdirSync4(from, { withFileTypes: true })) {
|
|
15076
17517
|
if (entry.name === ".git" || entry.name === ".build" || entry.name === ".swiftpm")
|
|
15077
17518
|
continue;
|
|
15078
|
-
const file =
|
|
15079
|
-
const target =
|
|
17519
|
+
const file = path12.join(from, entry.name);
|
|
17520
|
+
const target = path12.join(to, entry.name);
|
|
15080
17521
|
if (entry.isDirectory()) copy(file, target);
|
|
15081
17522
|
else if (entry.isFile() && entry.name.endsWith(".swift"))
|
|
15082
|
-
writeFileSync3(target, compiled.get(
|
|
17523
|
+
writeFileSync3(target, compiled.get(path12.relative(source, file)));
|
|
15083
17524
|
else cpSync(file, target, { verbatimSymlinks: true });
|
|
15084
17525
|
}
|
|
15085
17526
|
};
|
|
@@ -15091,6 +17532,14 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15091
17532
|
throw new Error("swift compile input has invalid Objective-C peer startup metadata");
|
|
15092
17533
|
if (input.nativeTargets !== void 0 && !isSwiftNativeTargets(input.nativeTargets))
|
|
15093
17534
|
throw new Error("swift compile input has invalid original clang target inputs");
|
|
17535
|
+
if (input.packageFiles !== void 0 && !isSwiftPackageFiles(input.packageFiles))
|
|
17536
|
+
throw new Error("swift compile input has invalid original package files");
|
|
17537
|
+
const packages = input.packageFiles ? swiftManifestPackages(input.files["Package.swift"] ?? "") : /* @__PURE__ */ new Map();
|
|
17538
|
+
for (const directory of packages.values())
|
|
17539
|
+
if (!isSwiftResourcePath(directory) || !Object.hasOwn(input.packageFiles ?? {}, `${directory}/Package.swift`))
|
|
17540
|
+
throw new Error(
|
|
17541
|
+
`swift compile input has no transported package manifest for ${directory}`
|
|
17542
|
+
);
|
|
15094
17543
|
if (input.resourceBundles !== void 0 && !isSwiftResourceBundles(input.resourceBundles))
|
|
15095
17544
|
throw new Error("swift compile input has invalid target bundle assignments");
|
|
15096
17545
|
const resourceTargets = swiftManifestTargets(
|
|
@@ -15101,7 +17550,7 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15101
17550
|
const targets = distribution && compileTargets(input).length === 0 ? [
|
|
15102
17551
|
{
|
|
15103
17552
|
name: "App",
|
|
15104
|
-
path:
|
|
17553
|
+
path: path12.relative(layout.root, layout.sources),
|
|
15105
17554
|
executable: true,
|
|
15106
17555
|
languageMode: 5,
|
|
15107
17556
|
mainActorIsolation: false,
|
|
@@ -15122,17 +17571,25 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15122
17571
|
);
|
|
15123
17572
|
if (target) swiftTargets.add(target.name);
|
|
15124
17573
|
}
|
|
15125
|
-
const headerDirectory =
|
|
15126
|
-
const headerModuleDirectory =
|
|
17574
|
+
const headerDirectory = path12.join(layout.root, ".build", "peach-cxx-headers");
|
|
17575
|
+
const headerModuleDirectory = path12.join(
|
|
15127
17576
|
layout.root,
|
|
15128
17577
|
".build",
|
|
15129
17578
|
"peach-objc-export-modules"
|
|
15130
17579
|
);
|
|
15131
17580
|
const imports = /* @__PURE__ */ new Map();
|
|
15132
17581
|
const objcProducers = /* @__PURE__ */ new Set();
|
|
17582
|
+
let checkedToolchain;
|
|
17583
|
+
const nativeToolchain = () => {
|
|
17584
|
+
if (checkedToolchain) return checkedToolchain;
|
|
17585
|
+
const pin = distribution ?? JSON.parse(readFileSync6(path12.join(moduleRoot, "toolchain.json"), "utf8"));
|
|
17586
|
+
checkedToolchain = swiftToolchain(pin.release, swiftModuleSdk(moduleRoot));
|
|
17587
|
+
return checkedToolchain;
|
|
17588
|
+
};
|
|
17589
|
+
const deploymentTarget = (name2) => input.nativeTargets?.find((value) => value.name === name2)?.deploymentTarget ?? "16.0";
|
|
15133
17590
|
const targetStagedFiles = /* @__PURE__ */ new Map();
|
|
15134
17591
|
const stageTargetFile = (target, file, contents, options) => {
|
|
15135
|
-
const relative =
|
|
17592
|
+
const relative = path12.relative(layout.root, file).split(path12.sep).join(path12.posix.sep);
|
|
15136
17593
|
const prior = files.has(file) ? files.get(file) : Object.hasOwn(input.files, relative) ? input.files[relative] : void 0;
|
|
15137
17594
|
if (!options?.allowExisting && prior !== void 0)
|
|
15138
17595
|
throw new Error(`target ${target} already contains generated output ${relative}`);
|
|
@@ -15161,9 +17618,9 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15161
17618
|
else files.set(file, prior);
|
|
15162
17619
|
}
|
|
15163
17620
|
targetStagedFiles.delete(target.name);
|
|
15164
|
-
if (entries.some(([file]) =>
|
|
17621
|
+
if (entries.some(([file]) => isSwiftNativeTranslationUnit(file)) && (swift || input.nativeTargets?.some((value) => value.name === target.name))) {
|
|
15165
17622
|
if (!swift) {
|
|
15166
|
-
const unprepared =
|
|
17623
|
+
const unprepared = path12.join(
|
|
15167
17624
|
layout.root,
|
|
15168
17625
|
target.path,
|
|
15169
17626
|
"PeachUnprepared.generated.swift"
|
|
@@ -15178,7 +17635,7 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15178
17635
|
native.set(target.name, {
|
|
15179
17636
|
mixed: true,
|
|
15180
17637
|
path: target.path,
|
|
15181
|
-
includeDirectory:
|
|
17638
|
+
includeDirectory: path12.join(layout.root, target.path, "include"),
|
|
15182
17639
|
sources: [],
|
|
15183
17640
|
lateSources: [],
|
|
15184
17641
|
exclude: entries.filter(([file]) => !file.endsWith(".swift") && !file.endsWith(".metal")).map(([file]) => file.slice(prefix.length))
|
|
@@ -15190,26 +17647,26 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15190
17647
|
const contents = input.files[file];
|
|
15191
17648
|
if (contents === void 0)
|
|
15192
17649
|
throw new Error(`missing original Objective-C header ${file}`);
|
|
15193
|
-
const destination =
|
|
15194
|
-
mkdirSync2(
|
|
17650
|
+
const destination = path12.join(layout.root, file);
|
|
17651
|
+
mkdirSync2(path12.dirname(destination), { recursive: true });
|
|
15195
17652
|
writeFileSync3(destination, contents);
|
|
15196
17653
|
files.set(destination, contents);
|
|
15197
17654
|
}
|
|
15198
17655
|
for (const header of settings.publicHeaders) {
|
|
15199
|
-
const destination =
|
|
17656
|
+
const destination = path12.join(headerDirectory, settings.name, path12.basename(header));
|
|
15200
17657
|
if (files.has(destination))
|
|
15201
17658
|
throw new Error(`duplicate product header ${destination}`);
|
|
15202
|
-
const contents = `#import ${JSON.stringify(
|
|
17659
|
+
const contents = `#import ${JSON.stringify(path12.join(layout.root, header))}
|
|
15203
17660
|
`;
|
|
15204
17661
|
files.set(destination, contents);
|
|
15205
|
-
mkdirSync2(
|
|
17662
|
+
mkdirSync2(path12.dirname(destination), { recursive: true });
|
|
15206
17663
|
writeFileSync3(destination, contents);
|
|
15207
17664
|
}
|
|
15208
17665
|
}
|
|
15209
17666
|
const nativeTargets = input.nativeTargets ?? [];
|
|
15210
|
-
const fromInputRoot = (file) => file.startsWith(`${SWIFT_NATIVE_INPUT_ROOT}/`) ?
|
|
17667
|
+
const fromInputRoot = (file) => file.startsWith(`${SWIFT_NATIVE_INPUT_ROOT}/`) ? path12.join(layout.root, file.slice(SWIFT_NATIVE_INPUT_ROOT.length + 1)) : file;
|
|
15211
17668
|
const headerSearch = writeXcodeHeaderSearch(
|
|
15212
|
-
|
|
17669
|
+
path12.join(layout.root, ".build", "peach-xcode-headers"),
|
|
15213
17670
|
nativeTargets.map((settings) => ({
|
|
15214
17671
|
headerMaps: settings.headerMaps.map((map2) => ({
|
|
15215
17672
|
flag: map2.flag,
|
|
@@ -15220,19 +17677,19 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15220
17677
|
})),
|
|
15221
17678
|
productHeaders: Object.fromEntries(
|
|
15222
17679
|
Object.entries(settings.productHeaders).map(([product, file]) => [
|
|
15223
|
-
|
|
15224
|
-
|
|
17680
|
+
path12.join(layout.root, product),
|
|
17681
|
+
path12.join(layout.root, file)
|
|
15225
17682
|
])
|
|
15226
17683
|
),
|
|
15227
17684
|
userHeaderSearchPaths: settings.userHeaderSearchPaths.map(
|
|
15228
|
-
(directory) =>
|
|
17685
|
+
(directory) => path12.join(layout.root, directory)
|
|
15229
17686
|
)
|
|
15230
17687
|
}))
|
|
15231
17688
|
);
|
|
15232
17689
|
for (const target of targets) {
|
|
15233
17690
|
const prefix = target.path === "." ? "" : `${target.path}/`;
|
|
15234
17691
|
const entries = targetEntries(target);
|
|
15235
|
-
const units = entries.filter(([file]) =>
|
|
17692
|
+
const units = entries.filter(([file]) => isSwiftNativeTranslationUnit(file));
|
|
15236
17693
|
if (units.length === 0) continue;
|
|
15237
17694
|
const includes = `${prefix}include/`;
|
|
15238
17695
|
const consumers = /* @__PURE__ */ new Map();
|
|
@@ -15248,7 +17705,7 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15248
17705
|
if (producer && targets.some((value) => value.name === producer))
|
|
15249
17706
|
producers2.add(producer);
|
|
15250
17707
|
const local = [
|
|
15251
|
-
|
|
17708
|
+
path12.posix.join(path12.posix.dirname(file), include2),
|
|
15252
17709
|
`${includes}${include2}`
|
|
15253
17710
|
].find((candidate) => input.files[candidate] !== void 0);
|
|
15254
17711
|
if (local) {
|
|
@@ -15278,21 +17735,16 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15278
17735
|
const headers = settings.headers;
|
|
15279
17736
|
const roots2 = settings.bridgingHeader ? [settings.bridgingHeader] : settings.publicHeaders;
|
|
15280
17737
|
for (const file of headers) {
|
|
15281
|
-
const destination =
|
|
15282
|
-
mkdirSync2(
|
|
17738
|
+
const destination = path12.join(layout.root, file);
|
|
17739
|
+
mkdirSync2(path12.dirname(destination), { recursive: true });
|
|
15283
17740
|
writeFileSync3(destination, input.files[file]);
|
|
15284
17741
|
}
|
|
15285
|
-
const search = [
|
|
15286
|
-
|
|
15287
|
-
|
|
15288
|
-
|
|
15289
|
-
])
|
|
15290
|
-
].flatMap((dir) => ["-I", path11.join(layout.root, dir)]);
|
|
15291
|
-
const pin = distribution ?? JSON.parse(readFileSync6(path11.join(moduleRoot, "toolchain.json"), "utf8"));
|
|
15292
|
-
const release = pin.release;
|
|
15293
|
-
const toolchainBin = swiftToolchain(release, swiftModuleSdk(moduleRoot));
|
|
17742
|
+
const search = [.../* @__PURE__ */ new Set([...settings?.headerSearchPaths ?? []])].flatMap(
|
|
17743
|
+
(dir) => ["-I", path12.join(layout.root, dir)]
|
|
17744
|
+
);
|
|
17745
|
+
const toolchainBin = nativeToolchain();
|
|
15294
17746
|
const sdkHeaders = materializeObjcSdk(
|
|
15295
|
-
|
|
17747
|
+
path12.join(layout.root, ".build", "peach-objc-sdk")
|
|
15296
17748
|
);
|
|
15297
17749
|
const stageFlags = (flags2, sdkInclude) => flags2.map(
|
|
15298
17750
|
(flag) => flag.replaceAll(SWIFT_NATIVE_INPUT_ROOT, layout.root).replaceAll(SWIFT_NATIVE_SDK_INCLUDE, sdkInclude)
|
|
@@ -15303,27 +17755,27 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15303
17755
|
...search,
|
|
15304
17756
|
...(settings?.frameworkSearchPaths ?? []).flatMap((dir) => [
|
|
15305
17757
|
"-F",
|
|
15306
|
-
|
|
17758
|
+
path12.join(layout.root, dir)
|
|
15307
17759
|
]),
|
|
15308
17760
|
"-I",
|
|
15309
17761
|
headerDirectory
|
|
15310
17762
|
];
|
|
15311
17763
|
const flags = stageFlags(
|
|
15312
17764
|
originalFlags,
|
|
15313
|
-
|
|
17765
|
+
path12.join(swiftSdkPaths(moduleRoot, toolchainBin).sysroot, "include")
|
|
15314
17766
|
);
|
|
15315
|
-
const prefixHeader = settings?.prefixHeader ? ["-include",
|
|
17767
|
+
const prefixHeader = settings?.prefixHeader ? ["-include", path12.join(layout.root, settings.prefixHeader)] : [];
|
|
15316
17768
|
const bundleName = entries.some(([file]) => file.endsWith(".swift")) ? void 0 : swiftObjCResourceBundleName({
|
|
15317
17769
|
target: target.name,
|
|
15318
17770
|
path: target.path,
|
|
15319
17771
|
resources: resourceTargets.find((candidate) => candidate.name === target.name)?.resources ?? false,
|
|
15320
17772
|
usesBundleMacro: entries.some(
|
|
15321
|
-
([file, contents]) => /\.(?:
|
|
17773
|
+
([file, contents]) => (isSwiftNativeTranslationUnit(file) || /\.(?:h|hpp|hh|hxx)$/.test(file)) && /\bSWIFTPM_MODULE_BUNDLE\b/.test(contents)
|
|
15322
17774
|
),
|
|
15323
17775
|
bundles: input.resourceBundles
|
|
15324
17776
|
});
|
|
15325
17777
|
const accessor = bundleName === void 0 ? void 0 : swiftObjCResourceAccessor(bundleName);
|
|
15326
|
-
const accessorHeader =
|
|
17778
|
+
const accessorHeader = path12.join(
|
|
15327
17779
|
layout.root,
|
|
15328
17780
|
target.path,
|
|
15329
17781
|
OBJC_RESOURCE_ACCESSOR_HEADER
|
|
@@ -15334,23 +17786,23 @@ function writeSwiftProject(layout, input, moduleRoot) {
|
|
|
15334
17786
|
const nativeUnits = accessor ? [...units, [accessorUnit, accessor.body]] : units;
|
|
15335
17787
|
const unitSource = (file) => {
|
|
15336
17788
|
const relative = file.slice(prefix.length);
|
|
15337
|
-
return relative.split("/").some((part) => part.startsWith(".")) ?
|
|
17789
|
+
return relative.split("/").some((part) => part.startsWith(".")) ? path12.posix.join(HIDDEN_UNITS, relative.replaceAll(/(^|\/)\./g, "$1%2E")) : relative;
|
|
15338
17790
|
};
|
|
15339
17791
|
const accessorFlags = accessor ? ["-include", accessorHeader] : [];
|
|
15340
17792
|
let nativeC = !roots2.length && !entries.some(([file]) => file.endsWith(".swift")) && !units.some(([file]) => /\.mm?$/.test(file));
|
|
15341
17793
|
if (roots2.length) {
|
|
15342
|
-
const sourceHeaders =
|
|
17794
|
+
const sourceHeaders = path12.join(
|
|
15343
17795
|
layout.root,
|
|
15344
17796
|
".build",
|
|
15345
17797
|
"peach-objc-originals",
|
|
15346
17798
|
target.name
|
|
15347
17799
|
);
|
|
15348
17800
|
mkdirSync2(sourceHeaders, { recursive: true });
|
|
15349
|
-
const modulemap =
|
|
17801
|
+
const modulemap = path12.join(sourceHeaders, "module.modulemap");
|
|
15350
17802
|
writeFileSync3(
|
|
15351
17803
|
modulemap,
|
|
15352
17804
|
`module ${swiftTargetModuleName(target.name)} {
|
|
15353
|
-
${roots2.map((file) => `header ${JSON.stringify(
|
|
17805
|
+
${roots2.map((file) => `header ${JSON.stringify(path12.join(layout.root, file))}`).join("\n")}
|
|
15354
17806
|
export *
|
|
15355
17807
|
}
|
|
15356
17808
|
`
|
|
@@ -15362,12 +17814,12 @@ export *
|
|
|
15362
17814
|
modulemap
|
|
15363
17815
|
},
|
|
15364
17816
|
toolchainBin,
|
|
15365
|
-
|
|
15366
|
-
|
|
15367
|
-
|
|
17817
|
+
path12.join(moduleRoot, "ios-simulator-stdlib"),
|
|
17818
|
+
path12.join(layout.root, ".build", "peach-objc-sdk"),
|
|
17819
|
+
path12.join(layout.root, ".build", "peach-objc-imports", target.name),
|
|
15368
17820
|
{
|
|
15369
|
-
flags: stageFlags(originalFlags,
|
|
15370
|
-
target: `arm64-apple-ios${
|
|
17821
|
+
flags: stageFlags(originalFlags, path12.join(sdkHeaders, "usr/include")),
|
|
17822
|
+
target: `arm64-apple-ios${deploymentTarget(target.name)}-simulator`
|
|
15371
17823
|
}
|
|
15372
17824
|
);
|
|
15373
17825
|
const defined = /* @__PURE__ */ new Set();
|
|
@@ -15405,7 +17857,7 @@ export *
|
|
|
15405
17857
|
imports.set(target.name, {
|
|
15406
17858
|
view,
|
|
15407
17859
|
classes: [...foreignTypes.values()],
|
|
15408
|
-
headers: roots2.map((file) =>
|
|
17860
|
+
headers: roots2.map((file) => path12.join(layout.root, file)),
|
|
15409
17861
|
foreignTypes
|
|
15410
17862
|
});
|
|
15411
17863
|
}
|
|
@@ -15414,25 +17866,25 @@ export *
|
|
|
15414
17866
|
for (const [file, contents] of nativeUnits) {
|
|
15415
17867
|
const origin = settings?.sourceDirectories[file];
|
|
15416
17868
|
if (origin) {
|
|
15417
|
-
const original =
|
|
15418
|
-
mkdirSync2(
|
|
17869
|
+
const original = path12.join(layout.root, origin, path12.posix.basename(file));
|
|
17870
|
+
mkdirSync2(path12.dirname(original), { recursive: true });
|
|
15419
17871
|
stageTargetFile(target.name, original, contents, { allowExisting: true });
|
|
15420
17872
|
}
|
|
15421
17873
|
const source = unitSource(file);
|
|
15422
17874
|
if (source !== file.slice(prefix.length))
|
|
15423
17875
|
stageTargetFile(
|
|
15424
17876
|
target.name,
|
|
15425
|
-
|
|
17877
|
+
path12.join(layout.root, target.path, source),
|
|
15426
17878
|
contents,
|
|
15427
17879
|
{
|
|
15428
17880
|
allowExisting: true
|
|
15429
17881
|
}
|
|
15430
17882
|
);
|
|
15431
17883
|
const perFile = [
|
|
15432
|
-
...origin ? ["-iquote",
|
|
17884
|
+
...origin ? ["-iquote", path12.join(layout.root, origin)] : [],
|
|
15433
17885
|
...stageFlags(
|
|
15434
17886
|
settings?.fileFlags[file] ?? [],
|
|
15435
|
-
|
|
17887
|
+
path12.join(swiftSdkPaths(moduleRoot, toolchainBin).sysroot, "include")
|
|
15436
17888
|
)
|
|
15437
17889
|
];
|
|
15438
17890
|
const cxx = /\.(?:cc|cpp|cxx|mm)$/.test(file);
|
|
@@ -15453,7 +17905,7 @@ export *
|
|
|
15453
17905
|
...accessorFlags,
|
|
15454
17906
|
...stageFlags(
|
|
15455
17907
|
cxx ? settings.cxxFlags : [],
|
|
15456
|
-
|
|
17908
|
+
path12.join(swiftSdkPaths(moduleRoot, toolchainBin).sysroot, "include")
|
|
15457
17909
|
),
|
|
15458
17910
|
...perFile
|
|
15459
17911
|
]
|
|
@@ -15468,12 +17920,12 @@ export *
|
|
|
15468
17920
|
flags: [...flags, "-fobjc-arc"],
|
|
15469
17921
|
cxxFlags: [...flags, "-fobjc-arc"]
|
|
15470
17922
|
});
|
|
15471
|
-
const include2 =
|
|
17923
|
+
const include2 = path12.join(layout.root, target.path, "include");
|
|
15472
17924
|
if (accessor) {
|
|
15473
17925
|
stageTargetFile(target.name, accessorHeader, accessor.header);
|
|
15474
17926
|
stageTargetFile(
|
|
15475
17927
|
target.name,
|
|
15476
|
-
|
|
17928
|
+
path12.join(layout.root, accessorUnit),
|
|
15477
17929
|
accessor.body
|
|
15478
17930
|
);
|
|
15479
17931
|
}
|
|
@@ -15512,12 +17964,12 @@ export *
|
|
|
15512
17964
|
const contents = input.files[original];
|
|
15513
17965
|
if (contents === void 0)
|
|
15514
17966
|
throw new Error(`missing original module map ${original}`);
|
|
15515
|
-
stageTargetFile(target.name,
|
|
17967
|
+
stageTargetFile(target.name, path12.join(layout.root, product), contents);
|
|
15516
17968
|
const [owner, ...implementations] = groups.values();
|
|
15517
17969
|
if (!owner) throw new Error(`target ${target.name} has no original units`);
|
|
15518
17970
|
native.set(target.name, {
|
|
15519
17971
|
path: target.path,
|
|
15520
|
-
includeDirectory:
|
|
17972
|
+
includeDirectory: path12.join(layout.root, path12.dirname(product)),
|
|
15521
17973
|
sources: nativeUnits.map(([file]) => unitSource(file)),
|
|
15522
17974
|
lateSources: implementations.flatMap((group) => group.sources),
|
|
15523
17975
|
exclude: [],
|
|
@@ -15538,7 +17990,7 @@ export *
|
|
|
15538
17990
|
}
|
|
15539
17991
|
stageTargetFile(
|
|
15540
17992
|
target.name,
|
|
15541
|
-
|
|
17993
|
+
path12.join(include2, "module.modulemap"),
|
|
15542
17994
|
`module ${target.name}ImplementationDeclarations { export * }
|
|
15543
17995
|
`
|
|
15544
17996
|
);
|
|
@@ -15574,7 +18026,7 @@ export *
|
|
|
15574
18026
|
}
|
|
15575
18027
|
native.set(target.name, {
|
|
15576
18028
|
path: target.path,
|
|
15577
|
-
includeDirectory:
|
|
18029
|
+
includeDirectory: path12.join(layout.root, includes),
|
|
15578
18030
|
sources: units.map(([file]) => file.slice(prefix.length)),
|
|
15579
18031
|
lateSources: late.map(([file]) => file.slice(prefix.length)),
|
|
15580
18032
|
...late.length > 0 ? {
|
|
@@ -15592,7 +18044,7 @@ export *
|
|
|
15592
18044
|
([file]) => file.startsWith(includes) && /\.(?:h|hpp|hh|hxx)$/.test(file) && consumers.get(file).size === 0
|
|
15593
18045
|
);
|
|
15594
18046
|
files.set(
|
|
15595
|
-
|
|
18047
|
+
path12.join(layout.root, includes, "module.modulemap"),
|
|
15596
18048
|
[
|
|
15597
18049
|
`module ${target.name} {`,
|
|
15598
18050
|
...roots.map(
|
|
@@ -15609,7 +18061,7 @@ export *
|
|
|
15609
18061
|
swiftModuleInputFiles(moduleRoot).join("\n")
|
|
15610
18062
|
);
|
|
15611
18063
|
if (!distribution) {
|
|
15612
|
-
modulePlan.update(readFileSync6(
|
|
18064
|
+
modulePlan.update(readFileSync6(path12.join(moduleRoot, "Package.swift")));
|
|
15613
18065
|
}
|
|
15614
18066
|
const resourcePlan = createHash9("sha256").update(
|
|
15615
18067
|
JSON.stringify(
|
|
@@ -15690,27 +18142,27 @@ export *
|
|
|
15690
18142
|
objcModules.add(name2);
|
|
15691
18143
|
rootOwner ?? (rootOwner = exported ? [...exported.swift.keys()][0] : `${prefix}PeachObjCImports.generated.swift`);
|
|
15692
18144
|
files.set(
|
|
15693
|
-
|
|
18145
|
+
path12.join(headerDirectory, `${name2}-Swift.h`),
|
|
15694
18146
|
exported?.header ?? "#pragma once\n"
|
|
15695
18147
|
);
|
|
15696
18148
|
files.set(
|
|
15697
|
-
|
|
18149
|
+
path12.join(headerDirectory, name2, `${name2}-Swift.h`),
|
|
15698
18150
|
`#include "../${name2}-Swift.h"
|
|
15699
18151
|
`
|
|
15700
18152
|
);
|
|
15701
18153
|
files.set(
|
|
15702
|
-
|
|
18154
|
+
path12.join(headerModuleDirectory, name2, "module.modulemap"),
|
|
15703
18155
|
`module ${swiftTargetModuleName(name2)} {
|
|
15704
18156
|
${[
|
|
15705
|
-
|
|
15706
|
-
...(input.nativeTargets?.find((target2) => target2.name === name2)?.publicHeaders ?? []).map((header) =>
|
|
18157
|
+
path12.join(headerDirectory, `${name2}-Swift.h`),
|
|
18158
|
+
...(input.nativeTargets?.find((target2) => target2.name === name2)?.publicHeaders ?? []).map((header) => path12.join(layout.root, header))
|
|
15707
18159
|
].map((header) => ` header ${JSON.stringify(header)}`).join("\n")}
|
|
15708
18160
|
export *
|
|
15709
18161
|
}
|
|
15710
18162
|
`
|
|
15711
18163
|
);
|
|
15712
18164
|
files.set(
|
|
15713
|
-
|
|
18165
|
+
path12.join(layout.root, "PeachObjCExports", `${name2}.m`),
|
|
15714
18166
|
exported?.implementation ?? `#include "${name2}-Cxx.h"
|
|
15715
18167
|
`
|
|
15716
18168
|
);
|
|
@@ -15722,13 +18174,13 @@ ${[
|
|
|
15722
18174
|
if (generated) {
|
|
15723
18175
|
const register = `_peach_objc_imports_${swiftTargetModuleName(name2)}`;
|
|
15724
18176
|
files.set(
|
|
15725
|
-
|
|
18177
|
+
path12.join(layout.root, target.path, "PeachObjCImports.generated.swift"),
|
|
15726
18178
|
generated.swift + generated.registration + `
|
|
15727
18179
|
@_cdecl("${register}") public func __peachRegisterOriginalObjC() { ${generated.registerFunction}() }
|
|
15728
18180
|
`
|
|
15729
18181
|
);
|
|
15730
18182
|
files.set(
|
|
15731
|
-
|
|
18183
|
+
path12.join(layout.root, target.path, "PeachObjCImports.generated.m"),
|
|
15732
18184
|
generated.objc
|
|
15733
18185
|
);
|
|
15734
18186
|
registrations.push(`${register}();`);
|
|
@@ -15786,7 +18238,7 @@ ${[
|
|
|
15786
18238
|
exclude: []
|
|
15787
18239
|
});
|
|
15788
18240
|
files.set(
|
|
15789
|
-
|
|
18241
|
+
path12.join(layout.root, `PeachApplication/${name2}/Entry.swift`),
|
|
15790
18242
|
`import ${swiftTargetModuleName(target.name)}
|
|
15791
18243
|
@main struct __PeachApplicationEntry { @MainActor static func main() { __peachRunApplication() } }
|
|
15792
18244
|
`
|
|
@@ -15794,22 +18246,35 @@ ${[
|
|
|
15794
18246
|
}
|
|
15795
18247
|
const nativeFlags = (() => {
|
|
15796
18248
|
if (native.size === 0) return void 0;
|
|
15797
|
-
const headers = materializeObjcSdk(
|
|
15798
|
-
|
|
15799
|
-
|
|
15800
|
-
|
|
15801
|
-
|
|
15802
|
-
|
|
15803
|
-
|
|
15804
|
-
|
|
15805
|
-
|
|
15806
|
-
|
|
15807
|
-
|
|
15808
|
-
|
|
15809
|
-
|
|
15810
|
-
|
|
15811
|
-
|
|
15812
|
-
|
|
18249
|
+
const headers = materializeObjcSdk(path12.join(layout.root, ".build", "peach-objc-sdk"));
|
|
18250
|
+
const moduleMaps = rootOwner ? [...objcModules].map(
|
|
18251
|
+
(name2) => `-fmodule-map-file=${path12.join(headerModuleDirectory, name2, "module.modulemap")}`
|
|
18252
|
+
) : [];
|
|
18253
|
+
return new Map(
|
|
18254
|
+
targets.map((target) => {
|
|
18255
|
+
const version = deploymentTarget(target.name);
|
|
18256
|
+
const minimum = iosDeploymentMinimum(version);
|
|
18257
|
+
if (minimum === void 0)
|
|
18258
|
+
throw new Error(
|
|
18259
|
+
`${target.name}: unsupported IPHONEOS_DEPLOYMENT_TARGET ${JSON.stringify(version)}`
|
|
18260
|
+
);
|
|
18261
|
+
return [
|
|
18262
|
+
target.name,
|
|
18263
|
+
[
|
|
18264
|
+
"-fobjc-runtime=gnustep-2.2",
|
|
18265
|
+
"-fobjc-exceptions",
|
|
18266
|
+
"-fexceptions",
|
|
18267
|
+
"-fwasm-exceptions",
|
|
18268
|
+
"-fobjc-arc",
|
|
18269
|
+
"-fblocks",
|
|
18270
|
+
...objcSdkIntakeFlags(headers, nativeToolchain(), minimum),
|
|
18271
|
+
"-I",
|
|
18272
|
+
headerDirectory,
|
|
18273
|
+
...moduleMaps
|
|
18274
|
+
]
|
|
18275
|
+
];
|
|
18276
|
+
})
|
|
18277
|
+
);
|
|
15813
18278
|
})();
|
|
15814
18279
|
let objcExports;
|
|
15815
18280
|
if (rootOwner && input.objcPeerStartup)
|
|
@@ -15826,7 +18291,7 @@ ${[
|
|
|
15826
18291
|
throw new Error(
|
|
15827
18292
|
"Swift Objective-C export target conflicts with application sources"
|
|
15828
18293
|
);
|
|
15829
|
-
const ownerFile =
|
|
18294
|
+
const ownerFile = path12.join(layout.root, rootOwner);
|
|
15830
18295
|
const ownerSource = compiled.get(rootOwner) ?? files.get(ownerFile);
|
|
15831
18296
|
if (typeof ownerSource !== "string")
|
|
15832
18297
|
throw new Error("Objective-C root registration has no owning Swift source");
|
|
@@ -15843,11 +18308,11 @@ public func __peachObjcExportRoot() { _objcRegisterPeerClass(NSObject.self, nati
|
|
|
15843
18308
|
);
|
|
15844
18309
|
if (compiled.has(rootOwner)) compiled.set(rootOwner, files.get(ownerFile).toString());
|
|
15845
18310
|
files.set(
|
|
15846
|
-
|
|
18311
|
+
path12.join(layout.root, "PeachObjCExports", "include", "module.modulemap"),
|
|
15847
18312
|
"module PeachSwiftObjCExports { export * }\n"
|
|
15848
18313
|
);
|
|
15849
18314
|
files.set(
|
|
15850
|
-
|
|
18315
|
+
path12.join(layout.root, "PeachObjCExports", "root.m"),
|
|
15851
18316
|
[
|
|
15852
18317
|
"#import <Foundation/Foundation.h>",
|
|
15853
18318
|
"extern void _peach_objc_ensure_exports(void);",
|
|
@@ -15869,24 +18334,15 @@ public func __peachObjcExportRoot() { _objcRegisterPeerClass(NSObject.self, nati
|
|
|
15869
18334
|
""
|
|
15870
18335
|
].join("\n")
|
|
15871
18336
|
);
|
|
15872
|
-
objcExports = {
|
|
15873
|
-
modules: objcModules,
|
|
15874
|
-
rootModule,
|
|
15875
|
-
flags: [
|
|
15876
|
-
...nativeFlags,
|
|
15877
|
-
...[...objcModules].map(
|
|
15878
|
-
(name2) => `-fmodule-map-file=${path11.join(headerModuleDirectory, name2, "module.modulemap")}`
|
|
15879
|
-
)
|
|
15880
|
-
]
|
|
15881
|
-
};
|
|
18337
|
+
objcExports = { modules: objcModules, rootModule };
|
|
15882
18338
|
}
|
|
15883
18339
|
if (targets.length === 0) {
|
|
15884
18340
|
for (const [file, contents] of Object.entries(input.files)) {
|
|
15885
18341
|
if (file === "Package.swift") continue;
|
|
15886
|
-
files.set(
|
|
18342
|
+
files.set(path12.join(layout.sources, file), compiled.get(file) ?? contents);
|
|
15887
18343
|
}
|
|
15888
18344
|
let manifest = readFileSync6(
|
|
15889
|
-
|
|
18345
|
+
path12.join(moduleRoot, "scripts/contrast-app-Package.swift"),
|
|
15890
18346
|
"utf8"
|
|
15891
18347
|
).replaceAll("__SOOTSIM_SWIFT_PACKAGE__", moduleRoot);
|
|
15892
18348
|
const reactor = ` ${REACTOR_FLAG}`;
|
|
@@ -15930,23 +18386,24 @@ public func __peachObjcExportRoot() { _objcRegisterPeerClass(NSObject.self, nati
|
|
|
15930
18386
|
manifest = manifest.replace(anchor, `${anchor}
|
|
15931
18387
|
${SPRITEKIT_PRODUCT},`);
|
|
15932
18388
|
}
|
|
15933
|
-
files.set(
|
|
18389
|
+
files.set(path12.join(layout.root, "Package.swift"), manifest + moduleFiles);
|
|
15934
18390
|
} else {
|
|
15935
18391
|
const base = layout.multi ? layout.root : layout.sources;
|
|
15936
18392
|
const libraries = /* @__PURE__ */ new Map();
|
|
15937
18393
|
for (const [target, data] of Object.entries(input.libraries ?? {})) {
|
|
15938
|
-
const file =
|
|
18394
|
+
const file = path12.join(layout.root, ".peach-libraries", `lib${target}.a`);
|
|
15939
18395
|
files.set(file, Buffer.from(data, "base64"));
|
|
15940
18396
|
libraries.set(target, file);
|
|
15941
18397
|
}
|
|
15942
18398
|
for (const [file, contents] of Object.entries(input.files)) {
|
|
15943
18399
|
if (file === "Package.swift") continue;
|
|
15944
|
-
files.set(
|
|
18400
|
+
files.set(path12.join(base, file), compiled.get(file) ?? contents);
|
|
15945
18401
|
}
|
|
15946
18402
|
files.set(
|
|
15947
|
-
|
|
18403
|
+
path12.join(layout.root, "Package.swift"),
|
|
15948
18404
|
emitSwiftPackageManifest({
|
|
15949
18405
|
targets,
|
|
18406
|
+
packages,
|
|
15950
18407
|
native,
|
|
15951
18408
|
objcExports,
|
|
15952
18409
|
nativeFlags,
|
|
@@ -15963,13 +18420,38 @@ public func __peachObjcExportRoot() { _objcRegisterPeerClass(NSObject.self, nati
|
|
|
15963
18420
|
spriteKit: importsSpriteKit(input.files),
|
|
15964
18421
|
distribution: distribution ?? void 0,
|
|
15965
18422
|
distributionLink: {
|
|
15966
|
-
path:
|
|
18423
|
+
path: path12.join(layout.root, ".peach-distribution-objects.rsp"),
|
|
15967
18424
|
files
|
|
15968
18425
|
},
|
|
15969
18426
|
libraries
|
|
15970
18427
|
}) + moduleFiles
|
|
15971
18428
|
);
|
|
15972
18429
|
}
|
|
18430
|
+
for (const [file, bytes] of Object.entries(input.packageFiles ?? {}))
|
|
18431
|
+
files.set(path12.join(layout.root, file), Buffer.from(bytes, "base64"));
|
|
18432
|
+
if (input.packageFiles) {
|
|
18433
|
+
files.set(
|
|
18434
|
+
path12.join(layout.root, ".peach-target-toolset.json"),
|
|
18435
|
+
JSON.stringify({
|
|
18436
|
+
schemaVersion: "1.0",
|
|
18437
|
+
swiftCompiler: {
|
|
18438
|
+
extraCLIOptions: [
|
|
18439
|
+
"-I",
|
|
18440
|
+
distribution ? path12.join(moduleRoot, "modules") : path12.join(layout.root, ".build", WASM_TRIPLE, "release", "Modules"),
|
|
18441
|
+
"-Xfrontend",
|
|
18442
|
+
"-enable-cross-import-overlays",
|
|
18443
|
+
...swiftCrossImportFlags(moduleRoot, Boolean(distribution)),
|
|
18444
|
+
...distribution ? FOUNDATION_IMPLICIT_MODULES.flatMap((module) => [
|
|
18445
|
+
"-Xfrontend",
|
|
18446
|
+
"-import-module",
|
|
18447
|
+
"-Xfrontend",
|
|
18448
|
+
module
|
|
18449
|
+
]) : []
|
|
18450
|
+
]
|
|
18451
|
+
}
|
|
18452
|
+
})
|
|
18453
|
+
);
|
|
18454
|
+
}
|
|
15973
18455
|
for (const target of resourceTargets) {
|
|
15974
18456
|
if (!target.resources) continue;
|
|
15975
18457
|
const bundle = input.resourceBundles?.find(
|
|
@@ -15979,9 +18461,9 @@ public func __peachObjcExportRoot() { _objcRegisterPeerClass(NSObject.self, nati
|
|
|
15979
18461
|
throw new Error(
|
|
15980
18462
|
`swift resource target ${target.name} has no matching bundle assignment`
|
|
15981
18463
|
);
|
|
15982
|
-
const directory = layout.multi ?
|
|
18464
|
+
const directory = layout.multi ? path12.join(layout.root, target.path) : layout.sources;
|
|
15983
18465
|
files.set(
|
|
15984
|
-
|
|
18466
|
+
path12.join(directory, "ResourceBundleAccessor.generated.swift"),
|
|
15985
18467
|
[
|
|
15986
18468
|
"import Foundation",
|
|
15987
18469
|
"",
|
|
@@ -15998,7 +18480,7 @@ public func __peachObjcExportRoot() { _objcRegisterPeerClass(NSObject.self, nati
|
|
|
15998
18480
|
}
|
|
15999
18481
|
for (const [file, source] of compiled)
|
|
16000
18482
|
if (!Object.hasOwn(input.files, file))
|
|
16001
|
-
files.set(
|
|
18483
|
+
files.set(path12.join(layout.multi ? layout.root : layout.sources, file), source);
|
|
16002
18484
|
syncSwiftTree(layout.root, files);
|
|
16003
18485
|
const producers = [
|
|
16004
18486
|
.../* @__PURE__ */ new Set([
|
|
@@ -16020,10 +18502,10 @@ public func __peachObjcExportRoot() { _objcRegisterPeerClass(NSObject.self, nati
|
|
|
16020
18502
|
targetFailures,
|
|
16021
18503
|
...rootOwner && objcExports ? {
|
|
16022
18504
|
objcImplementations: {
|
|
16023
|
-
owner:
|
|
18505
|
+
owner: path12.join(layout.root, rootOwner),
|
|
16024
18506
|
registeredClasses: [...registeredClasses],
|
|
16025
18507
|
units: [...native.values()].flatMap(
|
|
16026
|
-
(value) => value.sources.filter((file) => /\.mm?$/.test(file)).map((file) =>
|
|
18508
|
+
(value) => value.sources.filter((file) => /\.mm?$/.test(file)).map((file) => path12.join(layout.root, value.path, file))
|
|
16027
18509
|
)
|
|
16028
18510
|
}
|
|
16029
18511
|
} : {}
|
|
@@ -16045,13 +18527,13 @@ function outputOf(error) {
|
|
|
16045
18527
|
return error instanceof Error ? error.message : String(error);
|
|
16046
18528
|
}
|
|
16047
18529
|
function builtArtifact(layout) {
|
|
16048
|
-
const binDir =
|
|
16049
|
-
const manifest = readFileSync6(
|
|
18530
|
+
const binDir = path12.join(layout.root, ".build", WASM_TRIPLE, "release");
|
|
18531
|
+
const manifest = readFileSync6(path12.join(layout.root, "Package.swift"), "utf8");
|
|
16050
18532
|
const executable = swiftManifestTargets(manifest).find((target) => target.executable);
|
|
16051
18533
|
if (executable === void 0) {
|
|
16052
18534
|
throw new Error("swift-compile: the written manifest names no executable target");
|
|
16053
18535
|
}
|
|
16054
|
-
const file =
|
|
18536
|
+
const file = path12.join(binDir, `${executable.name}.wasm`);
|
|
16055
18537
|
if (!existsSync2(file)) {
|
|
16056
18538
|
const found = existsSync2(binDir) ? readdirSync4(binDir).filter((name2) => name2.endsWith(".wasm")).sort() : [];
|
|
16057
18539
|
throw new Error(
|
|
@@ -16062,7 +18544,7 @@ function builtArtifact(layout) {
|
|
|
16062
18544
|
}
|
|
16063
18545
|
function projectDiagnostic(output, layout, files) {
|
|
16064
18546
|
const base = layout.multi ? layout.root : layout.sources;
|
|
16065
|
-
const prefix = `${base}${
|
|
18547
|
+
const prefix = `${base}${path12.sep}`;
|
|
16066
18548
|
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();
|
|
16067
18549
|
}
|
|
16068
18550
|
var ROOT_LOCKS = Symbol.for("peachsim.swiftCompile.rootLocks");
|
|
@@ -16098,12 +18580,12 @@ function serialize(root, work, signal) {
|
|
|
16098
18580
|
function readCompiledArtifact(directory, hash2) {
|
|
16099
18581
|
try {
|
|
16100
18582
|
const receipt = JSON.parse(
|
|
16101
|
-
readFileSync6(
|
|
18583
|
+
readFileSync6(path12.join(directory, "artifact.json"), "utf8")
|
|
16102
18584
|
);
|
|
16103
18585
|
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")
|
|
16104
18586
|
return null;
|
|
16105
|
-
const bytes = readFileSync6(
|
|
16106
|
-
const gzip2 = readFileSync6(
|
|
18587
|
+
const bytes = readFileSync6(path12.join(directory, "app.wasm"));
|
|
18588
|
+
const gzip2 = readFileSync6(path12.join(directory, "icu.gz"));
|
|
16107
18589
|
if (createHash9("sha256").update(bytes).digest("hex") !== receipt.wasm || createHash9("sha256").update(gzip2).digest("hex") !== receipt.icu || bytes.length < 8 || bytes.readUInt32LE(0) !== 1836278016 || bytes.readUInt32LE(4) !== 1)
|
|
16108
18590
|
return null;
|
|
16109
18591
|
return { hash: hash2, bytes, icu: { sha256: receipt.icu, gzip: gzip2 } };
|
|
@@ -16114,14 +18596,14 @@ function readCompiledArtifact(directory, hash2) {
|
|
|
16114
18596
|
}
|
|
16115
18597
|
}
|
|
16116
18598
|
function saveCompiledArtifact(root, artifact) {
|
|
16117
|
-
const directory =
|
|
18599
|
+
const directory = path12.join(root, "artifact");
|
|
16118
18600
|
mkdirSync2(directory, { recursive: true });
|
|
16119
|
-
const pending = mkdtempSync2(
|
|
18601
|
+
const pending = mkdtempSync2(path12.join(root, ".artifact-"));
|
|
16120
18602
|
try {
|
|
16121
|
-
writeFileSync3(
|
|
16122
|
-
writeFileSync3(
|
|
18603
|
+
writeFileSync3(path12.join(pending, "app.wasm"), artifact.bytes);
|
|
18604
|
+
writeFileSync3(path12.join(pending, "icu.gz"), artifact.icu.gzip);
|
|
16123
18605
|
writeFileSync3(
|
|
16124
|
-
|
|
18606
|
+
path12.join(pending, "artifact.json"),
|
|
16125
18607
|
JSON.stringify({
|
|
16126
18608
|
hash: artifact.hash,
|
|
16127
18609
|
wasm: createHash9("sha256").update(artifact.bytes).digest("hex"),
|
|
@@ -16129,7 +18611,7 @@ function saveCompiledArtifact(root, artifact) {
|
|
|
16129
18611
|
})
|
|
16130
18612
|
);
|
|
16131
18613
|
for (const file of ["app.wasm", "icu.gz", "artifact.json"]) {
|
|
16132
|
-
renameSync(
|
|
18614
|
+
renameSync(path12.join(pending, file), path12.join(directory, file));
|
|
16133
18615
|
}
|
|
16134
18616
|
} finally {
|
|
16135
18617
|
rmSync3(pending, { recursive: true, force: true });
|
|
@@ -16151,16 +18633,16 @@ function renewSharedArtifact(sharedRoot) {
|
|
|
16151
18633
|
function pruneSharedArtifacts(parent, keep) {
|
|
16152
18634
|
const entries = [];
|
|
16153
18635
|
for (const name2 of readdirSync4(parent)) {
|
|
16154
|
-
const directory =
|
|
18636
|
+
const directory = path12.join(parent, name2);
|
|
16155
18637
|
if (name2.startsWith(RETIRED_PREFIX)) {
|
|
16156
18638
|
rmSync3(directory, { recursive: true, force: true });
|
|
16157
18639
|
continue;
|
|
16158
18640
|
}
|
|
16159
18641
|
try {
|
|
16160
18642
|
let bytes = 0;
|
|
16161
|
-
for (const file of readdirSync4(
|
|
18643
|
+
for (const file of readdirSync4(path12.join(directory, "artifact"))) {
|
|
16162
18644
|
try {
|
|
16163
|
-
bytes += statSync(
|
|
18645
|
+
bytes += statSync(path12.join(directory, "artifact", file)).size;
|
|
16164
18646
|
} catch (error) {
|
|
16165
18647
|
if (!vanished(error)) throw error;
|
|
16166
18648
|
}
|
|
@@ -16175,9 +18657,9 @@ function pruneSharedArtifacts(parent, keep) {
|
|
|
16175
18657
|
if (total <= SHARED_ARTIFACT_BUDGET_BYTES) break;
|
|
16176
18658
|
if (entry.directory === keep || Date.now() - entry.used < SHARED_ARTIFACT_GRACE_MS)
|
|
16177
18659
|
continue;
|
|
16178
|
-
const retired =
|
|
18660
|
+
const retired = path12.join(
|
|
16179
18661
|
parent,
|
|
16180
|
-
`${RETIRED_PREFIX}${process.pid}-${
|
|
18662
|
+
`${RETIRED_PREFIX}${process.pid}-${path12.basename(entry.directory)}`
|
|
16181
18663
|
);
|
|
16182
18664
|
try {
|
|
16183
18665
|
if (statSync(entry.directory).mtimeMs !== entry.used) continue;
|
|
@@ -16193,7 +18675,7 @@ function pruneSharedArtifacts(parent, keep) {
|
|
|
16193
18675
|
function saveSharedArtifact(sharedRoot, artifact) {
|
|
16194
18676
|
saveCompiledArtifact(sharedRoot, artifact);
|
|
16195
18677
|
renewSharedArtifact(sharedRoot);
|
|
16196
|
-
pruneSharedArtifacts(
|
|
18678
|
+
pruneSharedArtifacts(path12.dirname(sharedRoot), sharedRoot);
|
|
16197
18679
|
}
|
|
16198
18680
|
var retainedArtifacts = /* @__PURE__ */ new Map();
|
|
16199
18681
|
function retain(root, artifact) {
|
|
@@ -16210,14 +18692,14 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16210
18692
|
options.signal?.throwIfAborted();
|
|
16211
18693
|
mkdirSync2(options.buildRoot, { recursive: true });
|
|
16212
18694
|
const root = realpathSync(options.buildRoot);
|
|
16213
|
-
const moduleRoot =
|
|
18695
|
+
const moduleRoot = path12.resolve(options.moduleRoot);
|
|
16214
18696
|
const layout = {
|
|
16215
18697
|
root,
|
|
16216
|
-
sources:
|
|
18698
|
+
sources: path12.join(root, "Sources", "App"),
|
|
16217
18699
|
multi: compileTargets(input).length > 0
|
|
16218
18700
|
};
|
|
16219
18701
|
const hash2 = swiftArtifactHash(input, options.release, moduleRoot);
|
|
16220
|
-
const sharedRoot =
|
|
18702
|
+
const sharedRoot = path12.join(rnxHomeDir(), "cache", "swift-projects", hash2);
|
|
16221
18703
|
const report = (message) => {
|
|
16222
18704
|
console.error(`[swift-project ${hash2.slice(0, 16)}] ${message}`);
|
|
16223
18705
|
options.onStage?.(message);
|
|
@@ -16231,8 +18713,8 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16231
18713
|
report("reusing memory artifact");
|
|
16232
18714
|
return retain(root, retained);
|
|
16233
18715
|
}
|
|
16234
|
-
const cached = readCompiledArtifact(
|
|
16235
|
-
const previous = cached ?? readCompiledArtifact(
|
|
18716
|
+
const cached = readCompiledArtifact(path12.join(sharedRoot, "artifact"), hash2);
|
|
18717
|
+
const previous = cached ?? readCompiledArtifact(path12.join(root, "artifact"), hash2);
|
|
16236
18718
|
if (previous) {
|
|
16237
18719
|
if (cached) renewSharedArtifact(sharedRoot);
|
|
16238
18720
|
else saveSharedArtifact(sharedRoot, previous);
|
|
@@ -16241,8 +18723,8 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16241
18723
|
}
|
|
16242
18724
|
if (process.platform === "darwin" && process.env.TM_SESSION && !admittedMacBuilderSlot() && process.env.CI !== "true" && moduleRoot === sourceSwiftCheckout() && !swiftDistributionAt(moduleRoot)) {
|
|
16243
18725
|
const requestRoot = mkdtempSync2(`${root}.builder-request-`);
|
|
16244
|
-
const output =
|
|
16245
|
-
const request =
|
|
18726
|
+
const output = path12.join(requestRoot, "output");
|
|
18727
|
+
const request = path12.join(requestRoot, "request.json");
|
|
16246
18728
|
writeFileSync3(
|
|
16247
18729
|
request,
|
|
16248
18730
|
JSON.stringify({
|
|
@@ -16256,12 +18738,12 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16256
18738
|
})
|
|
16257
18739
|
);
|
|
16258
18740
|
try {
|
|
16259
|
-
const repo =
|
|
18741
|
+
const repo = path12.resolve(moduleRoot, "../..");
|
|
16260
18742
|
report("requesting builder admission or cached result");
|
|
16261
18743
|
await runCompiler(
|
|
16262
18744
|
"bun",
|
|
16263
18745
|
[
|
|
16264
|
-
|
|
18746
|
+
path12.join(repo, "scripts/build/swift-project.ts"),
|
|
16265
18747
|
"--request",
|
|
16266
18748
|
request,
|
|
16267
18749
|
"--output",
|
|
@@ -16295,7 +18777,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16295
18777
|
return withSwiftRootLock(
|
|
16296
18778
|
root,
|
|
16297
18779
|
async (lease) => {
|
|
16298
|
-
const built = readCompiledArtifact(
|
|
18780
|
+
const built = readCompiledArtifact(path12.join(sharedRoot, "artifact"), hash2);
|
|
16299
18781
|
if (built) {
|
|
16300
18782
|
report("reusing verified disk artifact");
|
|
16301
18783
|
return retain(root, built);
|
|
@@ -16304,7 +18786,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16304
18786
|
const unprepared = preparation.targetFailures.map(
|
|
16305
18787
|
(failure) => `error: target ${failure}`
|
|
16306
18788
|
);
|
|
16307
|
-
const swift =
|
|
18789
|
+
const swift = path12.join(options.toolchainBin, "swift");
|
|
16308
18790
|
if (!existsSync2(swift)) {
|
|
16309
18791
|
throw new Error(
|
|
16310
18792
|
`swift-compile: no swift.org toolchain at ${options.toolchainBin}; install ${options.release} and its matching wasm sdk`
|
|
@@ -16331,6 +18813,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16331
18813
|
...swiftSdkOptions(),
|
|
16332
18814
|
"--swift-sdk",
|
|
16333
18815
|
sdk,
|
|
18816
|
+
...input.packageFiles ? ["--toolset", path12.join(root, ".peach-target-toolset.json")] : [],
|
|
16334
18817
|
"-c",
|
|
16335
18818
|
"release",
|
|
16336
18819
|
"-Xswiftc",
|
|
@@ -16352,8 +18835,8 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16352
18835
|
// shipped host plugins resolve against the selected compiler's runtime.
|
|
16353
18836
|
...process.platform === "linux" ? {
|
|
16354
18837
|
LD_LIBRARY_PATH: [
|
|
16355
|
-
|
|
16356
|
-
|
|
18838
|
+
path12.resolve(options.toolchainBin, "../lib/swift/linux"),
|
|
18839
|
+
path12.resolve(options.toolchainBin, "../lib/swift/host"),
|
|
16357
18840
|
process.env.LD_LIBRARY_PATH
|
|
16358
18841
|
].filter(Boolean).join(":")
|
|
16359
18842
|
} : {}
|
|
@@ -16365,6 +18848,17 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16365
18848
|
};
|
|
16366
18849
|
report("compiling and linking Swift modules");
|
|
16367
18850
|
try {
|
|
18851
|
+
if (input.packageFiles && !swiftDistributionAt(moduleRoot)) {
|
|
18852
|
+
const frameworks = /* @__PURE__ */ new Set(["SwiftUI"]);
|
|
18853
|
+
for (const name2 of input.packageGuestImports ?? [])
|
|
18854
|
+
if (OPTIONAL_FRAMEWORKS.has(name2)) frameworks.add(name2);
|
|
18855
|
+
for (const framework of frameworks)
|
|
18856
|
+
await runCompiler(
|
|
18857
|
+
swift,
|
|
18858
|
+
[...buildArgs, "--target", framework],
|
|
18859
|
+
buildOptions
|
|
18860
|
+
);
|
|
18861
|
+
}
|
|
16368
18862
|
for (const producer of preparation.headerProducers) {
|
|
16369
18863
|
await runCompiler(
|
|
16370
18864
|
swift,
|
|
@@ -16377,7 +18871,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16377
18871
|
if (preparation.objcImplementations) {
|
|
16378
18872
|
const plan = preparation.objcImplementations;
|
|
16379
18873
|
const manifest = browser_default.parse(
|
|
16380
|
-
readFileSync6(
|
|
18874
|
+
readFileSync6(path12.join(root, ".build", "release.yaml"), "utf8")
|
|
16381
18875
|
);
|
|
16382
18876
|
if (!isRecord(manifest) || !isRecord(manifest.commands))
|
|
16383
18877
|
throw new Error("missing SwiftPM native compiler commands");
|
|
@@ -16434,7 +18928,7 @@ function compileSwiftProjectUnit(input, options) {
|
|
|
16434
18928
|
);
|
|
16435
18929
|
} catch (error) {
|
|
16436
18930
|
const output = outputOf(error);
|
|
16437
|
-
const moduleCache =
|
|
18931
|
+
const moduleCache = path12.join(
|
|
16438
18932
|
root,
|
|
16439
18933
|
".build",
|
|
16440
18934
|
WASM_TRIPLE,
|
|
@@ -16506,6 +19000,9 @@ export {
|
|
|
16506
19000
|
swiftArtifactHash,
|
|
16507
19001
|
swiftAvailableModules,
|
|
16508
19002
|
swiftBuilderHopTimeoutMs,
|
|
19003
|
+
swiftCDefinedNames,
|
|
19004
|
+
swiftCMainEntry,
|
|
19005
|
+
swiftCPredefines,
|
|
16509
19006
|
swiftCodeMask,
|
|
16510
19007
|
swiftDistributionAt,
|
|
16511
19008
|
swiftIcuAsset,
|