Skip to content

Commit

Permalink
nix: define 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 5119cbf
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 CPPFLAGS="-I${llvmPackages_18.llvm.dev}/include"
'';
};
}
Expand Down

0 comments on commit 5119cbf

Please sign in to comment.