substituteInPlace doesn't seem to work properly on this bash, so use sed instead

This commit is contained in:
Dan Peebles 2015-02-08 03:04:41 -05:00
parent 507d65d7d4
commit 19c359ce2a

View file

@ -22,8 +22,8 @@ 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"
sed -i -e 's/Args.hasArg(options::OPT_nostdlibinc)/true/' lib/Driver/Tools.cpp
sed -i -e 's/DriverArgs.hasArg(options::OPT_nostdlibinc)/true/' lib/Driver/ToolChains.cpp
'';
# Clang expects to find LLVMgold in its own prefix