tests.cc-wrapper: disable static compilation macOS
macOS does not support this
This commit is contained in:
parent
7a06f5dd59
commit
b39dd890ac
|
@ -30,14 +30,17 @@ in stdenv.mkDerivation {
|
||||||
./core-foundation-check
|
./core-foundation-check
|
||||||
''}
|
''}
|
||||||
|
|
||||||
printf "checking whether compiler builds valid static C binaries... " >&2
|
|
||||||
$CC ${staticLibc} -static -o cc-static ${./cc-main.c}
|
${optionalString (!stdenv.isDarwin) ''
|
||||||
./cc-static
|
printf "checking whether compiler builds valid static C binaries... " >&2
|
||||||
# our glibc does not have pie enabled yet.
|
$CC ${staticLibc} -static -o cc-static ${./cc-main.c}
|
||||||
${optionalString (stdenv.hostPlatform.isMusl && stdenv.cc.isGNU) ''
|
./cc-static
|
||||||
printf "checking whether compiler builds valid static pie C binaries... " >&2
|
# our glibc does not have pie enabled yet.
|
||||||
$CC ${staticLibc} -static-pie -o cc-static-pie ${./cc-main.c}
|
${optionalString (stdenv.hostPlatform.isMusl && stdenv.cc.isGNU) ''
|
||||||
./cc-static-pie
|
printf "checking whether compiler builds valid static pie C binaries... " >&2
|
||||||
|
$CC ${staticLibc} -static-pie -o cc-static-pie ${./cc-main.c}
|
||||||
|
./cc-static-pie
|
||||||
|
''}
|
||||||
''}
|
''}
|
||||||
|
|
||||||
printf "checking whether compiler uses NIX_CFLAGS_COMPILE... " >&2
|
printf "checking whether compiler uses NIX_CFLAGS_COMPILE... " >&2
|
||||||
|
|
Loading…
Reference in a new issue