Skip to content

Commit

Permalink
nix: define CGO_CFLAGS 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 e43b10f commit 95289ab
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_CFLAGS="-I${llvmPackages_18.llvm.dev}/include"
'';
};
}
Expand Down

0 comments on commit 95289ab

Please sign in to comment.