tlsEmulation:on for windows/GCC

This commit is contained in:
Araq
2012-01-29 23:04:07 +01:00
parent 4b95233632
commit a7e9ae55f4
3 changed files with 6 additions and 3 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -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: