[clang-tools-extra] [clangd] Forward --target to system include extraction (PR #65824)
Nathan Ridge via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 10 01:00:41 PDT 2023
================
@@ -87,12 +87,13 @@ struct DriverArgs {
std::string Lang;
std::string Sysroot;
std::string ISysroot;
+ std::string Target;
bool operator==(const DriverArgs &RHS) const {
return std::tie(Driver, StandardIncludes, StandardCXXIncludes, Lang,
- Sysroot, ISysroot) ==
+ Sysroot, ISysroot, Target) ==
std::tie(RHS.Driver, RHS.StandardIncludes, RHS.StandardCXXIncludes,
- RHS.Lang, RHS.Sysroot, ISysroot);
+ RHS.Lang, RHS.Sysroot, ISysroot, Target);
----------------
HighCommander4 wrote:
This should be `RHS.Target` (and there is a pre-existing bug here, the previous argument should be `RHS.ISysroot`, might as well fix that while we're at it)
https://github.com/llvm/llvm-project/pull/65824
More information about the cfe-commits
mailing list