diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-06-01 03:05:13 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-06-01 03:05:13 +0000 |
commit | 227e1aeb1306e1d2c184ca460b11178794406a65 (patch) | |
tree | 3c8d2f1fe5d3d8e1be52c224a19c04ba9db6ea57 /openmp/runtime/cmake/BuildPLRules.cmake | |
parent | 8fd9fb98576a003e873846858f3c653cc8594b7d (diff) | |
download | bcm5719-llvm-227e1aeb1306e1d2c184ca460b11178794406a65.tar.gz bcm5719-llvm-227e1aeb1306e1d2c184ca460b11178794406a65.zip |
Apply name change to CMake build system.
This change has the CMake build system create a dynamic library named
libomp instead of libiomp5. Also any reference to libiomp is replaced
with libomp. One can still use the LIBOMP_LIB_NAME variable to enforce
a different name, and everything will still work as expected. An important
note is that libiomp5 and libgomp symlinks are created at install time when
on Unix systems. On Windows, copies are created with the legacy names.
llvm-svn: 238715
Diffstat (limited to 'openmp/runtime/cmake/BuildPLRules.cmake')
-rw-r--r-- | openmp/runtime/cmake/BuildPLRules.cmake | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/openmp/runtime/cmake/BuildPLRules.cmake b/openmp/runtime/cmake/BuildPLRules.cmake index d8d772ce5b1..6565c5c700b 100644 --- a/openmp/runtime/cmake/BuildPLRules.cmake +++ b/openmp/runtime/cmake/BuildPLRules.cmake @@ -11,31 +11,31 @@ ############################################################################### # This file contains additional build rules that correspond to build.pl's rules. -# Building libiomp5.dbg is linux only, Windows will build libiomp5md.dll.pdb +# Building libomp.dbg is linux only, Windows will build libompmd.dll.pdb # This file is only active if ${LIBOMP_USE_BUILDPL_RULES} is true. # # ######### BUILD DEPENDENCIES ########## # -# exports/.../libiomp5.so exports/.../libiomp5.dbg +# exports/.../libomp.so exports/.../libomp.dbg # [copy] | | [copy] # | | -# ./libiomp5.so ./libiomp5.dbg +# ./libomp.so ./libomp.dbg # [copy] / OR \____________ [copy] | [copy] # / \ | -# ./unstripped/libiomp5.so ./stripped/libiomp5.so ./unstripped/libiomp5.dbg +# ./unstripped/libomp.so ./stripped/libomp.so ./unstripped/libomp.dbg # / \ / # / [linking] \[strip] /[strip and store] # / \ / -# ${objs} (maybe compiled with -g) ./unstripped/libiomp5.so (library with debug info in it) +# ${objs} (maybe compiled with -g) ./unstripped/libomp.so (library with debug info in it) # | # | [linking] # | # ${objs} (always compiled with -g) # -# For icc Linux builds, we always include debugging information via -g and create libiomp5.dbg +# For icc Linux builds, we always include debugging information via -g and create libomp.dbg # so that Intel(R) Parallel Amplifier can use the .dbg file. -# For icc Windows builds, we always include debugging information via -Zi and create libiomp5.pdb -# in a fashion similar to libiomp5.dbg +# For icc Windows builds, we always include debugging information via -Zi and create libomp.pdb +# in a fashion similar to libomp.dbg # For icc Mac builds, we don't bother with the debug info. # We build library in unstripped directory @@ -77,7 +77,7 @@ if(NOT "${dbg_file}" STREQUAL "") add_custom_command( OUTPUT ${build_dir}/unstripped/${dbg_file} COMMAND ${CMAKE_OBJCOPY} --only-keep-debug ${build_dir}/unstripped/${lib_file} ${build_dir}/unstripped/${dbg_file} - DEPENDS iomp5 + DEPENDS omp ) else() @@ -89,21 +89,21 @@ endif() # Windows specific command to move around debug info files post-build if(NOT "${pdb_file}" STREQUAL "" AND ${RELEASE_BUILD}) - add_custom_command(TARGET iomp5 POST_BUILD + add_custom_command(TARGET omp POST_BUILD COMMAND ${CMAKE_COMMAND} -E rename ${pdb_file} ${pdb_file}.nonstripped COMMAND ${CMAKE_COMMAND} -E rename ${pdb_file}.stripped ${pdb_file} ) endif() -# Have icc build libiomp5 in unstripped directory -set_target_properties(iomp5 PROPERTIES +# Have icc build libomp in unstripped directory +set_target_properties(omp PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${build_dir}/unstripped" RUNTIME_OUTPUT_DIRECTORY "${build_dir}/unstripped" ARCHIVE_OUTPUT_DIRECTORY "${build_dir}" ) # Always use RelWithDebInfo flags for Release builds when using the build.pl's build rules (use -g -O2 instead of just -O3) -# The debug info is then stripped out at the end of the build and put into libiomp5.dbg for Linux +# The debug info is then stripped out at the end of the build and put into libomp.dbg for Linux if(${RELEASE_BUILD} AND NOT ${MAC}) set(CMAKE_C_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELWITHDEBINFO} ) set(CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELWITHDEBINFO}) |