[all-commits] [llvm/llvm-project] 1ca174: [clangd][query-driver] Extract target

Aleksandr Platonov via All-commits all-commits at lists.llvm.org
Thu Nov 26 04:09:24 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1ca174b6420a49bcd3331d6f86e237b627163597
      https://github.com/llvm/llvm-project/commit/1ca174b6420a49bcd3331d6f86e237b627163597
  Author: Aleksandr Platonov <platonov.aleksandr at huawei.com>
  Date:   2020-11-26 (Thu, 26 Nov 2020)

  Changed paths:
    M clang-tools-extra/clangd/QueryDriverDatabase.cpp
    M clang-tools-extra/clangd/test/system-include-extractor.test

  Log Message:
  -----------
  [clangd][query-driver] Extract target

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.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D92012




More information about the All-commits mailing list