File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Cabal/Distribution/Simple Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -620,6 +620,7 @@ buildLib verbosity pkg_descr lbi lib clbi = do
620
620
621
621
(ghcProg, _) <- requireProgram verbosity ghcProgram (withPrograms lbi)
622
622
let runGhcProg = runGHC verbosity ghcProg
623
+ skipCodegen = " -fno-code" `elem` programOverrideArgs ghcProg
623
624
624
625
libBi <- hackThreadedFlag verbosity
625
626
comp (withProfLib lbi) (libBuildInfo lib)
@@ -705,8 +706,11 @@ buildLib verbosity pkg_descr lbi lib clbi = do
705
706
| ghcVersion < Version [7 ,2 ] [] -- ghc-7.2+ does not make _stub.o files
706
707
, x <- libModules lib ]
707
708
708
- hObjs <- getHaskellObjects lib lbi
709
+ hObjs <-
710
+ if not skipCodegen
711
+ then getHaskellObjects lib lbi
709
712
pref objExtension True
713
+ else return []
710
714
hProfObjs <-
711
715
if (withProfLib lbi)
712
716
then getHaskellObjects lib lbi
You can’t perform that action at this time.
0 commit comments