
This commit also adds a bit of version independence, in particular for external commands. It also adds the LLVM version to the `tinygo version` command, which might help while debugging.
14 строки
386 Б
Go
14 строки
386 Б
Go
// +build !byollvm
|
|
// +build !llvm9
|
|
|
|
package cgo
|
|
|
|
/*
|
|
#cgo linux CFLAGS: -I/usr/lib/llvm-10/include
|
|
#cgo darwin CFLAGS: -I/usr/local/opt/llvm@10/include
|
|
#cgo freebsd CFLAGS: -I/usr/local/llvm10/include
|
|
#cgo linux LDFLAGS: -L/usr/lib/llvm-10/lib -lclang
|
|
#cgo darwin LDFLAGS: -L/usr/local/opt/llvm@10/lib -lclang -lffi
|
|
#cgo freebsd LDFLAGS: -L/usr/local/llvm10/lib -lclang
|
|
*/
|
|
import "C"
|