summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-08-14 03:34:49 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-08-14 03:34:49 +0000
commitcb065a671300f8cea4a4f5316a1c4d9f7b4c7072 (patch)
tree6d1dae3fb6df6c1df4d20b72d71f904ab9ca8464 /llvm
parentd8dd97c0a278ad685efaabc52f14acf4fd1bae6e (diff)
downloadbcm5719-llvm-cb065a671300f8cea4a4f5316a1c4d9f7b4c7072.tar.gz
bcm5719-llvm-cb065a671300f8cea4a4f5316a1c4d9f7b4c7072.zip
[CMake] add_llvm_library: Specify explicit suffix .imp to import library to avoid a warning between profile_rt-static and profile_rt-shared with lib/profile_rt.lib.
FIXME: It seems MS version of profile_rt.dll doesn't contain any export symbols. llvm-svn: 188351
Diffstat (limited to 'llvm')
-rw-r--r--llvm/cmake/modules/AddLLVM.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index 094969c8f4f..24afeea9d18 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -12,6 +12,11 @@ macro(add_llvm_library name)
if( BUILD_SHARED_LIBS )
llvm_config( ${name} ${LLVM_LINK_COMPONENTS} )
+ if (MSVC)
+ set_target_properties(${name}
+ PROPERTIES
+ IMPORT_SUFFIX ".imp")
+ endif ()
endif()
# Ensure that the system libraries always comes last on the
OpenPOWER on IntegriCloud