From 507d65d7d4f195ecd5b08ee5d24f6e96924f7b1c Mon Sep 17 00:00:00 2001 From: Dan Peebles Date: Sun, 8 Feb 2015 02:12:51 -0500 Subject: Get rid of default search paths in clang 3.5 --- pkgs/development/compilers/llvm/3.5/clang.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkgs') diff --git a/pkgs/development/compilers/llvm/3.5/clang.nix b/pkgs/development/compilers/llvm/3.5/clang.nix index f2f3d15de17d..e4cfd83d010e 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 = '' -- cgit 1.4.1