[Openmp-dev] Integrate libiomp CMake into LLVM CMake build system.

Peyton, Jonathan L jonathan.l.peyton at intel.com
Wed May 6 09:09:51 PDT 2015


Technically no, the llvm/projects/CMakeLists.txt file has logic to include any project that has a top level CMakeLists.txt file.  So automatic building will still build fine.
I thought we could commit this separately since it changes the main llvm repo, and the automatic build still works without it.

The benefits of having the logic in the llvm/projects/CMakeLists.txt file include:
1) -DLLVM_EXTERNAL_OPENMP_SOURCE_DIR=/path/to/openmp is an available cmake option.
2) -DLLVM_EXTERNAL_OPENMP_BUILD=[on|off] is an available cmake option.
3) if -DLLVM_BUILD_RUNTIME=off, then openmp won’t build (neither will compiler-rt nor libcxx)

I assume we want this in there so I will create a separate patch and send it out for the llvm people to review.

-- Johnny

From: openmp-dev-bounces at cs.uiuc.edu [mailto:openmp-dev-bounces at cs.uiuc.edu] On Behalf Of Jack Howarth
Sent: Tuesday, May 5, 2015 3:30 PM
To: openmp-dev at dcs-maillist2.engr.illinois.edu
Subject: Re: [Openmp-dev] Integrate libiomp CMake into LLVM CMake build system.

     Doesn't the commit of....

------------------------------------------------------------------------
r236534 | achurbanov | 2015-05-05 16:02:52 -0400 (Tue, 05 May 2015) | 13 lines

Integrate libiomp CMake into LLVM CMake build system.

This patch integrates the libiomp CMake build system into the LLVM CMake build
system so that users can checkout libiomp into the projects directory of llvm
and build llvm,clang, and libiomp all together.  These changes specifically
introduce a new install target which will put libraries and headers into the
correct locations when either a standalone build or part of llvm.
The copy_recipe() method has been removed in favor of the POST_BUILD method
to move headers into the exports subdirectory.  And lastly, the MicroTests.cmake
file was refactored which led to simpler target dependencies and a new target,
make libiomp-micro-tests, which performs the 5 small tests (test-relo,
test-touch, etc.) when called.

also require that the proposed change in llvm also be committed as well?

http://lists.cs.uiuc.edu/pipermail/openmp-dev/2015-April/000502.html

         Jack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20150506/eb7657c7/attachment.html>


More information about the Openmp-dev mailing list