nixpkgs/pkgs/by-name/xc/xcbuild/patches/Suppress-unknown-key-warnings.patch
Randy Eckenrode 7ae8a1e519
xcbuild: suppress warnings for unknown keys
Newer SDKs have keys that xcbuild doesn’t recognize. These warnings
generate a lot of noise, especially when `xcrun` is used in an
interactive session, so suppress them.
2024-11-05 13:59:35 -05:00

27 lines
993 B
Diff

diff --git a/Libraries/xcsdk/Sources/SDK/Product.cpp b/Libraries/xcsdk/Sources/SDK/Product.cpp
index f291d475c7..bc339f567c 100644
--- a/Libraries/xcsdk/Sources/SDK/Product.cpp
+++ b/Libraries/xcsdk/Sources/SDK/Product.cpp
@@ -33,7 +33,7 @@
auto PBV = unpack.cast <plist::String> ("ProductBuildVersion");
auto PC = unpack.cast <plist::String> ("ProductCopyright");
- if (!unpack.complete(true)) {
+ if (!unpack.complete(false)) {
fprintf(stderr, "%s", unpack.errorText().c_str());
}
diff --git a/Libraries/xcsdk/Sources/SDK/Target.cpp b/Libraries/xcsdk/Sources/SDK/Target.cpp
index 523c1e4cbd..2197b1d6d1 100644
--- a/Libraries/xcsdk/Sources/SDK/Target.cpp
+++ b/Libraries/xcsdk/Sources/SDK/Target.cpp
@@ -86,7 +86,7 @@
/* Ignored: seems to be a typo. */
(void)unpack.cast <plist::String> ("isBaseSDK");
- if (!unpack.complete(true)) {
+ if (!unpack.complete(false)) {
fprintf(stderr, "%s", unpack.errorText().c_str());
}