bazelbuild / rules_swift

Bazel rules to build Swift on Apple and Linux platforms
Apache License 2.0
307 stars 133 forks source link

When calculating the target triple for 'arm64-apple-ios<version>-simulator' targets, correctly specify the minimum supported OS #1247

Closed brentleyjones closed 1 month ago

brentleyjones commented 1 month ago

Precompiled pcm files will be generated with the target triple, however the minimum supported version for arm64 on an ios-simulator is 14.0. Any minimum OS under 14 will be raised to 14 by the swift driver and clang tools. This logic is not applied to the AST serialized into pcm object files. To ensure the AST is correctly specified, adjust the target triple to configure the lower bounds correctly.

PiperOrigin-RevId: 458248769 (cherry picked from commit b100c3ff77cd786bab452ab62f5d1a3fa469ad27)