go: trying to compile
This commit is contained in:
parent
7b692994f1
commit
ebfafea798
|
@ -0,0 +1,10 @@
|
|||
package _go
|
||||
|
||||
// #cgo darwin CFLAGS: -D LIBSOLV_INTERNAL -I /Library/Developer/CommandLineTools/usr/include/c++/v1 -I ../include -D LD_LIBRARY_PATH=./target/release/
|
||||
// #cgo darwin LDFLAGS: -L ./target/release/ -llibbolt
|
||||
// #include <libbolt.h>
|
||||
import "C"
|
||||
|
||||
func main() {
|
||||
C.ffishim_bidirectional_channel_setup("testChannel", 0)
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package _go
|
||||
|
||||
import "testing"
|
||||
|
||||
func Test_main(t *testing.T) {
|
||||
main()
|
||||
}
|
Loading…
Reference in New Issue