deprecate newruntime (#17245)
* deprecate newruntime * tests * Update compiler/commands.nim
This commit is contained in:
parent
2e3d324cc6
commit
e1cc3b83fb
16 changed files with 17 additions and 15 deletions
|
|
@ -245,6 +245,8 @@ provided by the operating system.
|
||||||
|
|
||||||
- Added `then`, `catch` to `asyncjs`, for now hidden behind `-d:nimExperimentalAsyncjsThen`.
|
- Added `then`, `catch` to `asyncjs`, for now hidden behind `-d:nimExperimentalAsyncjsThen`.
|
||||||
|
|
||||||
|
- `--newruntime` is deprecated.
|
||||||
|
|
||||||
## Tool changes
|
## Tool changes
|
||||||
|
|
||||||
- The rst parser now supports markdown table syntax.
|
- The rst parser now supports markdown table syntax.
|
||||||
|
|
|
||||||
|
|
@ -891,6 +891,7 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
|
||||||
if conf != nil:
|
if conf != nil:
|
||||||
conf.cppDefine(arg)
|
conf.cppDefine(arg)
|
||||||
of "newruntime":
|
of "newruntime":
|
||||||
|
warningDeprecated(conf, info, "newruntime is deprecated, use arc/orc instead!")
|
||||||
expectNoArg(conf, switch, arg, pass, info)
|
expectNoArg(conf, switch, arg, pass, info)
|
||||||
if pass in {passCmd2, passPP}:
|
if pass in {passCmd2, passPP}:
|
||||||
doAssert(conf != nil)
|
doAssert(conf != nil)
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,6 @@ Runtime checks (see -x):
|
||||||
--floatChecks:on|off turn all floating point (NaN/Inf) checks on|off
|
--floatChecks:on|off turn all floating point (NaN/Inf) checks on|off
|
||||||
--nanChecks:on|off turn NaN checks on|off
|
--nanChecks:on|off turn NaN checks on|off
|
||||||
--infChecks:on|off turn Inf checks on|off
|
--infChecks:on|off turn Inf checks on|off
|
||||||
--refChecks:on|off turn ref checks on|off (only for --newruntime)
|
|
||||||
|
|
||||||
Advanced options:
|
Advanced options:
|
||||||
-o:FILE, --out:FILE set the output filename
|
-o:FILE, --out:FILE set the output filename
|
||||||
|
|
|
||||||
|
|
@ -431,8 +431,8 @@ Define Effect
|
||||||
``useMalloc`` Makes Nim use C's `malloc`:idx: instead of Nim's
|
``useMalloc`` Makes Nim use C's `malloc`:idx: instead of Nim's
|
||||||
own memory manager, albeit prefixing each allocation with
|
own memory manager, albeit prefixing each allocation with
|
||||||
its size to support clearing memory on reallocation.
|
its size to support clearing memory on reallocation.
|
||||||
This only works with ``gc:none`` and
|
This only works with ``gc:none``, ``gc:arc`` and
|
||||||
with ``--newruntime``.
|
``--gc:orc``.
|
||||||
``useRealtimeGC`` Enables support of Nim's GC for *soft* realtime
|
``useRealtimeGC`` Enables support of Nim's GC for *soft* realtime
|
||||||
systems. See the documentation of the `gc <gc.html>`_
|
systems. See the documentation of the `gc <gc.html>`_
|
||||||
for further information.
|
for further information.
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
matrix: "--gc:refc; --gc:arc; --newruntime"
|
matrix: "--gc:refc; --gc:arc"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import std/strbasics
|
import std/strbasics
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
cmd: '''nim c --newruntime $file'''
|
cmd: '''nim c --gc:arc $file'''
|
||||||
output: '''2
|
output: '''2
|
||||||
2'''
|
2'''
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
cmd: '''nim c --newruntime $file'''
|
cmd: '''nim c --gc:arc $file'''
|
||||||
output: '''2
|
output: '''2
|
||||||
2'''
|
2'''
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
cmd: '''nim c --newruntime $file'''
|
cmd: '''nim c --gc:arc $file'''
|
||||||
output: '''
|
output: '''
|
||||||
showing original type, length, and contents seq[int] 1 @[42]
|
showing original type, length, and contents seq[int] 1 @[42]
|
||||||
copy length and contents 1 @[42]
|
copy length and contents 1 @[42]
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
discard """
|
discard """
|
||||||
output: '''allocating 1048576 65536
|
output: '''allocating 1048576 65536
|
||||||
filling page from 1048576 len 65536'''
|
filling page from 1048576 len 65536'''
|
||||||
cmd: '''nim c --newruntime $file'''
|
cmd: '''nim c --gc:arc $file'''
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# bug #12669
|
# bug #12669
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
cmd: '''nim c --newruntime $file'''
|
cmd: '''nim c --gc:arc $file'''
|
||||||
output: '''no crash'''
|
output: '''no crash'''
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
cmd: '''nim c -d:nimAllocStats --newruntime $file'''
|
cmd: '''nim c -d:nimAllocStats --gc:arc $file'''
|
||||||
output: '''hi
|
output: '''hi
|
||||||
ho
|
ho
|
||||||
ha
|
ha
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
cmd: '''nim c --newruntime $file'''
|
cmd: '''nim c --gc:arc $file'''
|
||||||
output: '''(v: 42)
|
output: '''(v: 42)
|
||||||
igotdestroyed'''
|
igotdestroyed'''
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
discard """
|
discard """
|
||||||
valgrind: true
|
valgrind: true
|
||||||
cmd: '''nim c -d:nimAllocStats --newruntime -d:useMalloc $file'''
|
cmd: '''nim c -d:nimAllocStats --gc:arc -d:useMalloc $file'''
|
||||||
output: '''
|
output: '''
|
||||||
@[(input: @["KXSC", "BGMC"]), (input: @["PXFX"]), (input: @["WXRQ", "ZSCZD"])]
|
@[(input: @["KXSC", "BGMC"]), (input: @["PXFX"]), (input: @["WXRQ", "ZSCZD"])]
|
||||||
14
|
14
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
cmd: '''nim c -d:nimAllocStats --newruntime $file'''
|
cmd: '''nim c -d:nimAllocStats --gc:arc $file'''
|
||||||
output: '''31665
|
output: '''31665
|
||||||
(allocCount: 33334, deallocCount: 33334)'''
|
(allocCount: 33334, deallocCount: 33334)'''
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
cmd: '''nim c -d:nimAllocStats --newruntime $file'''
|
cmd: '''nim c -d:nimAllocStats --gc:arc $file'''
|
||||||
output: '''a b
|
output: '''a b
|
||||||
70
|
70
|
||||||
hello
|
hello
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
cmd: '''nim c --newruntime $file'''
|
cmd: '''nim c --gc:arc $file'''
|
||||||
output: '''@[1]
|
output: '''@[1]
|
||||||
@[116, 101, 115, 116]
|
@[116, 101, 115, 116]
|
||||||
@[1953719668, 875770417]'''
|
@[1953719668, 875770417]'''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue