-
Notifications
You must be signed in to change notification settings - Fork 917
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This allows us to test LLVM 17 already, before it's available in Homebrew etc. Full support for LLVM 17 will have to wait until Espressif rebases their Xtensa fork of LLVM.
- Loading branch information
Showing
6 changed files
with
46 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
//go:build !byollvm && !llvm14 && !llvm15 | ||
//go:build !byollvm && !llvm14 && !llvm15 && !llvm17 | ||
|
||
package cgo | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//go:build !byollvm && llvm17 | ||
|
||
package cgo | ||
|
||
/* | ||
#cgo linux CFLAGS: -I/usr/include/llvm-17 -I/usr/include/llvm-c-17 -I/usr/lib/llvm-17/include | ||
#cgo darwin,amd64 CFLAGS: -I/usr/local/opt/llvm@17/include | ||
#cgo darwin,arm64 CFLAGS: -I/opt/homebrew/opt/llvm@17/include | ||
#cgo freebsd CFLAGS: -I/usr/local/llvm17/include | ||
#cgo linux LDFLAGS: -L/usr/lib/llvm-17/lib -lclang | ||
#cgo darwin,amd64 LDFLAGS: -L/usr/local/opt/llvm@17/lib -lclang -lffi | ||
#cgo darwin,arm64 LDFLAGS: -L/opt/homebrew/opt/llvm@17/lib -lclang -lffi | ||
#cgo freebsd LDFLAGS: -L/usr/local/llvm17/lib -lclang | ||
*/ | ||
import "C" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters