mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-21 00:52:51 -06:00
make erasing=on the default
This commit is contained in:
6
Setup.hs
6
Setup.hs
@@ -54,8 +54,8 @@ rglCommands =
|
|||||||
, RGLCommand "pgf" False $ \mode args pkg lbi -> do
|
, RGLCommand "pgf" False $ \mode args pkg lbi -> do
|
||||||
let dir = getRGLBuildDir lbi mode
|
let dir = getRGLBuildDir lbi mode
|
||||||
createDirectoryIfMissing True dir
|
createDirectoryIfMissing True dir
|
||||||
sequence_ [run_gfc pkg lbi ["-s","-make","-name=Lang"++la,"-erasing=on",dir ++ "/Lang" ++ la ++ ".gfo"] | (_,la) <- optl langsPGF args]
|
sequence_ [run_gfc pkg lbi ["-s","-make","-name=Lang"++la,dir ++ "/Lang" ++ la ++ ".gfo"] | (_,la) <- optl langsPGF args]
|
||||||
run_gfc pkg lbi (["-s","-make","-name=Lang","-erasing=on"]++["Lang" ++ la ++ ".pgf" | (_,la) <- optl langsPGF args])
|
run_gfc pkg lbi (["-s","-make","-name=Lang"]++["Lang" ++ la ++ ".pgf" | (_,la) <- optl langsPGF args])
|
||||||
, RGLCommand "demo" False $ \mode args pkg lbi -> do
|
, RGLCommand "demo" False $ \mode args pkg lbi -> do
|
||||||
let ls = optl langsDemo args
|
let ls = optl langsDemo args
|
||||||
gf (demos "Demo" ls) ["demo/Demo" ++ la ++ ".gf" | (_,la) <- ls] pkg lbi
|
gf (demos "Demo" ls) ["demo/Demo" ++ la ++ ".gf" | (_,la) <- ls] pkg lbi
|
||||||
@@ -287,7 +287,7 @@ run_gfc pkg lbi args =
|
|||||||
case e of
|
case e of
|
||||||
ExitSuccess -> return ()
|
ExitSuccess -> return ()
|
||||||
ExitFailure i -> die $ "gf exited with exit code: " ++ show i
|
ExitFailure i -> die $ "gf exited with exit code: " ++ show i
|
||||||
where rts_flags = ["-K100M"]
|
where rts_flags = ["-K64M"]
|
||||||
showArg arg = "'" ++ arg ++ "'"
|
showArg arg = "'" ++ arg ++ "'"
|
||||||
|
|
||||||
default_gf pkg lbi = buildDir lbi </> exeName' </> exeNameReal
|
default_gf pkg lbi = buildDir lbi </> exeName' </> exeNameReal
|
||||||
|
|||||||
@@ -266,7 +266,7 @@ defaultFlags = Flags {
|
|||||||
optSpeechLanguage = Nothing,
|
optSpeechLanguage = Nothing,
|
||||||
optLexer = Nothing,
|
optLexer = Nothing,
|
||||||
optUnlexer = Nothing,
|
optUnlexer = Nothing,
|
||||||
optErasing = False,
|
optErasing = True,
|
||||||
optBuildParser = BuildParser,
|
optBuildParser = BuildParser,
|
||||||
optWarnings = [],
|
optWarnings = [],
|
||||||
optDump = []
|
optDump = []
|
||||||
|
|||||||
Reference in New Issue
Block a user