1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 05:00:16 +00:00

Use -isystem instead of -I for system headers to avoid warnings when using -pedantic

svn path=/nixpkgs/trunk/; revision=30052
This commit is contained in:
Shea Levy 2011-10-27 06:39:45 +00:00
parent 0892d42613
commit d2006f51a0

View file

@ -47,7 +47,7 @@ else
# It's unclear if these will ever be provided by an LLVM project
clangCFlags="$clangCFlags -B$basePath"
clangCFlags="$clangCFlags -I$clang/lib/clang/$clangVersion/include"
clangCFlags="$clangCFlags -isystem$clang/lib/clang/$clangVersion/include"
echo "$clangCFlags" > $out/nix-support/clang-cflags
clangPath="$clang/bin"