summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2020-06-29 17:19:23 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-07-22 20:19:59 -0400
commitbab4ec8f62352a6361a5fd2cbdc5f12eca8928e7 (patch)
treeacfd5c7597c978f16dbe7fffc64f528f6dc30889
parent0f17b930c164f3130caf2215484a8f5f8aa3cc63 (diff)
downloadhaskell-bab4ec8f62352a6361a5fd2cbdc5f12eca8928e7.tar.gz
Don't panic if the NCG isn't built (it is always built)
-rw-r--r--compiler/GHC/Driver/CodeOutput.hs4
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/GHC/Driver/CodeOutput.hs b/compiler/GHC/Driver/CodeOutput.hs
index b8b48425e9..f0bfcb76ed 100644
--- a/compiler/GHC/Driver/CodeOutput.hs
+++ b/compiler/GHC/Driver/CodeOutput.hs
@@ -159,7 +159,6 @@ outputAsm :: DynFlags -> Module -> ModLocation -> FilePath
-> Stream IO RawCmmGroup a
-> IO a
outputAsm dflags this_mod location filenm cmm_stream
- | platformMisc_ghcWithNativeCodeGen $ platformMisc dflags
= do ncg_uniqs <- mkSplitUniqSupply 'n'
debugTraceMsg dflags 4 (text "Outputing asm to" <+> text filenm)
@@ -168,9 +167,6 @@ outputAsm dflags this_mod location filenm cmm_stream
\h -> {-# SCC "NativeCodeGen" #-}
nativeCodeGen dflags this_mod location h ncg_uniqs cmm_stream
- | otherwise
- = panic "This compiler was built without a native code generator"
-
{-
************************************************************************
* *