build: check -tags nogc
This commit is contained in:
@@ -26,7 +26,6 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
LLGoFiles = "$(pkg-config --cflags bdw-gc): _wrap/pthread_gc.c"
|
||||
LLGoPackage = "link: $(pkg-config --libs bdw-gc); -lgc"
|
||||
)
|
||||
|
||||
@@ -56,8 +55,8 @@ const (
|
||||
//
|
||||
// See https://man7.org/linux/man-pages/man3/pthread_create.3.html
|
||||
//
|
||||
//go:linkname Create C.llgoPthreadCreate
|
||||
func Create(pthread *Thread, attr *Attr, routine func(c.Pointer) c.Pointer, arg c.Pointer) c.Int
|
||||
//go:linkname Create C.GC_pthread_create
|
||||
func Create(pthread *Thread, attr *Attr, routine RoutineFunc, arg c.Pointer) c.Int
|
||||
|
||||
// The pthread_join() function waits for the thread specified by
|
||||
// thread to terminate. If that thread has already terminated, then
|
||||
@@ -77,5 +76,5 @@ func Create(pthread *Thread, attr *Attr, routine func(c.Pointer) c.Pointer, arg
|
||||
//
|
||||
// See https://man7.org/linux/man-pages/man3/pthread_join.3.html
|
||||
//
|
||||
//go:linkname Join C.llgoPthreadJoin
|
||||
//go:linkname Join C.GC_pthread_join
|
||||
func Join(thread Thread, retval *c.Pointer) c.Int
|
||||
|
||||
Reference in New Issue
Block a user