summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorDan Peebles <thetypesaretoobig@gmail.com>2015-02-08 02:12:51 -0500
committerDan Peebles <thetypesaretoobig@gmail.com>2015-02-08 02:12:51 -0500
commit507d65d7d4f195ecd5b08ee5d24f6e96924f7b1c (patch)
tree8821fec731782d5e0581d59d07fca091cbd50271 /pkgs
parent43cc3a963db43220e28a779b40cf3218d9fb599c (diff)
downloadnixpkgs-507d65d7d4f195ecd5b08ee5d24f6e96924f7b1c.tar
nixpkgs-507d65d7d4f195ecd5b08ee5d24f6e96924f7b1c.tar.gz
nixpkgs-507d65d7d4f195ecd5b08ee5d24f6e96924f7b1c.tar.bz2
nixpkgs-507d65d7d4f195ecd5b08ee5d24f6e96924f7b1c.tar.lz
nixpkgs-507d65d7d4f195ecd5b08ee5d24f6e96924f7b1c.tar.xz
nixpkgs-507d65d7d4f195ecd5b08ee5d24f6e96924f7b1c.tar.zst
nixpkgs-507d65d7d4f195ecd5b08ee5d24f6e96924f7b1c.zip
Get rid of default search paths in clang 3.5
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/compilers/llvm/3.5/clang.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/compilers/llvm/3.5/clang.nix b/pkgs/development/compilers/llvm/3.5/clang.nix
index f2f3d15de17..e4cfd83d010 100644
--- a/pkgs/development/compilers/llvm/3.5/clang.nix
+++ b/pkgs/development/compilers/llvm/3.5/clang.nix
@@ -21,6 +21,11 @@ stdenv.mkDerivation {
 
   patches = [ ./clang-purity.patch ];
 
+  postPatch = ''
+    substituteInPlace lib/Driver/Tools.cpp      --replace       "Args.hasArg(options::OPT_nostdlibinc)" "true"
+    substituteInPlace lib/Driver/ToolChains.cpp --replace "DriverArgs.hasArg(options::OPT_nostdlibinc)" "true"
+  '';
+
   # Clang expects to find LLVMgold in its own prefix
   # Clang expects to find sanitizer libraries in its own prefix
   postInstall = ''