projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FIX #1181: parseStaticFlags should not be required
[ghc-hetmet.git]
/
compiler
/
main
/
DynFlags.hs
diff --git
a/compiler/main/DynFlags.hs
b/compiler/main/DynFlags.hs
index
046e2b2
..
e5153ea
100644
(file)
--- a/
compiler/main/DynFlags.hs
+++ b/
compiler/main/DynFlags.hs
@@
-17,7
+17,7
@@
module DynFlags (
-- Dynamic flags
DynFlag(..),
DynFlags(..),
-- Dynamic flags
DynFlag(..),
DynFlags(..),
- HscTarget(..), isObjectTarget,
+ HscTarget(..), isObjectTarget, defaultObjectTarget,
GhcMode(..), isOneShot,
GhcLink(..), isNoLink,
PackageFlag(..),
GhcMode(..), isOneShot,
GhcLink(..), isNoLink,
PackageFlag(..),
@@
-366,7
+366,11
@@
data PackageFlag
| IgnorePackage String
deriving Eq
| IgnorePackage String
deriving Eq
-defaultHscTarget
+defaultHscTarget = defaultObjectTarget
+
+-- | the 'HscTarget' value corresponding to the default way to create
+-- object files on the current platform.
+defaultObjectTarget
| cGhcWithNativeCodeGen == "YES" = HscAsm
| otherwise = HscC
| cGhcWithNativeCodeGen == "YES" = HscAsm
| otherwise = HscC