[Openmp-dev] [PATCH] [Revised] Initial cmake support

Jack Howarth howarth.mailing.lists at gmail.com
Sat May 31 18:41:55 PDT 2014


   Attached is the revised initial implementation of cmake support for
openmp in llvm.org with the following requested changes implemented.

1) Indentations normalized to 2 spaces.
2) The test for APPLE moved above UNIX in setting OS_GEN and fatal error
condition added.
3) Implemented used CMAKE_SHARED_LIBRARY_SUFFIX to set OMP_SHLIBEXT.
4) Added comment explaining the rational for temporary forcing of…

set(CMAKE_CXX_COMPILER "clang++")

to insure that the build of 'make compiler=clang' is always used,
regardless of the actual system compiler, until the openmp build is wired
into the llvm bootstrap and can be certain to use its clang compilers. Also
note that the warnings added to the COMMON_FLAGS may be compiler-specific.
Tested as before on x86_64-apple-darwin12 against the clang compilers from
Xcode 5.1.1 and on x86_64 Fedora 15 using current clang-omp 3.4.
                  Jack
ps We also probably want to add a fatal error message for unsupported
arches but first I intend to adjust this file to support powerpc as soon as
my clang-omp bootstrap completes on ppc darwin9.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20140531/e3080d0b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: initial_cmake_support_v2.patch
Type: application/octet-stream
Size: 5689 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20140531/e3080d0b/attachment.obj>


More information about the Openmp-dev mailing list