mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-04 02:44:44 +00:00
fixes Thread initializer for ARC/ORC on Macos (#20368)
* fixes Thread initializer for ARC/ORC * another try * fix * use int
This commit is contained in:
@@ -141,7 +141,7 @@ else:
|
||||
header: "<pthread.h>".} = cint
|
||||
else:
|
||||
type
|
||||
SysThread* {.importc: "pthread_t", header: "<sys/types.h>".} = object
|
||||
SysThread* {.importc: "pthread_t", header: "<sys/types.h>".} = int
|
||||
Pthread_attr {.importc: "pthread_attr_t",
|
||||
header: "<sys/types.h>".} = object
|
||||
ThreadVarSlot {.importc: "pthread_key_t",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
cmd: "nim $target --hints:on --threads:on $options $file"
|
||||
matrix: "--mm:refc; --mm:orc"
|
||||
action: compile
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user