Commit be956c21 authored by mad.one@gmail.com's avatar mad.one@gmail.com Committed by thoughtpolice

Fix stage2 build on ARM.

LLVM supports PIC on ARM from what I can see.
Signed-off-by: thoughtpolice's avatarAustin Seipp <aseipp@pobox.com>
parent 01efdd6c
......@@ -3406,6 +3406,7 @@ makeDynFlagsConsistent dflags
in loop dflags' warn
| hscTarget dflags == HscLlvm &&
not ((arch == ArchX86_64) && (os == OSLinux || os == OSDarwin)) &&
not ((isARM arch) && (os == OSLinux)) &&
(not (gopt Opt_Static dflags) || gopt Opt_PIC dflags)
= if cGhcWithNativeCodeGen == "YES"
then let dflags' = dflags { hscTarget = HscAsm }
......
......@@ -10,6 +10,7 @@ module Platform (
ArmABI(..),
target32Bit,
isARM,
osElfTarget,
platformUsesFrameworks,
)
......@@ -54,6 +55,9 @@ data Arch
| ArchMipsel
deriving (Read, Show, Eq)
isARM :: Arch -> Bool
isARM (ArchARM {}) = True
isARM _ = False
-- | Operating systems that the native code generator knows about.
-- Having OSUnknown should produce a sensible default, but no promises.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment