From 5119cbf42e71cf3c00ac9f4624c7fcb331e5c43b Mon Sep 17 00:00:00 2001 From: Marcello Sylvester Bauer Date: Wed, 16 Oct 2024 13:41:20 +0200 Subject: [PATCH] nix: define CPPFLAGS 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..c81bd548ba 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 CPPFLAGS="-I${llvmPackages_18.llvm.dev}/include" ''; }; }