Commit 0c5a0584 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Make -fext-core a dynamic flag (it was a static flag)

parent 03589065
......@@ -26,7 +26,6 @@ import Outputable
import Encoding
import ForeignCall
import DynFlags
import StaticFlags
import FastString
import IO
......@@ -34,7 +33,7 @@ import Data.Char
emitExternalCore :: DynFlags -> CgGuts -> IO ()
emitExternalCore dflags cg_guts
| opt_EmitExternalCore
| dopt Opt_EmitExternalCore dflags
= (do handle <- openFile corename WriteMode
hPutStrLn handle (show (mkExternalCore cg_guts))
hClose handle)
......
......@@ -309,6 +309,7 @@ data DynFlag
| Opt_PrintBindContents
| Opt_GenManifest
| Opt_EmbedManifest
| Opt_EmitExternalCore
-- temporary flags
| Opt_RunCPS
......@@ -1740,6 +1741,7 @@ fFlags = [
deprecatedForLanguage "IncoherentInstances" ),
( "gen-manifest", Opt_GenManifest, const Supported ),
( "embed-manifest", Opt_EmbedManifest, const Supported ),
( "ext-core", Opt_EmitExternalCore, const Supported ),
( "implicit-import-qualified", Opt_ImplicitImportQualified, const Supported )
]
......
......@@ -167,7 +167,6 @@ isStaticFlag f =
"static",
"fhardwire-lib-paths",
"funregisterised",
"fext-core",
"fcpr-off",
"ferror-spans",
"fPIC",
......
......@@ -68,7 +68,6 @@ module StaticFlags (
opt_HistorySize,
opt_OmitBlackHoling,
opt_Unregisterised,
opt_EmitExternalCore,
v_Ld_inputs,
tablesNextToCode,
opt_StubDeadValues,
......@@ -281,9 +280,6 @@ tablesNextToCode :: Bool
tablesNextToCode = not opt_Unregisterised
&& cGhcEnableTablesNextToCode == "YES"
opt_EmitExternalCore :: Bool
opt_EmitExternalCore = lookUp (fsLit "-fext-core")
-- Include full span info in error messages, instead of just the start position.
opt_ErrorSpans :: Bool
opt_ErrorSpans = lookUp (fsLit "-ferror-spans")
......
......@@ -2054,7 +2054,7 @@
<row>
<entry><option>-fext-core</option></entry>
<entry>Generate <filename>.hcr</filename> external Core files</entry>
<entry>static</entry>
<entry>dynamic</entry>
<entry>-</entry>
</row>
</tbody>
......
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