mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
294cf28e43
The system LLVM paths on Fedora 43 are slightly different from other systems like Debian, so adding those paths in this patch.
16 lines
617 B
Go
16 lines
617 B
Go
//go:build !byollvm && llvm19
|
|
|
|
package cgo
|
|
|
|
/*
|
|
#cgo linux CFLAGS: -I/usr/include/llvm-19 -I/usr/include/llvm-c-19 -I/usr/lib/llvm-19/include -I/usr/lib64/llvm19/include
|
|
#cgo darwin,amd64 CFLAGS: -I/usr/local/opt/llvm@19/include
|
|
#cgo darwin,arm64 CFLAGS: -I/opt/homebrew/opt/llvm@19/include
|
|
#cgo freebsd CFLAGS: -I/usr/local/llvm19/include
|
|
#cgo linux LDFLAGS: -L/usr/lib/llvm-19/lib -lclang
|
|
#cgo darwin,amd64 LDFLAGS: -L/usr/local/opt/llvm@19/lib -lclang
|
|
#cgo darwin,arm64 LDFLAGS: -L/opt/homebrew/opt/llvm@19/lib -lclang
|
|
#cgo freebsd LDFLAGS: -L/usr/local/llvm19/lib -lclang
|
|
*/
|
|
import "C"
|