Add workaround for macOS 14

This commit is contained in:
STREGA 2023-09-30 07:01:07 -04:00
parent 504e2d91e3
commit b70d5d356c
1 changed files with 12 additions and 1 deletions

View File

@ -12,4 +12,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
public let defaultToolchainVersion = "wasm-5.9.0-RELEASE"
// TODO: make this `public let defaultToolchainVersion = "wasm-5.9.0-RELEASE"`
// After a stable wasm-5.9 is released
public let defaultToolchainVersion: String = {
// On macOS 14 (Sonoma) it's not possible to use Xcode older then 15.0
// Therefore Swift 5.9 is required on Sonoma
if #available(macOS 14, *) {
return "wasm-5.9-SNAPSHOT-2023-08-01-a"
}else{
// Use the latest stable release otherwise
return "wasm-5.8.0-RELEASE"
}
}()