Get rid of default search paths in clang 3.5
This commit is contained in:
parent
43cc3a963d
commit
507d65d7d4
@ -21,6 +21,11 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
patches = [ ./clang-purity.patch ];
|
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 LLVMgold in its own prefix
|
||||||
# Clang expects to find sanitizer libraries in its own prefix
|
# Clang expects to find sanitizer libraries in its own prefix
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user