default threads on (#19368)
* default threads on * make rst gcsafe * ignore threads option for nimscript * threads off * use createShared for threads * test without threads * avr threds off * avr threads off * async threads off * threads off * fix ci * restore option * make CI pleased * fix ic tests * Update config.nims * add changelog * Update changelog.md Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
This commit is contained in:
parent
01b40dc1d7
commit
430a179307
10 changed files with 17 additions and 9 deletions
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
cmd: "nim c --compileOnly --os:standalone --exceptions:quirky -d:noSignalHandler -d:danger $file"
|
||||
cmd: "nim c --compileOnly --os:standalone --exceptions:quirky -d:noSignalHandler -d:danger --threads:off $file"
|
||||
action: "compile"
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ proc `=destroy`(x: var MyObject) =
|
|||
proc `=`(x: var MyObject, y: MyObject) {.error.}
|
||||
|
||||
proc newMyObject(i: int): MyObject =
|
||||
result.p = create(int)
|
||||
result.p = createShared(int)
|
||||
result.p[] = i
|
||||
|
||||
proc test: seq[MyObject] =
|
||||
|
|
|
|||
2
tests/ic/config.nims
Normal file
2
tests/ic/config.nims
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
when defined(windows):
|
||||
--threads:off
|
||||
|
|
@ -2,3 +2,4 @@
|
|||
--cpu:avr
|
||||
--os:standalone
|
||||
--compileOnly
|
||||
--threads:off
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
discard """
|
||||
action: compile
|
||||
matrix: "--threads:off"
|
||||
"""
|
||||
|
||||
import asyncdispatch, times
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
targets: "c cpp"
|
||||
matrix: "--gc:orc"
|
||||
matrix: "--gc:orc --threads:off"
|
||||
"""
|
||||
|
||||
import std/[tasks, strformat]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
matrix: "--gc:none -d:useMalloc"
|
||||
matrix: "--gc:none -d:useMalloc --threads:off"
|
||||
"""
|
||||
# bug #15617
|
||||
let x = 4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue