Skip to content

Commit 294cf28

Browse files
aykevldeadprogram
authored andcommitted
all: support LLVM 19 and LLVM 20 on Fedora 43
The system LLVM paths on Fedora 43 are slightly different from other systems like Debian, so adding those paths in this patch.
1 parent 2f7a66e commit 294cf28

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

cgo/libclang_config_llvm19.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
package cgo
44

55
/*
6-
#cgo linux CFLAGS: -I/usr/include/llvm-19 -I/usr/include/llvm-c-19 -I/usr/lib/llvm-19/include
6+
#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
77
#cgo darwin,amd64 CFLAGS: -I/usr/local/opt/llvm@19/include
88
#cgo darwin,arm64 CFLAGS: -I/opt/homebrew/opt/llvm@19/include
99
#cgo freebsd CFLAGS: -I/usr/local/llvm19/include

cgo/libclang_config_llvm20.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
package cgo
44

55
/*
6-
#cgo linux CFLAGS: -I/usr/include/llvm-20 -I/usr/include/llvm-c-20 -I/usr/lib/llvm-20/include
6+
#cgo linux CFLAGS: -I/usr/include/llvm-20 -I/usr/include/llvm-c-20 -I/usr/lib/llvm-20/include -I/usr/lib64/llvm20/include
77
#cgo darwin,amd64 CFLAGS: -I/usr/local/opt/llvm@20/include
88
#cgo darwin,arm64 CFLAGS: -I/opt/homebrew/opt/llvm@20/include
99
#cgo freebsd CFLAGS: -I/usr/local/llvm20/include

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require (
2323
golang.org/x/tools v0.30.0
2424
gopkg.in/yaml.v2 v2.4.0
2525
tinygo.org/x/espflasher v0.6.0
26-
tinygo.org/x/go-llvm v0.0.0-20250422114502-b8f170971e74
26+
tinygo.org/x/go-llvm v0.0.0-20260422095634-06c6725fe5e6
2727
)
2828

2929
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,5 +120,5 @@ gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
120120
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
121121
tinygo.org/x/espflasher v0.6.0 h1:CHbGMHAIWq1tB8FKd/QwBpNFw1jvHHxpmvZiF+QOYUo=
122122
tinygo.org/x/espflasher v0.6.0/go.mod h1:tr5u08HoE67WD5zxJesCiiVF/R1b6Akz3yXwh5zah8U=
123-
tinygo.org/x/go-llvm v0.0.0-20250422114502-b8f170971e74 h1:ovavgTdIBWCH8YWlcfq9gkpoyT1+IxMKSn+Df27QwE8=
124-
tinygo.org/x/go-llvm v0.0.0-20250422114502-b8f170971e74/go.mod h1:GFbusT2VTA4I+l4j80b17KFK+6whv69Wtny5U+T8RR0=
123+
tinygo.org/x/go-llvm v0.0.0-20260422095634-06c6725fe5e6 h1:QSnqFgNV2Ij0T4hM2qKv53fcDAFElxClPjVUZXzYkWU=
124+
tinygo.org/x/go-llvm v0.0.0-20260422095634-06c6725fe5e6/go.mod h1:GFbusT2VTA4I+l4j80b17KFK+6whv69Wtny5U+T8RR0=

0 commit comments

Comments
 (0)