
This removes a lot of backwards compatibility cruft and makes it possible to start using features that need LLVM 13 or newer. For example: * https://github.com/tinygo-org/tinygo/pull/2637 * https://github.com/tinygo-org/tinygo/pull/2830
16 строки
581 Б
Go
16 строки
581 Б
Go
//go:build !byollvm && !llvm14
|
|
// +build !byollvm,!llvm14
|
|
|
|
package cgo
|
|
|
|
/*
|
|
#cgo linux CFLAGS: -I/usr/lib/llvm-13/include
|
|
#cgo darwin,amd64 CFLAGS: -I/usr/local/opt/llvm@13/include
|
|
#cgo darwin,arm64 CFLAGS: -I/opt/homebrew/opt/llvm@13/include
|
|
#cgo freebsd CFLAGS: -I/usr/local/llvm13/include
|
|
#cgo linux LDFLAGS: -L/usr/lib/llvm-13/lib -lclang
|
|
#cgo darwin,amd64 LDFLAGS: -L/usr/local/opt/llvm@13/lib -lclang -lffi
|
|
#cgo darwin,arm64 LDFLAGS: -L/opt/homebrew/opt/llvm@13/lib -lclang -lffi
|
|
#cgo freebsd LDFLAGS: -L/usr/local/llvm13/lib -lclang
|
|
*/
|
|
import "C"
|