mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 14:03:39 +00:00
2b7f562202
This commit switches to LLVM 15 everywhere by default, while still keeping LLVM 14 support.
17 lines
579 B
Go
17 lines
579 B
Go
//go:build !byollvm && llvm14
|
|
// +build !byollvm,llvm14
|
|
|
|
package cgo
|
|
|
|
/*
|
|
#cgo linux CFLAGS: -I/usr/lib/llvm-14/include
|
|
#cgo darwin,amd64 CFLAGS: -I/usr/local/opt/llvm@14/include
|
|
#cgo darwin,arm64 CFLAGS: -I/opt/homebrew/opt/llvm@14/include
|
|
#cgo freebsd CFLAGS: -I/usr/local/llvm14/include
|
|
#cgo linux LDFLAGS: -L/usr/lib/llvm-14/lib -lclang
|
|
#cgo darwin,amd64 LDFLAGS: -L/usr/local/opt/llvm@14/lib -lclang -lffi
|
|
#cgo darwin,arm64 LDFLAGS: -L/opt/homebrew/opt/llvm@14/lib -lclang -lffi
|
|
#cgo freebsd LDFLAGS: -L/usr/local/llvm14/lib -lclang
|
|
*/
|
|
import "C"
|