Skip to content

Commit

Permalink
Merge branch 'xcode-fastbuild-support-fix-custom-sdk' into 'main'
Browse files Browse the repository at this point in the history
untouch options["SDKRoot"] when custom SDK set

See merge request Sharpmake/sharpmake!440
  • Loading branch information
jspelletier committed Sep 13, 2023
2 parents 965bb6d + 5508654 commit 490f9ea
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ public override void SelectCompilerOptions(IGenerationContext context)
Options.XCode.Compiler.SDKRoot customSdkRoot = Options.GetObject<Options.XCode.Compiler.SDKRoot>(conf);
if (customSdkRoot != null)
{
options["SDKRoot"] = customSdkRoot.Value;
// Xcode doesn't accept the customized sdk path as SDKRoot
//options["SDKRoot"] = customSdkRoot.Value;
cmdLineOptions["SDKRoot"] = $"-isysroot {customSdkRoot.Value}";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public override void SelectCompilerOptions(IGenerationContext context)
Options.XCode.Compiler.SDKRoot customSdkRoot = Options.GetObject<Options.XCode.Compiler.SDKRoot>(conf);
if (customSdkRoot != null)
{
options["SDKRoot"] = customSdkRoot.Value;
// Xcode doesn't accept the customized sdk path as SDKRoot
//options["SDKRoot"] = customSdkRoot.Value;
cmdLineOptions["SDKRoot"] = $"-isysroot {customSdkRoot.Value}";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ public override void SelectCompilerOptions(IGenerationContext context)
Options.XCode.Compiler.SDKRoot customSdkRoot = Options.GetObject<Options.XCode.Compiler.SDKRoot>(conf);
if (customSdkRoot != null)
{
options["SDKRoot"] = customSdkRoot.Value;
// Xcode doesn't accept the customized sdk path as SDKRoot
//options["SDKRoot"] = customSdkRoot.Value;
cmdLineOptions["SDKRoot"] = $"-isysroot {customSdkRoot.Value}";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public override void SelectCompilerOptions(IGenerationContext context)
Options.XCode.Compiler.SDKRoot customSdkRoot = Options.GetObject<Options.XCode.Compiler.SDKRoot>(conf);
if (customSdkRoot != null)
{
options["SDKRoot"] = customSdkRoot.Value;
// Xcode doesn't accept the customized sdk path as SDKRoot
//options["SDKRoot"] = customSdkRoot.Value;
cmdLineOptions["SDKRoot"] = $"-isysroot {customSdkRoot.Value}";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ public override void SelectCompilerOptions(IGenerationContext context)
Options.XCode.Compiler.SDKRoot customSdkRoot = Options.GetObject<Options.XCode.Compiler.SDKRoot>(conf);
if (customSdkRoot != null)
{
options["SDKRoot"] = customSdkRoot.Value;
// Xcode doesn't accept the customized sdk path as SDKRoot
//options["SDKRoot"] = customSdkRoot.Value;
cmdLineOptions["SDKRoot"] = $"-isysroot {customSdkRoot.Value}";
}

Expand Down

0 comments on commit 490f9ea

Please sign in to comment.