[msbuild] Only pass -z to dsymutil when using Xcode 13.2 or earlier. (#15254)
Apple removed the -z / --minimize option in Xocde 13.3, so now if you use it
you get a warning: "ignoring unknown option: -z".
So just don't pass -z when using Xcode >= 13.3
Ref: https://github.com/dotnet/runtime/issues/66770
Ref: 5d07dc8977
This commit is contained in:
Родитель
a04fcf6d41
Коммит
438e312503
|
@ -55,7 +55,13 @@ namespace Xamarin.MacDev.Tasks
|
||||||
args.Add ("dsymutil");
|
args.Add ("dsymutil");
|
||||||
args.Add ("-num-threads");
|
args.Add ("-num-threads");
|
||||||
args.Add ("4");
|
args.Add ("4");
|
||||||
args.Add ("-z");
|
if (AppleSdkSettings.XcodeVersion < new Version (13, 3)) {
|
||||||
|
// Apple removed the -z / --minimize option in Xocde 13.3, so now if you use it you get a warning: "ignoring unknown option: -z"
|
||||||
|
// So just don't pass -z when Xcode >= 13.3
|
||||||
|
// Ref: https://github.com/llvm/llvm-project/commit/5d07dc897707f877c45cab6c7e4b65dad7d3ff6d
|
||||||
|
// Ref: https://github.com/dotnet/runtime/issues/66770
|
||||||
|
args.Add ("-z");
|
||||||
|
}
|
||||||
args.Add ("-o");
|
args.Add ("-o");
|
||||||
args.Add (dSymDir);
|
args.Add (dSymDir);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче