mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Hard-code SDK root when building
PyOxidizer's detection seems to be failing on the machine I'm running from.
This commit is contained in:
parent
7784321b90
commit
151dd0fb34
2 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,7 @@ pub fn build_artifacts(args: BuildArtifactsArgs) {
|
|||
.env("PROFILE", "release")
|
||||
.env("OUT_DIR", &artifacts)
|
||||
.env("TARGET", env!("TARGET"))
|
||||
.env("SDKROOT", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk")
|
||||
.env("MACOSX_DEPLOYMENT_TARGET", macos_deployment_target())
|
||||
.env("CARGO_BUILD_TARGET", env!("TARGET")),
|
||||
);
|
||||
|
|
|
@ -38,6 +38,7 @@ pub fn build_bundle_binary() {
|
|||
.unwrap(),
|
||||
)
|
||||
.env("MACOSX_DEPLOYMENT_TARGET", macos_deployment_target())
|
||||
.env("SDKROOT", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk")
|
||||
.env("CARGO_BUILD_TARGET", env!("TARGET"));
|
||||
if env!("TARGET") == "x86_64-apple-darwin" {
|
||||
let xcode_path = Command::run_with_output(["xcode-select", "-p"]).unwrap();
|
||||
|
|
Loading…
Reference in a new issue