all: initial support for LLVM 21

This commit is contained in:
Ayke van Laethem
2025-09-16 16:45:56 +02:00
parent 109e0767e7
commit 63e3c3ec24
10 changed files with 49 additions and 25 deletions
+4
View File
@@ -21,6 +21,10 @@ import (
)
/*
// Hide a warning in LLVM 21 that doesn't apply to us (appears to be a side
// effect of how CGo processes C header files).
#cgo CFLAGS: -Wno-deprecated-declarations
#include <clang-c/Index.h> // If this fails, libclang headers aren't available. Please take a look here: https://tinygo.org/docs/guides/build/
#include <llvm/Config/llvm-config.h>
#include <stdlib.h>