Skip to content

Commit

Permalink
sierra-shared-test: fix build
Browse files Browse the repository at this point in the history
Using 500 libraries started failing with clang++: Argument list too long
This is enough to reproduce the issue.
  • Loading branch information
LnL7 committed Jan 5, 2018
1 parent a7ef0c0 commit 80de99b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkgs/test/macos-sierra-shared/default.nix
Expand Up @@ -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}";
Expand Down Expand Up @@ -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
'';
Expand Down

0 comments on commit 80de99b

Please sign in to comment.