mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +00:00
substituteInPlace doesn't seem to work properly on this bash, so use sed instead
This commit is contained in:
parent
507d65d7d4
commit
19c359ce2a
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue