Get rid of default search paths in clang 3.5

This commit is contained in:
Dan Peebles 2015-02-08 02:12:51 -05:00
parent 43cc3a963d
commit 507d65d7d4

View File

@ -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 = ''