From 1f431d325e7df77fae139959352670fe69320798 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sat, 30 Apr 2011 22:58:57 +0100 Subject: [PATCH] Update the defaultObjectTarget definition We now default to HscC if unregisterised, else HscAsm if we have an NCG, else LLVM. --- compiler/main/DynFlags.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs index ece8c75..c32f8d6 100644 --- 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 -- 1.7.10.4