tests.cc-wrapper: disable static compilation macOS

macOS does not support this
This commit is contained in:
Jörg Thalheim 2020-12-14 20:53:00 +01:00
parent 7a06f5dd59
commit b39dd890ac
No known key found for this signature in database
GPG key ID: 003F2096411B5F92

View file

@ -30,6 +30,8 @@ in stdenv.mkDerivation {
./core-foundation-check
''}
${optionalString (!stdenv.isDarwin) ''
printf "checking whether compiler builds valid static C binaries... " >&2
$CC ${staticLibc} -static -o cc-static ${./cc-main.c}
./cc-static
@ -39,6 +41,7 @@ in stdenv.mkDerivation {
$CC ${staticLibc} -static-pie -o cc-static-pie ${./cc-main.c}
./cc-static-pie
''}
''}
printf "checking whether compiler uses NIX_CFLAGS_COMPILE... " >&2
mkdir -p foo/include