From bab4ec8f62352a6361a5fd2cbdc5f12eca8928e7 Mon Sep 17 00:00:00 2001 From: Sylvain Henry Date: Mon, 29 Jun 2020 17:19:23 +0200 Subject: Don't panic if the NCG isn't built (it is always built) --- compiler/GHC/Driver/CodeOutput.hs | 4 ---- 1 file changed, 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" - {- ************************************************************************ * * -- cgit v1.2.1