forked from mirrors/nixpkgs
clang: Install static analysis tools
svn path=/nixpkgs/trunk/; revision=29921
This commit is contained in:
parent
6e3cde6383
commit
1d7f2e1e90
|
@ -37,7 +37,7 @@ stdenv.mkDerivation {
|
|||
patches = [ ./clang-include-paths.patch ./clang-ld-flags.patch ./clang-tblgen.patch ./clang-system-llvm-libs.patch ];
|
||||
|
||||
buildFlags = [ "TableGen=tblgen" "LLVM_CONFIG=llvm-config" ];
|
||||
# Set up the header file paths
|
||||
|
||||
preBuild = ''
|
||||
sed -i -e 's,C_INCLUDE_PATH,"${stdenv.gcc.libc}/include/",' \
|
||||
-e 's,CPP_HOST,"${triplet}",' \
|
||||
|
@ -50,6 +50,11 @@ stdenv.mkDerivation {
|
|||
cd tools/clang
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -v -m755 tools/scan-build/scan-build $out/bin
|
||||
install -v -m755 tools/scan-view/scan-view $out/bin
|
||||
'';
|
||||
|
||||
passthru = { gcc = stdenv.gcc.gcc; };
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in a new issue