Skip to content

Commit

Permalink
nix: define CGO_CPPFLAGS to prioritize nix LLVM headers
Browse files Browse the repository at this point in the history
Signed-off-by: Marcello Sylvester Bauer <[email protected]>
  • Loading branch information
sylv-io committed Oct 16, 2024
1 parent 3c34f66 commit 12f8ee8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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_CPPFLAGS="-I${llvmPackages_18.llvm.dev}/include/llvm-18 -I${llvmPackages_18.llvm.dev}/include/llvm-c-18"
'';
};
}
Expand Down

0 comments on commit 12f8ee8

Please sign in to comment.