Update the defaultObjectTarget definition
authorIan Lynagh <igloo@earth.li>
Sat, 30 Apr 2011 21:58:57 +0000 (22:58 +0100)
committerIan 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

index ece8c75..c32f8d6 100644 (file)
@@ -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