diff options
author | Tom Stellard <tstellar@redhat.com> | 2019-01-30 01:13:33 +0000 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2019-01-30 01:13:33 +0000 |
commit | 0a8d71a5ef2c42249186a6b36598d48c4168af2c (patch) | |
tree | c4bbf1ea39798f381869331b1e4ea56b71032f76 | |
parent | cd98f42d0747826062fc3d2d2fad383aedf58dd6 (diff) | |
download | llvm-0a8d71a5ef2c42249186a6b36598d48c4168af2c.tar.gz |
Revert "Rename llvm library from libLLVM-X.Y to libLLVM-X"
We need the soname and symbol versions to includes the minor release
number for 7.1.0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_70@352580 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | cmake/modules/AddLLVM.cmake | 6 | ||||
-rw-r--r-- | docs/ReleaseNotes.rst | 3 | ||||
-rw-r--r-- | tools/llvm-config/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tools/llvm-shlib/simple_version_script.map.in | 2 |
4 files changed, 5 insertions, 8 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index ce2057f803c8..f5b0df9f5a6c 100644 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -83,7 +83,7 @@ function(add_llvm_symbol_exports target_name export_file) # FIXME: Don't write the "local:" line on OpenBSD. # in the export file, also add a linker script to version LLVM symbols (form: LLVM_N.M) add_custom_command(OUTPUT ${native_export_file} - COMMAND echo "LLVM_${LLVM_VERSION_MAJOR} {" > ${native_export_file} + COMMAND echo "LLVM_${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR} {" > ${native_export_file} COMMAND grep -q "[[:alnum:]]" ${export_file} && echo " global:" >> ${native_export_file} || : COMMAND sed -e "s/$/;/" -e "s/^/ /" < ${export_file} >> ${native_export_file} COMMAND echo " local: *;" >> ${native_export_file} @@ -500,7 +500,7 @@ function(llvm_add_library name) PROPERTIES # Since 4.0.0, the ABI version is indicated by the major version SOVERSION ${LLVM_VERSION_MAJOR} - VERSION ${LLVM_VERSION_MAJOR}${LLVM_VERSION_SUFFIX}) + VERSION ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX}) endif() endif() @@ -522,7 +522,7 @@ function(llvm_add_library name) if(${output_name} STREQUAL "output_name-NOTFOUND") set(output_name ${name}) endif() - set(library_name ${output_name}-${LLVM_VERSION_MAJOR}${LLVM_VERSION_SUFFIX}) + set(library_name ${output_name}-${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}${LLVM_VERSION_SUFFIX}) set(api_name ${output_name}-${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX}) set_target_properties(${name} PROPERTIES OUTPUT_NAME ${library_name}) llvm_install_library_symlink(${api_name} ${library_name} SHARED diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst index 158f0978bbbf..2fb253a467bc 100644 --- a/docs/ReleaseNotes.rst +++ b/docs/ReleaseNotes.rst @@ -30,9 +30,6 @@ Non-comprehensive list of changes in this release is available on the Visual Studio Marketplace. The new integration supports Visual Studio 2017. -* Libraries have been renamed from 7.0 to 7. This change also impacts - downstream libraries like lldb. - * The LoopInstSimplify pass (``-loop-instsimplify``) has been removed. * Symbols starting with ``?`` are no longer mangled by LLVM when using the diff --git a/tools/llvm-config/CMakeLists.txt b/tools/llvm-config/CMakeLists.txt index a0bd36c37315..f59402ac4b0a 100644 --- a/tools/llvm-config/CMakeLists.txt +++ b/tools/llvm-config/CMakeLists.txt @@ -37,7 +37,7 @@ set(LLVM_CFLAGS "${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${uppercase_CMAKE_BUILD_TYPE}} set(LLVM_CXXFLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${uppercase_CMAKE_BUILD_TYPE}} ${COMPILE_FLAGS} ${LLVM_DEFINITIONS}") set(LLVM_BUILD_SYSTEM cmake) set(LLVM_HAS_RTTI ${LLVM_CONFIG_HAS_RTTI}) -set(LLVM_DYLIB_VERSION "${LLVM_VERSION_MAJOR}${LLVM_VERSION_SUFFIX}") +set(LLVM_DYLIB_VERSION "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}${LLVM_VERSION_SUFFIX}") set(LLVM_HAS_GLOBAL_ISEL "ON") # Use the C++ link flags, since they should be a superset of C link flags. diff --git a/tools/llvm-shlib/simple_version_script.map.in b/tools/llvm-shlib/simple_version_script.map.in index d58a8b3abcd3..e9515fe78625 100644 --- a/tools/llvm-shlib/simple_version_script.map.in +++ b/tools/llvm-shlib/simple_version_script.map.in @@ -1 +1 @@ -LLVM_@LLVM_VERSION_MAJOR@ { global: *; }; +LLVM_@LLVM_VERSION_MAJOR@.@LLVM_VERSION_MINOR@ { global: *; }; |