From 95289aba10c4f03c19ded6e83b7ec68cea60024e Mon Sep 17 00:00:00 2001 From: Marcello Sylvester Bauer Date: Wed, 16 Oct 2024 12:48:23 +0200 Subject: [PATCH] nix: define CGO_CFLAGS to prioritize nix LLVM headers Signed-off-by: Marcello Sylvester Bauer --- flake.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flake.nix b/flake.nix index 25ffc70205..f4ba5b379d 100644 --- a/flake.nix +++ b/flake.nix @@ -78,6 +78,8 @@ # Ugly hack to make the Clang resources directory available. export GOFLAGS="\"-ldflags=-X github.com/tinygo-org/tinygo/goenv.clangResourceDir=${llvmPackages_18.clang.cc.lib}/lib/clang/18\" -tags=llvm18" + + export CGO_CFLAGS="-I${llvmPackages_18.llvm.dev}/include" ''; }; }