[PATCH] LLVM OpenMP CMake Overhaul

Jonathan Peyton jonathan.l.peyton at intel.com
Tue Jun 30 14:08:01 PDT 2015


Addressing most of Chandler's remaining issues with this third iteration.

- There is no longer a LibompSourceFiles.cmake file.  The files are grabbed inside src/CMakeLists.txt
- The -m32 flag is guarded by if(CMAKE_SIZEOF_VOID_P EQUAL 8) so we only use it when using a x86_64 toolchain to compile i386.
- Removed passing in of _KMP_BUILD_TIME.
- I've gotten the library to build using Unix Makefiles, NMake Makefiles, and NInja on Windows in standalone mode.  There is still one issue when trying to build in a Windows LLVM tree which is that LLVM adds numerous -wXYZ flags by using add_llvm_definitions() which causes the resource compiler (RC.exe) to include them in its command which causes an unknown flag error.


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D10656

Files:
  runtime/CMakeLists.txt
  runtime/cmake/BuildPLRules.cmake
  runtime/cmake/Clang/AsmFlags.cmake
  runtime/cmake/Clang/CFlags.cmake
  runtime/cmake/CommonFlags.cmake
  runtime/cmake/Definitions.cmake
  runtime/cmake/GNU/AsmFlags.cmake
  runtime/cmake/GNU/CFlags.cmake
  runtime/cmake/GNU/FortranFlags.cmake
  runtime/cmake/GetArchitecture.cmake
  runtime/cmake/HelperFunctions.cmake
  runtime/cmake/Intel/AsmFlags.cmake
  runtime/cmake/Intel/CFlags.cmake
  runtime/cmake/Intel/FortranFlags.cmake
  runtime/cmake/LibompCheckFortranFlag.cmake
  runtime/cmake/LibompCheckLinkerFlag.cmake
  runtime/cmake/LibompDefinitions.cmake
  runtime/cmake/LibompExports.cmake
  runtime/cmake/LibompGetArchitecture.cmake
  runtime/cmake/LibompHandleFlags.cmake
  runtime/cmake/LibompMicroTests.cmake
  runtime/cmake/LibompUtils.cmake
  runtime/cmake/MSVC/AsmFlags.cmake
  runtime/cmake/MSVC/CFlags.cmake
  runtime/cmake/MicroTests.cmake
  runtime/cmake/PerlFlags.cmake
  runtime/cmake/SourceFiles.cmake
  runtime/cmake/config-ix.cmake
  runtime/src/CMakeLists.txt

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10656.28812.patch
Type: text/x-patch
Size: 195537 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150630/88c14d4c/attachment.bin>


More information about the llvm-commits mailing list