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:
ringabout 2022-09-17 04:35:53 +08:00 • committed by GitHub
commit f6dc30e52d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -141,7 +141,7 @@ else:
header: "<pthread.h>".} = cint header: "<pthread.h>".} = cint
else: else:
type 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", Pthread_attr {.importc: "pthread_attr_t",
header: "<sys/types.h>".} = object header: "<sys/types.h>".} = object
ThreadVarSlot {.importc: "pthread_key_t", ThreadVarSlot {.importc: "pthread_key_t",

View file

@ -1,5 +1,5 @@
discard """ discard """
cmd: "nim $target --hints:on --threads:on $options $file" matrix: "--mm:refc; --mm:orc"
action: compile action: compile
""" """