projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e82e703
)
Update the defaultObjectTarget definition
author
Ian Lynagh
<igloo@earth.li>
Sat, 30 Apr 2011 21:58:57 +0000
(22:58 +0100)
committer
Ian Lynagh
<igloo@earth.li>
Sun, 1 May 2011 13:35:43 +0000
(14:35 +0100)
We now default to HscC if unregisterised, else HscAsm if we have
an NCG, else LLVM.
compiler/main/DynFlags.hs
patch
|
blob
|
history
diff --git
a/compiler/main/DynFlags.hs
b/compiler/main/DynFlags.hs
index
ece8c75
..
c32f8d6
100644
(file)
--- a/
compiler/main/DynFlags.hs
+++ b/
compiler/main/DynFlags.hs
@@
-692,8
+692,9
@@
defaultHscTarget = defaultObjectTarget
-- object files on the current platform.
defaultObjectTarget :: HscTarget
defaultObjectTarget
+ | cGhcUnregisterised == "YES" = HscC
| cGhcWithNativeCodeGen == "YES" = HscAsm
- | otherwise = HscC
+ | otherwise = HscLlvm
data DynLibLoader
= Deployable