Skip to content

Commit 2719d95

Browse files
authored
Also set SDKROOT when building apple platforms (#1475)
1 parent 3aba920 commit 2719d95

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2742,6 +2742,8 @@ impl Build {
27422742

27432743
cmd.args.push("-isysroot".into());
27442744
cmd.args.push(OsStr::new(&sdk_path).to_owned());
2745+
cmd.env
2746+
.push(("SDKROOT".into(), OsStr::new(&sdk_path).to_owned()));
27452747

27462748
if target.abi == "macabi" {
27472749
// Mac Catalyst uses the macOS SDK, but to compile against and

0 commit comments

Comments
 (0)