llvmPackages_{13,git}.clang: build clang-tools-extra

This is already done for previous versions of clang which use
a release tarball, but must be done differently for the more
recent versions which use fetchFromGitHub.

Fixes clang-tools clangd wrapper
This commit is contained in:
Ryan Burns 2021-11-20 14:28:46 -08:00
parent 4dba55aec5
commit dd8ad828de
2 changed files with 4 additions and 0 deletions

View file

@ -44,6 +44,8 @@ let
];
postPatch = ''
(cd tools && ln -s ../../clang-tools-extra extra)
sed -i -e 's/DriverArgs.hasArg(options::OPT_nostdlibinc)/true/' \
-e 's/Args.hasArg(options::OPT_nostdlibinc)/true/' \
lib/Driver/ToolChains/*.cpp

View file

@ -44,6 +44,8 @@ let
];
postPatch = ''
(cd tools && ln -s ../../clang-tools-extra extra)
sed -i -e 's/DriverArgs.hasArg(options::OPT_nostdlibinc)/true/' \
-e 's/Args.hasArg(options::OPT_nostdlibinc)/true/' \
lib/Driver/ToolChains/*.cpp