Skip to content

Commit 29a085a

Browse files
committed
Fix dynamic link check for darwin
1 parent bc7efb5 commit 29a085a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/cabal-22/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ in recurseIntoAttrs {
3737
'' +
3838
# Aarch is statically linked and does not produce a .so file.
3939
# Musl is also statically linked, but it does make a .so file so we should check that still.
40-
optionalString (!stdenv.hostPlatform.isAarch32 && !stdenv.hostPlatform.isAarch64) (''
40+
optionalString (!stdenv.hostPlatform.isAarch32 && !stdenv.hostPlatform.isAarch64 || stdenv.hostPlatform.isDarwin) (''
4141
printf "checking that executable is dynamically linked to system libraries... " >& 2
4242
'' + optionalString (stdenv.isLinux && !stdenv.hostPlatform.isMusl) ''
4343
${haskellLib.lddForTests} $exe | grep 'libc[.]so'
@@ -57,7 +57,7 @@ in recurseIntoAttrs {
5757
'' + optionalString stdenv.isLinux ''
5858
${haskellLib.lddForTests} $sofile | grep libHSghc-prim
5959
'' + optionalString stdenv.isDarwin ''
60-
otool -L $sofile | grep libHSghc-prim
60+
otool -L $sofile | grep libHSghc-
6161
'')) + ''
6262
touch $out
6363

0 commit comments

Comments
 (0)