Skip to content

Commit 8187469

Browse files
authored
require_macos_sdk: suppress harmless tar warnings (#12619)
Otherwise for some of the SDK tarballs (e.g. the 14.0 one) the log is flooded with these warnings which are caused by BSD tar creating the archive and GNU tar extracting it.
1 parent 0d6167d commit 8187469

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

platforms/macos_sdks.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,14 @@ function get_macos_sdk_script(version::String; deployment_target::String = versi
112112
echo "Extracting MacOSX${macos_sdk_version}.sdk.tar.xz (this may take a while)"
113113
rm -rf /opt/${target}/${target}/sys-root/System
114114
rm -rf /opt/${target}/${target}/sys-root/usr/include/libxml2/libxml
115+
# extract the tarball into the sys-root so all compilers pick it up
116+
# automatically, and use --warning=no-unknown-keyword to hide harmless
117+
# warnings about unsupported pax header keywords like "SCHILY.fflags"
115118
tar --extract \
116119
--file=${WORKSPACE}/srcdir/MacOSX${macos_sdk_version}.sdk.tar.xz \
117120
--directory="/opt/${target}/${target}/sys-root/." \
118121
--strip-components=1 \
122+
--warning=no-unknown-keyword \
119123
MacOSX${macos_sdk_version}.sdk/System \
120124
MacOSX${macos_sdk_version}.sdk/usr
121125
export MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target}

0 commit comments

Comments
 (0)