Skip to content

Commit c20f0c0

Browse files
committed
Possible fix for plugin failure on aarch64-darwin
1 parent d55ec23 commit c20f0c0

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

compiler/ghc/default.nix

+2-8
Original file line numberDiff line numberDiff line change
@@ -362,14 +362,8 @@ let
362362
# Sometimes we have to dispatch between the bintools wrapper and the unwrapped
363363
# derivation for certain tools depending on the platform.
364364
bintoolsFor = {
365-
# GHC needs install_name_tool on all darwin platforms. On aarch64-darwin it is
366-
# part of the bintools wrapper (due to codesigning requirements), but not on
367-
# x86_64-darwin.
368-
install_name_tool =
369-
if stdenv.targetPlatform.isAarch64
370-
then targetCC.bintools
371-
else targetCC.bintools.bintools;
372-
# Same goes for strip.
365+
# GHC needs install_name_tool on all darwin platforms.
366+
install_name_tool = targetCC.bintools.bintools;
373367
strip =
374368
# TODO(@sternenseemann): also use wrapper if linker == "bfd" or "gold"
375369
if stdenv.targetPlatform.isAarch64

0 commit comments

Comments
 (0)