llvm-project/llvm/cmake/modules
Rainer Orth 415b1e872c [CMake] Enable -z defs on Solaris
I wondered why I hadn't seen the link failures in D130571
<https://reviews.llvm.org/D130571> on Solaris/sparcv9 and found that
Solaris, unlike Linux, doesn't use `-Wl,-z,defs` when linking shared
objects.  The three affected shared objects indeed have undefined
references to several 64-bit atomics.

This patch will expose such issues in the future by defaulting to
`-Wl,-z,defs` on Solaris, as recommended in `ld(1)`.

Tested on `sparcv9-sun-solaris2.11` and `amd64-pc-solaris2.11`.

Differential Revision: https://reviews.llvm.org/D130572
2022-07-27 12:33:51 +02:00
..
AddLLVM.cmake [llvm][cmake] Make `install_symlink` workflow work with absolute install dirs 2022-07-26 03:14:46 +00:00
AddLLVMDefinitions.cmake
AddOCaml.cmake Add .cmt and .cmti files for OCaml bindings 2021-10-05 19:36:12 +05:30
AddSphinxTarget.cmake [docs] Remove hard-coded version numbers from sphinx configs 2022-02-01 23:14:12 -08:00
CMakeLists.txt [cmake] Slight fix ups to make robust to the full range of GNUInstallDirs 2022-07-26 14:48:49 +00:00
CheckAtomic.cmake [AIX][cmake] Set atomics related macros when build with xlclang 2021-10-18 09:18:05 +00:00
CheckCompilerVersion.cmake Bump minimum toolchain version 2022-04-08 09:05:33 +02:00
CheckProblematicConfigurations.cmake [CMake] Check for problematic MSVC + /arch:AVX configuration 2022-04-21 09:46:44 +02:00
ChooseMSVCCRT.cmake
CoverageReport.cmake [CMake] Add targets for generating coverage reports 2021-09-03 10:45:55 -05:00
CrossCompile.cmake [CMake] Don't pass CMAKE_C(XX)_COMPILER to the nested NATIVE build when cross compiling 2022-06-22 09:33:50 +03:00
DetermineGCCCompatible.cmake
FindFFI.cmake [CMake] Installable find modules for terminfo and libffi 2021-12-05 14:46:23 -05:00
FindGRPC.cmake [CMake] Fix `FindGRPC.cmake` for setting up gRPC related libraries for macOS+homebrew context 2022-06-15 16:11:37 -07:00
FindLibpfm.cmake
FindOCaml.cmake
FindSphinx.cmake
FindTerminfo.cmake [CMake] Installable find modules for terminfo and libffi 2021-12-05 14:46:23 -05:00
FindZ3.cmake Fix FindZ3.cmake to support static libraries and Windows 2021-07-29 10:55:44 +02:00
GenerateVersionFromVCS.cmake
GetErrcMessages.cmake [CMake] Add explicit return to GetErrcMessages test program 2022-01-19 17:42:56 +00:00
GetHostTriple.cmake [CMake] Make the vendor part of default mingw triples consistent 2021-08-12 13:27:09 +03:00
GetLibraryName.cmake
HandleLLVMOptions.cmake [CMake] Enable -z defs on Solaris 2022-07-27 12:33:51 +02:00
HandleLLVMStdlib.cmake
LLVM-Build.cmake
LLVM-Config.cmake [MCA] Moving the target specific CustomBehaviour impl. from /tools/llvm-mca/ to /lib/Target/. 2021-07-28 11:23:18 -07:00
LLVMCheckLinkerFlag.cmake [llvm][cmake] Shore up `llvm_check_linker_flags`. 2022-07-25 16:02:25 +00:00
LLVMConfig.cmake.in [cmake] Don't export `LLVM_TOOLS_INSTALL_DIR` anymore 2022-07-21 19:04:00 +00:00
LLVMConfigVersion.cmake.in
LLVMDistributionSupport.cmake [cmake] Loosen multi-distribution restrictions 2022-04-13 20:33:28 -07:00
LLVMExternalProjectUtils.cmake cmake fill `cmake_args` when cross-compiling external project with non-clang compiler 2022-06-02 21:02:58 +00:00
LLVMInstallSymlink.cmake [llvm][cmake] Make `install_symlink` workflow work with absolute install dirs 2022-07-26 03:14:46 +00:00
LLVMProcessSources.cmake
TableGen.cmake [cmake] Don't export `LLVM_TOOLS_INSTALL_DIR` anymore 2022-07-21 19:04:00 +00:00
TensorFlowCompile.cmake [mlgo] Don't provide default model URLs 2022-07-11 07:37:14 -07:00
UseLibtool.cmake
VersionFromVCS.cmake
llvm-driver-template.cpp.in [cmake] Export driver template to fix standalone build 2022-06-10 09:50:23 +02:00