[PATCH] D92012: [clangd][query-driver] Extract target
Aleksandr Platonov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 24 01:27:05 PST 2020
ArcsinX created this revision.
Herald added subscribers: cfe-commits, usaxena95, mstorsjo, kadircet, arphaman.
Herald added a project: clang.
ArcsinX requested review of this revision.
Herald added subscribers: MaskRay, ilya-biryukov.
In some cases system includes extractions is not enough, we also need target specific defines.
The problems appears when clang default target is not the same as toolchain's one (GCC cross-compiler, MinGW on Windows).
After this patch `query-driver` also extracts target and adds `-target=<extracted target>` compile option.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D92012
Files:
clang-tools-extra/clangd/QueryDriverDatabase.cpp
clang-tools-extra/clangd/test/system-include-extractor.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92012.307277.patch
Type: text/x-patch
Size: 6341 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201124/d7277d0d/attachment.bin>
More information about the cfe-commits
mailing list