Specify macOS target version manually

This commit is contained in:
Antonio Scandurra 2022-09-16 11:35:33 +02:00
parent 8bd059a293
commit 32c65cfb2a

View file

@ -52,7 +52,13 @@ fn build_bridge(swift_target: &SwiftTarget) {
if !Command::new("swift")
.arg("build")
.args(&["--configuration", &env::var("PROFILE").unwrap()])
.args(&["--triple", &swift_target.target.unversioned_triple])
.args(&[
"--triple",
&format!(
"{}{}",
swift_target.target.unversioned_triple, MACOS_TARGET_VERSION
),
])
.current_dir(&swift_package_root)
.status()
.unwrap()