all: add macOS support

This commit is contained in:
Ayke van Laethem
2019-02-09 23:18:17 +01:00
committed by Ron Evans
parent 2d5bc836f5
commit 0b212cf2f6
11 changed files with 119 additions and 52 deletions
+4 -2
View File
@@ -3,7 +3,9 @@
package loader
/*
#cgo CFLAGS: -I/usr/lib/llvm-7/include
#cgo LDFLAGS: -L/usr/lib/llvm-7/lib -lclang
#cgo linux CFLAGS: -I/usr/lib/llvm-7/include
#cgo darwin CFLAGS: -I/usr/local/opt/llvm/include
#cgo linux LDFLAGS: -L/usr/lib/llvm-7/lib -lclang
#cgo darwin LDFLAGS: -L/usr/local/opt/llvm/lib -lclang -lffi
*/
import "C"