tlsEmulation:on for windows/GCC
This commit is contained in:
parent
4b95233632
commit
a7e9ae55f4
3 changed files with 6 additions and 3 deletions
|
|
@ -73,6 +73,9 @@ icc.options.linker = "-cxxlib"
|
||||||
# Configuration for the GNU C/C++ compiler:
|
# Configuration for the GNU C/C++ compiler:
|
||||||
@if windows:
|
@if windows:
|
||||||
#gcc.path = r"$nimrod\dist\mingw\bin"
|
#gcc.path = r"$nimrod\dist\mingw\bin"
|
||||||
|
@if gcc:
|
||||||
|
tlsEmulation:on
|
||||||
|
@end
|
||||||
@end
|
@end
|
||||||
gcc.options.debug = "-g3 -O0"
|
gcc.options.debug = "-g3 -O0"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ var
|
||||||
# in it
|
# in it
|
||||||
dbgState: TDbgState # state of debugger
|
dbgState: TDbgState # state of debugger
|
||||||
dbgBP: array[0..127, TDbgBreakpoint] # breakpoints
|
dbgBP: array[0..127, TDbgBreakpoint] # breakpoints
|
||||||
dbgBPlen: int = 0
|
dbgBPlen: int
|
||||||
|
|
||||||
dbgSkipToFrame: PFrame # frame to be skipped to
|
dbgSkipToFrame: PFrame # frame to be skipped to
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ when isMainModule:
|
||||||
var data: seq[string] = @[]
|
var data: seq[string] = @[]
|
||||||
|
|
||||||
var L = random(59)
|
var L = random(59)
|
||||||
for i in 0..10_000:
|
for i in 0..2:
|
||||||
#echo "loop: ", i
|
#echo "loop: ", i
|
||||||
#newSeq(data, L)
|
#newSeq(data, L)
|
||||||
setLen(data, L)
|
setLen(data, L)
|
||||||
|
|
@ -45,7 +45,7 @@ when isMainModule:
|
||||||
if not sorted(data, order):
|
if not sorted(data, order):
|
||||||
quit "bubblesort failed"
|
quit "bubblesort failed"
|
||||||
|
|
||||||
#sort(copy, cmp, order)
|
sort(copy, cmp, order)
|
||||||
for j in 0 .. L-1:
|
for j in 0 .. L-1:
|
||||||
let rc = getRefcount(data[j])
|
let rc = getRefcount(data[j])
|
||||||
if rc != 1:
|
if rc != 1:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue