sierra-shared-test: fix build

Using 500 libraries started failing with clang++: Argument list too long
This is enough to reproduce the issue.
This commit is contained in:
Daiderd Jordan 2018-01-05 23:18:51 +01:00
parent a7ef0c03d2
commit 80de99b46b
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -3,7 +3,7 @@
let
makeBigExe = stdenv: prefix: rec {
count = 500;
count = 320;
sillyLibs = lib.genList (i: stdenv.mkDerivation rec {
name = "${prefix}-fluff-${toString i}";
@ -75,13 +75,14 @@ in stdenvNoCC.mkDerivation {
buildInputs = [ good.finalExe bad.finalExe ];
# TODO(@Ericson2314): Be impure or require exact MacOS version of builder?
buildCommand = ''
if bad-asdf
then echo "bad-asdf can succeed on non-sierra, OK" >&2
if bad-asdf &> /dev/null
then echo "WARNING: bad-asdf did not fail, not running on sierra?" >&2
else echo "bad-asdf should fail on sierra, OK" >&2
fi
# Must succeed on all supported MacOS versions
good-asdf
echo "good-asdf should succeed on sierra, OK"
touch $out
'';