This is an archive of the discontinued LLVM Phabricator instance.

[libomptarget]Add a trap for external omptarget from LLVM
ClosedPublic

Authored by ye-luo on Jun 18 2022, 6:00 PM.

Details

Summary

Old LLVM installation may expose its internal omptarget CMake target when being used by find_package(LLVM) and caused issues in the CMake of libomptarget that is being built. Trap the issue early.

Diff Detail

Event Timeline

ye-luo created this revision.Jun 18 2022, 6:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 18 2022, 6:00 PM
Herald added a subscriber: mgorny. · View Herald Transcript
ye-luo requested review of this revision.Jun 18 2022, 6:00 PM
Herald added a project: Restricted Project. · View Herald Transcript
ye-luo retitled this revision from Add trap for external omptarget. to [libomptarget]Add a trap for external omptarget from LLVM.Jun 18 2022, 6:03 PM
ye-luo edited the summary of this revision. (Show Details)
ye-luo added a reviewer: tianshilei1992.
tianshilei1992 accepted this revision.Jun 18 2022, 7:05 PM

LGTM

openmp/libomptarget/DeviceRTL/CMakeLists.txt
36

This two lines can go in a NFC patch w/o review.

This revision is now accepted and ready to land.Jun 18 2022, 7:05 PM
This revision was landed with ongoing or failed builds.Jun 18 2022, 7:10 PM
This revision was automatically updated to reflect the committed changes.