Skip to content

Commit a536b7f

Browse files
committed
modified: shell.nix
1 parent 34cf072 commit a536b7f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

shell.nix

+7
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,11 @@ stdenv.mkDerivation rec {
88
llvm
99
];
1010
LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib";
11+
BINDGEN_EXTRA_CLANG_ARGS="$(< ${stdenv.cc}/nix-support/libc-crt1-cflags) \
12+
$(< ${stdenv.cc}/nix-support/libc-cflags) \
13+
$(< ${stdenv.cc}/nix-support/cc-cflags) \
14+
$(< ${stdenv.cc}/nix-support/libcxx-cxxflags) \
15+
${lib.optionalString stdenv.cc.isClang "-idirafter ${stdenv.cc.cc}/lib/clang/${lib.getVersion stdenv.cc.cc}/include"} \
16+
${lib.optionalString stdenv.cc.isGNU "-isystem ${stdenv.cc.cc}/include/c++/${lib.getVersion stdenv.cc.cc} -isystem ${stdenv.cc.cc}/include/c++/${lib.getVersion stdenv.cc.cc}/${stdenv.hostPlatform.config} -idirafter ${stdenv.cc.cc}/lib/gcc/${stdenv.hostPlatform.config}/${lib.getVersion stdenv.cc.cc}/include"} \
17+
";
1118
}

0 commit comments

Comments
 (0)