This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Fixing llvm-omp-device-info compilation with runtimes
ClosedPublic

Authored by josemonsalve2 on Jul 30 2021, 9:30 AM.

Details

Summary

When using -DLLVM_ENABLED_RUNTIMES instead of -DLLVM_ENABLED_PROJECTS
the llvm-omp-device-info tool is not compiled or installed.
In general, no llvm tool would be build on runtimes, because the
-DLLVM_BUILD_TOOLS flag is removed by the way runtimes compilation calls
cmake again.

This patch is simple. Just forward the value of this flag to the
runtime cmake command.

I'm also removing an unnecessary comment in the compilation of the tool

Diff Detail

Event Timeline

josemonsalve2 created this revision.Jul 30 2021, 9:30 AM
josemonsalve2 requested review of this revision.Jul 30 2021, 9:30 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 30 2021, 9:30 AM
This revision is now accepted and ready to land.Jul 30 2021, 10:25 AM
openmp/libomptarget/tools/deviceinfo/CMakeLists.txt
14

Thanks for deleting this message in passing