From ebfafea798551ce45141800adfa9aede119aa1b9 Mon Sep 17 00:00:00 2001 From: Gijs Van Laer Date: Tue, 3 Sep 2019 10:22:41 -0400 Subject: [PATCH] go: trying to compile --- go/libbolt.go | 10 ++++++++++ go/libbolt_test.go | 7 +++++++ 2 files changed, 17 insertions(+) create mode 100644 go/libbolt.go create mode 100644 go/libbolt_test.go diff --git a/go/libbolt.go b/go/libbolt.go new file mode 100644 index 0000000..eee238e --- /dev/null +++ b/go/libbolt.go @@ -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 +import "C" + +func main() { + C.ffishim_bidirectional_channel_setup("testChannel", 0) +} \ No newline at end of file diff --git a/go/libbolt_test.go b/go/libbolt_test.go new file mode 100644 index 0000000..1fcc4a5 --- /dev/null +++ b/go/libbolt_test.go @@ -0,0 +1,7 @@ +package _go + +import "testing" + +func Test_main(t *testing.T) { + main() +}