Add workaround for macOS 14
This commit is contained in:
parent
504e2d91e3
commit
b70d5d356c
|
@ -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"
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Reference in New Issue