mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
tlsEmulation:on for windows/GCC
This commit is contained in:
@@ -73,6 +73,9 @@ icc.options.linker = "-cxxlib"
|
||||
# Configuration for the GNU C/C++ compiler:
|
||||
@if windows:
|
||||
#gcc.path = r"$nimrod\dist\mingw\bin"
|
||||
@if gcc:
|
||||
tlsEmulation:on
|
||||
@end
|
||||
@end
|
||||
gcc.options.debug = "-g3 -O0"
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ var
|
||||
# in it
|
||||
dbgState: TDbgState # state of debugger
|
||||
dbgBP: array[0..127, TDbgBreakpoint] # breakpoints
|
||||
dbgBPlen: int = 0
|
||||
dbgBPlen: int
|
||||
|
||||
dbgSkipToFrame: PFrame # frame to be skipped to
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ when isMainModule:
|
||||
var data: seq[string] = @[]
|
||||
|
||||
var L = random(59)
|
||||
for i in 0..10_000:
|
||||
for i in 0..2:
|
||||
#echo "loop: ", i
|
||||
#newSeq(data, L)
|
||||
setLen(data, L)
|
||||
@@ -45,7 +45,7 @@ when isMainModule:
|
||||
if not sorted(data, order):
|
||||
quit "bubblesort failed"
|
||||
|
||||
#sort(copy, cmp, order)
|
||||
sort(copy, cmp, order)
|
||||
for j in 0 .. L-1:
|
||||
let rc = getRefcount(data[j])
|
||||
if rc != 1:
|
||||
|
||||
Reference in New Issue
Block a user