1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/cmake/modules
Andrew Wilkins e690f5b8b2 tools/llvm-config: improve shared library support
Summary:

This is a re-commit of r257003, which was reverted,
along with the fixes from http://reviews.llvm.org/D15986.

r252532 added support for reporting the monolithic library
when LLVM_BUILD_LLVM_DYLIB is used. This would only be done
if the individual components were not found, and the dynamic
library is found.

This diff extends this as follows:
 - If LLVM_LINK_LLVM_DYLIB is set, then prefer the shared
   library, even if all component libraries exist.
 - Two flags, --link-shared and --link-static are introduced
   to provide explicit guidance. If --link-shared is passed
   and the shared library does not exist, an error results.

Additionally, changed the expected shared library names from
(e.g.) LLVM-3.8.0 to LLVM-3.8. The former exists only in an
installation (and then only in CMake builds I think?), and not
in the build tree; this breaks usage of llvm-config during
builds, e.g. by llvm-go.

Reviewers: DiamondLovesYou, beanz

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D15986

llvm-svn: 258283
2016-01-20 04:03:09 +00:00
..
AddLLVM.cmake tools/llvm-config: improve shared library support 2016-01-20 04:03:09 +00:00
AddLLVMDefinitions.cmake cmake: Avoid leading space in LLVM_DEFINITIONS. 2015-10-12 10:42:03 +00:00
AddOCaml.cmake [cmake] [OCaml] Make ocamldoc targets depend on output files 2015-06-07 19:22:22 +00:00
AddSphinxTarget.cmake
CheckAtomic.cmake Repair cmake libatomic check. 2015-06-16 14:00:01 +00:00
ChooseMSVCCRT.cmake
CMakeLists.txt [CMake] Need to install VersionFromVCS.cmake as part of LLVM's CMake modules 2016-01-15 17:49:46 +00:00
CrossCompile.cmake [CMake] Flag recursive cmake invocations for cross-compile 2015-09-09 14:57:06 +00:00
DetermineGCCCompatible.cmake [CMake] Move the setting of LLVM_COMPILER_IS_GCC_COMPATIBLE to a separate file 2015-09-29 14:33:58 +00:00
FindOCaml.cmake
FindSphinx.cmake
GetHostTriple.cmake
GetSVN.cmake
HandleLLVMOptions.cmake Reenable -Wexpansion-to-defined. 2016-01-19 22:46:33 +00:00
HandleLLVMStdlib.cmake [CMake] Move the setting of LLVM_COMPILER_IS_GCC_COMPATIBLE to a separate file 2015-09-29 14:33:58 +00:00
LLVM-Config.cmake [cmake] rework LLVM_LINK_LLVM_DYLIB option handling 2015-09-05 08:27:33 +00:00
LLVMConfig.cmake.in [CMake] Adjust the variables set by LLVMConfig.cmake 2015-09-30 10:34:06 +00:00
LLVMConfigVersion.cmake.in
LLVMExternalProjectUtils.cmake [CMake] Removing an unnecessary layer of variable indirection 2015-12-03 19:47:04 +00:00
LLVMInstallSymlink.cmake [CMake] Cleaning up and generalizing the LLVMInstallSymlink script so that it can be used for libraries too. 2015-10-16 23:17:13 +00:00
LLVMProcessSources.cmake Teach llvm_add_library() to find include dirs. 2015-02-10 05:04:37 +00:00
Makefile [autoconf] Install VersionFromVCS.cmake, too. clang/CMakeLists.txt requires it. 2016-01-15 02:13:04 +00:00
TableGen.cmake [CMake] Fixing dependency issue with parallel make when building with LLVM_OPTIMIZED_TABLEGEN. 2015-10-23 19:48:17 +00:00
VersionFromVCS.cmake [cmake] Fix add_version_info_from_vcs git svn version bug. 2016-01-19 17:36:02 +00:00