[all-commits] [llvm/llvm-project] 554d8a: [OpenMP] Enable the IDE support for the device run...

Shilei Tian via All-commits all-commits at lists.llvm.org
Fri Apr 21 11:14:01 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 554d8ab63268f1edfff4b59f5613a3a06d4dca4d
      https://github.com/llvm/llvm-project/commit/554d8ab63268f1edfff4b59f5613a3a06d4dca4d
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2023-04-21 (Fri, 21 Apr 2023)

  Changed paths:
    M openmp/libomptarget/DeviceRTL/CMakeLists.txt

  Log Message:
  -----------
  [OpenMP] Enable the IDE support for the device runtime

Currently the device runtime is built as a custom target, which will not be included
in the compile commands. Those language servers using compile commands cannot
handle device runtime correctly.

In this patch, when `CMAKE_EXPORT_COMPILE_COMMANDS` is turned on, dummy
targets that will be excluded from all will be added. Those targets will not be
built or installed if we just simply do `make` or `make install`, but their
compilation will be included in the compile commands.

Reviewed By: jhuber6

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




More information about the All-commits mailing list