diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-03-12 13:29:27 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-03-28 02:26:38 +0200 |
commit | e2c8d9ade0867ff41a5f89f79ae4a05d9ca9fe87 (patch) | |
tree | d7199bfa42be94c365893b4da0a0aa140b698e63 /compiler/commands.nim | |
parent | c11487b339018f01e72ff17fc919f2e3974de658 (diff) | |
download | Nim-e2c8d9ade0867ff41a5f89f79ae4a05d9ca9fe87.tar.gz |
beginnings of --gc:stack
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r-- | compiler/commands.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index 2622d64f4..86bc1c205 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -205,6 +205,7 @@ proc testCompileOptionArg*(switch, arg: string, info: TLineInfo): bool = of "generational": result = gSelectedGC == gcGenerational of "go": result = gSelectedGC == gcGo of "none": result = gSelectedGC == gcNone + of "stack": result = gSelectedGC == gcStack else: localError(info, errNoneBoehmRefcExpectedButXFound, arg) of "opt": case arg.normalize @@ -394,6 +395,9 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo) = of "none": gSelectedGC = gcNone defineSymbol("nogc") + of "stack": + gSelectedGC= gcStack + defineSymbol("gcstack") else: localError(info, errNoneBoehmRefcExpectedButXFound, arg) of "warnings", "w": if processOnOffSwitchOrList({optWarns}, arg, pass, info): listWarnings() |