Skip to content

Commit 5063712

Browse files
committed
Keep -fexternal-dynamic-refs off for windows
1 parent 46343c6 commit 5063712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/ghc/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ let
140140
GhcLibHcOpts += -fPIC
141141
GhcRtsHcOpts += -fPIC
142142
GhcRtsCcOpts += -fPIC
143-
'' + lib.optionalString (enableRelocatedStaticLibs && targetPlatform.isx86_64) ''
143+
'' + lib.optionalString (enableRelocatedStaticLibs && targetPlatform.isx86_64 && !targetPlatform.isWindows) ''
144144
GhcLibHcOpts += -fexternal-dynamic-refs
145145
GhcRtsHcOpts += -fexternal-dynamic-refs
146146
'' + lib.optionalString enableDWARF ''

0 commit comments

Comments
 (0)