diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2017-04-01 10:35:52 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2017-04-01 10:47:15 +0100 |
commit | 74615f412ad3de2910a156ff494bfe5497fada7e (patch) | |
tree | 28497a93ffeb94edfe6b00da84f6c1d937f8e1f1 /compiler | |
parent | 71916e1c018dded2e68d6769a2dbb8777da12664 (diff) | |
download | haskell-74615f412ad3de2910a156ff494bfe5497fada7e.tar.gz |
UNREG: ignore -fllvm (Trac #13495)
Unregisterised GHC can only use C as a target backend
(option used to be called -fvia-C). -fasm option was
ignored with a warhing, but not -fllvm.
jms noticed the failure when tried to use quick-cross
build flavour. quick-cross enables -fllvm in makefile.
"inplace/bin/ghc-stage1" ... -fllvm
ghc-stage1: panic! (the 'impossible' happened)
(GHC version 8.0.2 for powerpc-unknown-linux):
LlvmCodeGen.Ppr: Cross compiling without valid target info.
This change ignores -fllvm as well.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/main/DynFlags.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs index 2750ca6aa8..dad1d6ff10 100644 --- a/compiler/main/DynFlags.hs +++ b/compiler/main/DynFlags.hs @@ -5151,7 +5151,7 @@ makeDynFlagsConsistent dflags = let dflags' = gopt_unset dflags Opt_Hpc warn = "Hpc can't be used with byte-code interpreter. Ignoring -fhpc." in loop dflags' warn - | hscTarget dflags == HscAsm && + | hscTarget dflags `elem` [HscAsm, HscLlvm] && platformUnregisterised (targetPlatform dflags) = loop (dflags { hscTarget = HscC }) "Compiler unregisterised, so compiling via C" |