mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 10:50:16 -06:00
Linker configuration: introduce a new architecture
A new set of files are dedicated to linker configuration. This set of files enable a fine-tuned configuration based of the linker type as identified during compiler detection. Fixes: #25360
This commit is contained in:
@@ -120,13 +120,4 @@ macro(_cmake_common_language_platform_flags lang)
|
||||
${CMAKE_${type}_LINK_DYNAMIC_C_FLAGS})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
if(CMAKE_EXECUTABLE_FORMAT STREQUAL "ELF")
|
||||
if(NOT DEFINED CMAKE_${lang}_LINK_WHAT_YOU_USE_FLAG)
|
||||
set(CMAKE_${lang}_LINK_WHAT_YOU_USE_FLAG "LINKER:--no-as-needed")
|
||||
endif()
|
||||
if(NOT DEFINED CMAKE_LINK_WHAT_YOU_USE_CHECK)
|
||||
set(CMAKE_LINK_WHAT_YOU_USE_CHECK ldd -u -r)
|
||||
endif()
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
@@ -108,15 +108,6 @@ else()
|
||||
endif()
|
||||
unset(__SWIFT_COMP_MODE_CMP0157)
|
||||
|
||||
if(CMAKE_EXECUTABLE_FORMAT STREQUAL "ELF")
|
||||
if(NOT DEFINED CMAKE_Swift_LINK_WHAT_YOU_USE_FLAG)
|
||||
set(CMAKE_Swift_LINK_WHAT_YOU_USE_FLAG "LINKER:--no-as-needed")
|
||||
endif()
|
||||
if(NOT DEFINED CMAKE_LINK_WHAT_YOU_USE_CHECK)
|
||||
set(CMAKE_LINK_WHAT_YOU_USE_CHECK ldd -u -r)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
cmake_initialize_per_config_variable(CMAKE_Swift_FLAGS "Swift Compiler Flags")
|
||||
|
||||
if(NOT CMAKE_Swift_NUM_THREADS MATCHES "^[0-9]+$")
|
||||
|
||||
@@ -52,60 +52,6 @@ macro(__compiler_gnu lang)
|
||||
set(CMAKE_DEPFILE_FLAGS_${lang} "-MD -MT <DEP_TARGET> -MF <DEP_FILE>")
|
||||
endif()
|
||||
|
||||
# define flags for linker depfile generation
|
||||
set(CMAKE_${lang}_LINKER_DEPFILE_FLAGS "LINKER:--dependency-file,<DEP_FILE>")
|
||||
set(CMAKE_${lang}_LINKER_DEPFILE_FORMAT gcc)
|
||||
|
||||
if(NOT DEFINED CMAKE_${lang}_LINKER_DEPFILE_SUPPORTED)
|
||||
## Ensure ninja tool is recent enough...
|
||||
if(CMAKE_GENERATOR MATCHES "^Ninja")
|
||||
# Ninja 1.10 or upper is required
|
||||
execute_process(COMMAND "${CMAKE_MAKE_PROGRAM}" --version
|
||||
OUTPUT_VARIABLE _ninja_version
|
||||
ERROR_VARIABLE _ninja_version)
|
||||
if (_ninja_version MATCHES "[0-9]+(\\.[0-9]+)*")
|
||||
set (_ninja_version "${CMAKE_MATCH_0}")
|
||||
endif()
|
||||
if (_ninja_version VERSION_LESS "1.10")
|
||||
set(CMAKE_${lang}_LINKER_DEPFILE_SUPPORTED FALSE)
|
||||
endif()
|
||||
unset(_ninja_version)
|
||||
endif()
|
||||
|
||||
if (NOT DEFINED CMAKE_${lang}_LINKER_DEPFILE_SUPPORTED)
|
||||
## check if this feature is supported by the linker
|
||||
if (CMAKE_${lang}_COMPILER_LINKER AND CMAKE_${lang}_COMPILER_LINKER_ID MATCHES "GNU|LLD")
|
||||
execute_process(COMMAND "${CMAKE_${lang}_COMPILER_LINKER}" --help
|
||||
OUTPUT_VARIABLE _linker_capabilities
|
||||
ERROR_VARIABLE _linker_capabilities)
|
||||
if(_linker_capabilities MATCHES "--dependency-file")
|
||||
set(CMAKE_${lang}_LINKER_DEPFILE_SUPPORTED TRUE)
|
||||
else()
|
||||
set(CMAKE_${lang}_LINKER_DEPFILE_SUPPORTED FALSE)
|
||||
endif()
|
||||
unset(_linker_capabilities)
|
||||
else()
|
||||
set(CMAKE_${lang}_LINKER_DEPFILE_SUPPORTED FALSE)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
if (CMAKE_${lang}_LINKER_DEPFILE_SUPPORTED)
|
||||
set(CMAKE_${lang}_LINK_DEPENDS_USE_LINKER TRUE)
|
||||
else()
|
||||
set(CMAKE_${lang}_LINK_DEPENDS_USE_LINKER FALSE)
|
||||
endif()
|
||||
|
||||
# Due to GNU binutils ld bug when LTO is enabled (see GNU bug
|
||||
# `30568 <https://sourceware.org/bugzilla/show_bug.cgi?id=30568>`_),
|
||||
# deactivate this feature if the version is less than 2.41.
|
||||
# For now, all known versions of gold linker have also this bug.
|
||||
if (CMAKE_${lang}_COMPILER_LINKER_ID
|
||||
AND (CMAKE_${lang}_COMPILER_LINKER_ID STREQUAL "GNUgold"
|
||||
OR (CMAKE_${lang}_COMPILER_LINKER_ID STREQUAL "GNU"
|
||||
AND CMAKE_${lang}_COMPILER_LINKER_VERSION VERSION_LESS "2.41")))
|
||||
set(CMAKE_${lang}_LINK_DEPENDS_USE_LINKER FALSE)
|
||||
endif()
|
||||
|
||||
# Initial configuration flags.
|
||||
string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
|
||||
string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g")
|
||||
|
||||
10
Modules/Internal/CMakeASM-ATTLinkerInformation.cmake
Normal file
10
Modules/Internal/CMakeASM-ATTLinkerInformation.cmake
Normal file
@@ -0,0 +1,10 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# support for AT&T syntax assemblers, e.g. GNU as
|
||||
|
||||
# Load the generic ASMInformation file:
|
||||
set(ASM_DIALECT "-ATT")
|
||||
include(Internal/CMakeASMLinkerInformation)
|
||||
set(ASM_DIALECT)
|
||||
35
Modules/Internal/CMakeASMLinkerInformation.cmake
Normal file
35
Modules/Internal/CMakeASMLinkerInformation.cmake
Normal file
@@ -0,0 +1,35 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# This file sets the basic flags for the linker used by the C compiler in CMake.
|
||||
# It also loads the available platform file for the system-linker
|
||||
# if it exists.
|
||||
# It also loads a system - linker - processor (or target hardware)
|
||||
# specific file, which is mainly useful for crosscompiling and embedded systems.
|
||||
|
||||
set(_INCLUDED_FILE 0)
|
||||
|
||||
# Load linker-specific information.
|
||||
if(CMAKE_ASM${ASM_DIALECT}_COMPILER_LINKER_ID)
|
||||
include(Linker/${CMAKE_ASM${ASM_DIALECT}_COMPILER_LINKER_ID}-ASM${ASM_DIALECT} OPTIONAL)
|
||||
endif()
|
||||
|
||||
# load a hardware specific file, mostly useful for embedded compilers
|
||||
if(CMAKE_SYSTEM_PROCESSOR AND CMAKE_ASM${ASM_DIALECT}_COMPILER_LINKER_ID)
|
||||
include(Platform/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_ASM${ASM_DIALECT}_COMPILER_LINKER_ID}-ASM${ASM_DIALECT}-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
endif()
|
||||
|
||||
|
||||
# load the system- and linker specific files
|
||||
if(CMAKE_ASM${ASM_DIALECT}_COMPILER_LINKER_ID)
|
||||
include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_ASM${ASM_DIALECT}_COMPILER_LINKER_ID}-ASM${ASM_DIALECT}
|
||||
OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
endif()
|
||||
|
||||
# We specify the platform linker information in the system file.
|
||||
if (NOT _INCLUDED_FILE)
|
||||
include(Platform/Linker/${CMAKE_SYSTEM_NAME}-ASM${ASM_DIALECT} OPTIONAL)
|
||||
endif ()
|
||||
|
||||
set(CMAKE_ASM${ASM_DIALECT}_LINKER_INFORMATION_LOADED 1)
|
||||
10
Modules/Internal/CMakeASM_MARMASMLinkerInformation.cmake
Normal file
10
Modules/Internal/CMakeASM_MARMASMLinkerInformation.cmake
Normal file
@@ -0,0 +1,10 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# support for the MS assembler, masm and masm64
|
||||
|
||||
# Load the generic ASMInformation file:
|
||||
set(ASM_DIALECT "_MASM")
|
||||
include(Internal/CMakeASMLinkerInformation)
|
||||
set(ASM_DIALECT)
|
||||
10
Modules/Internal/CMakeASM_MASMLinkerInformation.cmake
Normal file
10
Modules/Internal/CMakeASM_MASMLinkerInformation.cmake
Normal file
@@ -0,0 +1,10 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# support for the MS assembler, masm and masm64
|
||||
|
||||
# Load the generic ASMInformation file:
|
||||
set(ASM_DIALECT "_MASM")
|
||||
include(Internal/CMakeASMLinkerInformation)
|
||||
set(ASM_DIALECT)
|
||||
10
Modules/Internal/CMakeASM_NASMLinkerInformation.cmake
Normal file
10
Modules/Internal/CMakeASM_NASMLinkerInformation.cmake
Normal file
@@ -0,0 +1,10 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# support for the nasm assembler
|
||||
|
||||
# Load the generic ASMInformation file:
|
||||
set(ASM_DIALECT "_NASM")
|
||||
include(Internal/CMakeASMLinkerInformation)
|
||||
set(ASM_DIALECT)
|
||||
39
Modules/Internal/CMakeCLinkerInformation.cmake
Normal file
39
Modules/Internal/CMakeCLinkerInformation.cmake
Normal file
@@ -0,0 +1,39 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# This file sets the basic flags for the linker used by the C compiler in CMake.
|
||||
# It also loads the available platform file for the system-linker
|
||||
# if it exists.
|
||||
# It also loads a system - linker - processor (or target hardware)
|
||||
# specific file, which is mainly useful for crosscompiling and embedded systems.
|
||||
|
||||
include(Internal/CMakeCommonLinkerInformation)
|
||||
|
||||
set(_INCLUDED_FILE 0)
|
||||
|
||||
# Load linker-specific information.
|
||||
if(CMAKE_C_COMPILER_LINKER_ID)
|
||||
include(Linker/${CMAKE_C_COMPILER_LINKER_ID}-C OPTIONAL)
|
||||
endif()
|
||||
|
||||
# load a hardware specific file, mostly useful for embedded compilers
|
||||
if(CMAKE_SYSTEM_PROCESSOR AND CMAKE_C_COMPILER_LINKER_ID)
|
||||
include(Platform/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_C_COMPILER_LINKER_ID}-C-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
endif()
|
||||
|
||||
|
||||
# load the system- and linker specific files
|
||||
if(CMAKE_C_COMPILER_LINKER_ID)
|
||||
include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_C_COMPILER_LINKER_ID}-C
|
||||
OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
endif()
|
||||
|
||||
# We specify the platform linker information in the system file.
|
||||
if (NOT _INCLUDED_FILE)
|
||||
include(Platform/Linker/${CMAKE_SYSTEM_NAME}-C OPTIONAL)
|
||||
endif ()
|
||||
|
||||
_cmake_common_linker_platform_flags(C)
|
||||
|
||||
set(CMAKE_C_LINKER_INFORMATION_LOADED 1)
|
||||
8
Modules/Internal/CMakeCSharpLinkerInformation.cmake
Normal file
8
Modules/Internal/CMakeCSharpLinkerInformation.cmake
Normal file
@@ -0,0 +1,8 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# This file sets the basic flags for the linker used by the CSharp compiler in CMake.
|
||||
# For now, nothing to define
|
||||
|
||||
set(CMAKE_CSharp_LINKER_INFORMATION_LOADED 1)
|
||||
39
Modules/Internal/CMakeCUDALinkerInformation.cmake
Normal file
39
Modules/Internal/CMakeCUDALinkerInformation.cmake
Normal file
@@ -0,0 +1,39 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# This file sets the basic flags for the linker used by the C compiler in CMake.
|
||||
# It also loads the available platform file for the system-linker
|
||||
# if it exists.
|
||||
# It also loads a system - linker - processor (or target hardware)
|
||||
# specific file, which is mainly useful for crosscompiling and embedded systems.
|
||||
|
||||
include(Internal/CMakeCommonLinkerInformation)
|
||||
|
||||
set(_INCLUDED_FILE 0)
|
||||
|
||||
# Load linker-specific information.
|
||||
if(CMAKE_CUDA_COMPILER_LINKER_ID)
|
||||
include(Linker/${CMAKE_CUDA_COMPILER_LINKER_ID}-CUDA OPTIONAL)
|
||||
endif()
|
||||
|
||||
# load a hardware specific file, mostly useful for embedded compilers
|
||||
if(CMAKE_SYSTEM_PROCESSOR AND CMAKE_CUDA_COMPILER_LINKER_ID)
|
||||
include(Platform/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_CUDA_COMPILER_LINKER_ID}-CUDA-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
endif()
|
||||
|
||||
|
||||
# load the system- and linker specific files
|
||||
if(CMAKE_CUDA_COMPILER_LINKER_ID)
|
||||
include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_CUDA_COMPILER_LINKER_ID}-CUDA
|
||||
OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
endif()
|
||||
|
||||
# We specify the platform linker information in the system file.
|
||||
if (NOT _INCLUDED_FILE)
|
||||
include(Platform/Linker/${CMAKE_SYSTEM_NAME}-CUDA OPTIONAL)
|
||||
endif ()
|
||||
|
||||
_cmake_common_linker_platform_flags(CUDA)
|
||||
|
||||
set(CMAKE_CUDA_LINKER_INFORMATION_LOADED 1)
|
||||
39
Modules/Internal/CMakeCXXLinkerInformation.cmake
Normal file
39
Modules/Internal/CMakeCXXLinkerInformation.cmake
Normal file
@@ -0,0 +1,39 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# This file sets the basic flags for the linker used by the C++ compiler in CMake.
|
||||
# It also loads the available platform file for the system-linker
|
||||
# if it exists.
|
||||
# It also loads a system - linker - processor (or target hardware)
|
||||
# specific file, which is mainly useful for crosscompiling and embedded systems.
|
||||
|
||||
include(Internal/CMakeCommonLinkerInformation)
|
||||
|
||||
set(_INCLUDED_FILE 0)
|
||||
|
||||
# Load linker-specific information.
|
||||
if(CMAKE_CXX_COMPILER_LINKER_ID)
|
||||
include(Linker/${CMAKE_CXX_COMPILER_LINKER_ID}-CXX OPTIONAL)
|
||||
endif()
|
||||
|
||||
# load a hardware specific file, mostly useful for embedded compilers
|
||||
if(CMAKE_SYSTEM_PROCESSOR AND CMAKE_CXX_COMPILER_LINKER_ID)
|
||||
include(Platform/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_CXX_COMPILER_LINKER_ID}-CXX-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
endif()
|
||||
|
||||
|
||||
# load the system- and linker specific files
|
||||
if(CMAKE_CXX_COMPILER_LINKER_ID)
|
||||
include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_CXX_COMPILER_LINKER_ID}-CXX
|
||||
OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
endif()
|
||||
|
||||
# We specify the platform linker information in the system file.
|
||||
if (NOT _INCLUDED_FILE)
|
||||
include(Platform/Linker/${CMAKE_SYSTEM_NAME}-CXX OPTIONAL)
|
||||
endif ()
|
||||
|
||||
_cmake_common_linker_platform_flags(CXX)
|
||||
|
||||
set(CMAKE_CXX_LINKER_INFORMATION_LOADED 1)
|
||||
18
Modules/Internal/CMakeCommonLinkerInformation.cmake
Normal file
18
Modules/Internal/CMakeCommonLinkerInformation.cmake
Normal file
@@ -0,0 +1,18 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# This file contains common code blocks used by all the linker information
|
||||
# files
|
||||
|
||||
macro(_cmake_common_linker_platform_flags lang)
|
||||
# Define configuration for LINK_WHAT_YOU_USE feature
|
||||
if(CMAKE_EXECUTABLE_FORMAT STREQUAL "ELF")
|
||||
if(NOT DEFINED CMAKE_${lang}_LINK_WHAT_YOU_USE_FLAG)
|
||||
set(CMAKE_${lang}_LINK_WHAT_YOU_USE_FLAG "LINKER:--no-as-needed")
|
||||
endif()
|
||||
if(NOT DEFINED CMAKE_LINK_WHAT_YOU_USE_CHECK)
|
||||
set(CMAKE_LINK_WHAT_YOU_USE_CHECK ldd -u -r)
|
||||
endif()
|
||||
endif()
|
||||
endmacro ()
|
||||
39
Modules/Internal/CMakeFortranLinkerInformation.cmake
Normal file
39
Modules/Internal/CMakeFortranLinkerInformation.cmake
Normal file
@@ -0,0 +1,39 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# This file sets the basic flags for the linker used by the C compiler in CMake.
|
||||
# It also loads the available platform file for the system-linker
|
||||
# if it exists.
|
||||
# It also loads a system - linker - processor (or target hardware)
|
||||
# specific file, which is mainly useful for crosscompiling and embedded systems.
|
||||
|
||||
include(Internal/CMakeCommonLinkerInformation)
|
||||
|
||||
set(_INCLUDED_FILE 0)
|
||||
|
||||
# Load linker-specific information.
|
||||
if(CMAKE_Fortran_COMPILER_LINKER_ID)
|
||||
include(Linker/${CMAKE_Fortran_COMPILER_LINKER_ID}-Fortran OPTIONAL)
|
||||
endif()
|
||||
|
||||
# load a hardware specific file, mostly useful for embedded compilers
|
||||
if(CMAKE_SYSTEM_PROCESSOR AND CMAKE_Fortran_COMPILER_LINKER_ID)
|
||||
include(Platform/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_Fortran_COMPILER_LINKER_ID}-Fortran-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
endif()
|
||||
|
||||
|
||||
# load the system- and linker specific files
|
||||
if(CMAKE_Fortran_COMPILER_LINKER_ID)
|
||||
include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_Fortran_COMPILER_LINKER_ID}-Fortran
|
||||
OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
endif()
|
||||
|
||||
# We specify the platform linker information in the system file.
|
||||
if (NOT _INCLUDED_FILE)
|
||||
include(Platform/Linker/${CMAKE_SYSTEM_NAME}-Fortran OPTIONAL)
|
||||
endif ()
|
||||
|
||||
_cmake_common_linker_platform_flags(Fortran)
|
||||
|
||||
set(CMAKE_Fortran_LINKER_INFORMATION_LOADED 1)
|
||||
39
Modules/Internal/CMakeHIPLinkerInformation.cmake
Normal file
39
Modules/Internal/CMakeHIPLinkerInformation.cmake
Normal file
@@ -0,0 +1,39 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# This file sets the basic flags for the linker used by the C compiler in CMake.
|
||||
# It also loads the available platform file for the system-linker
|
||||
# if it exists.
|
||||
# It also loads a system - linker - processor (or target hardware)
|
||||
# specific file, which is mainly useful for crosscompiling and embedded systems.
|
||||
|
||||
include(Internal/CMakeCommonLinkerInformation)
|
||||
|
||||
set(_INCLUDED_FILE 0)
|
||||
|
||||
# Load linker-specific information.
|
||||
if(CMAKE_HIP_COMPILER_LINKER_ID)
|
||||
include(Linker/${CMAKE_HIP_COMPILER_LINKER_ID}-HIP OPTIONAL)
|
||||
endif()
|
||||
|
||||
# load a hardware specific file, mostly useful for embedded compilers
|
||||
if(CMAKE_SYSTEM_PROCESSOR AND CMAKE_HIP_COMPILER_LINKER_ID)
|
||||
include(Platform/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_HIP_COMPILER_LINKER_ID}-HIP-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
endif()
|
||||
|
||||
|
||||
# load the system- and linker specific files
|
||||
if(CMAKE_HIP_COMPILER_LINKER_ID)
|
||||
include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_HIP_COMPILER_LINKER_ID}-HIP
|
||||
OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
endif()
|
||||
|
||||
# We specify the platform linker information in the system file.
|
||||
if (NOT _INCLUDED_FILE)
|
||||
include(Platform/Linker/${CMAKE_SYSTEM_NAME}-HIP OPTIONAL)
|
||||
endif ()
|
||||
|
||||
_cmake_common_linker_platform_flags(HIP)
|
||||
|
||||
set(CMAKE_HIP_LINKER_INFORMATION_LOADED 1)
|
||||
8
Modules/Internal/CMakeISPCLinkerInformation.cmake
Normal file
8
Modules/Internal/CMakeISPCLinkerInformation.cmake
Normal file
@@ -0,0 +1,8 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# This file sets the basic flags for the linker used by the ISPC compiler in CMake.
|
||||
# For now, ISPC is not able to handle the link step
|
||||
|
||||
set(CMAKE_ISPC_LINKER_INFORMATION_LOADED 1)
|
||||
5
Modules/Internal/CMakeJavaLinkerInformation.cmake
Normal file
5
Modules/Internal/CMakeJavaLinkerInformation.cmake
Normal file
@@ -0,0 +1,5 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# Java language does not have a concept of linker, so nothing to configure.
|
||||
39
Modules/Internal/CMakeOBJCLinkerInformation.cmake
Normal file
39
Modules/Internal/CMakeOBJCLinkerInformation.cmake
Normal file
@@ -0,0 +1,39 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# This file sets the basic flags for the linker used by the Objective-C compiler in CMake.
|
||||
# It also loads the available platform file for the system-linker
|
||||
# if it exists.
|
||||
# It also loads a system - linker - processor (or target hardware)
|
||||
# specific file, which is mainly useful for crosscompiling and embedded systems.
|
||||
|
||||
include(Internal/CMakeCommonLinkerInformation)
|
||||
|
||||
set(_INCLUDED_FILE 0)
|
||||
|
||||
# Load linker-specific information.
|
||||
if(CMAKE_OBJC_COMPILER_LINKER_ID)
|
||||
include(Linker/${CMAKE_OBJC_COMPILER_LINKER_ID}-OBJC OPTIONAL)
|
||||
endif()
|
||||
|
||||
# load a hardware specific file, mostly useful for embedded compilers
|
||||
if(CMAKE_SYSTEM_PROCESSOR AND CMAKE_OBJC_COMPILER_LINKER_ID)
|
||||
include(Platform/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_OBJC_COMPILER_LINKER_ID}-OBJC-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
endif()
|
||||
|
||||
|
||||
# load the system- and linker specific files
|
||||
if(CMAKE_OBJC_COMPILER_LINKER_ID)
|
||||
include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_OBJC_COMPILER_LINKER_ID}-OBJC
|
||||
OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
endif()
|
||||
|
||||
# We specify the platform linker information in the system file.
|
||||
if (NOT _INCLUDED_FILE)
|
||||
include(Platform/Linker/${CMAKE_SYSTEM_NAME}-OBJC OPTIONAL)
|
||||
endif ()
|
||||
|
||||
_cmake_common_linker_platform_flags(OBJC)
|
||||
|
||||
set(CMAKE_OBJC_LINKER_INFORMATION_LOADED 1)
|
||||
39
Modules/Internal/CMakeOBJCXXLinkerInformation.cmake
Normal file
39
Modules/Internal/CMakeOBJCXXLinkerInformation.cmake
Normal file
@@ -0,0 +1,39 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# This file sets the basic flags for the linker used by the Objective-C++ compiler in CMake.
|
||||
# It also loads the available platform file for the system-linker
|
||||
# if it exists.
|
||||
# It also loads a system - linker - processor (or target hardware)
|
||||
# specific file, which is mainly useful for crosscompiling and embedded systems.
|
||||
|
||||
include(Internal/CMakeCommonLinkerInformation)
|
||||
|
||||
set(_INCLUDED_FILE 0)
|
||||
|
||||
# Load linker-specific information.
|
||||
if(CMAKE_OBJCXX_COMPILER_LINKER_ID)
|
||||
include(Linker/${CMAKE_OBJCXX_COMPILER_LINKER_ID}-C OPTIONAL)
|
||||
endif()
|
||||
|
||||
# load a hardware specific file, mostly useful for embedded compilers
|
||||
if(CMAKE_SYSTEM_PROCESSOR AND CMAKE_OBJCXX_COMPILER_LINKER_ID)
|
||||
include(Platform/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_OBJCXX_COMPILER_LINKER_ID}-OBJCXX-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
endif()
|
||||
|
||||
|
||||
# load the system- and linker specific files
|
||||
if(CMAKE_OBJCXX_COMPILER_LINKER_ID)
|
||||
include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_OBJCXX_COMPILER_LINKER_ID}-C
|
||||
OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
endif()
|
||||
|
||||
# We specify the platform linker information in the system file.
|
||||
if (NOT _INCLUDED_FILE)
|
||||
include(Platform/Linker/${CMAKE_SYSTEM_NAME}-OBJCXX OPTIONAL)
|
||||
endif ()
|
||||
|
||||
_cmake_common_linker_platform_flags(OBJCXX)
|
||||
|
||||
set(CMAKE_OBJCXX_LINKER_INFORMATION_LOADED 1)
|
||||
17
Modules/Internal/CMakeRCLinkerInformation.cmake
Normal file
17
Modules/Internal/CMakeRCLinkerInformation.cmake
Normal file
@@ -0,0 +1,17 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# This file sets the basic flags for the linker used by the C compiler in CMake.
|
||||
# It also loads the available platform file for the system-linker
|
||||
# if it exists.
|
||||
# It also loads a system - linker - processor (or target hardware)
|
||||
# specific file, which is mainly useful for crosscompiling and embedded systems.
|
||||
|
||||
include(Internal/CMakeCommonLinkerInformation)
|
||||
|
||||
set(_INCLUDED_FILE 0)
|
||||
|
||||
# Foe now, no linker associated with RC language
|
||||
|
||||
set(CMAKE_RC_LINKER_INFORMATION_LOADED 1)
|
||||
39
Modules/Internal/CMakeSwiftLinkerInformation.cmake
Normal file
39
Modules/Internal/CMakeSwiftLinkerInformation.cmake
Normal file
@@ -0,0 +1,39 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# This file sets the basic flags for the linker used by the Swift compiler in CMake.
|
||||
# It also loads the available platform file for the system-linker
|
||||
# if it exists.
|
||||
# It also loads a system - linker - processor (or target hardware)
|
||||
# specific file, which is mainly useful for crosscompiling and embedded systems.
|
||||
|
||||
include(Internal/CMakeCommonLinkerInformation)
|
||||
|
||||
set(_INCLUDED_FILE 0)
|
||||
|
||||
# Load linker-specific information.
|
||||
if(CMAKE_Swoft_COMPILER_LINKER_ID)
|
||||
include(Linker/${CMAKE_Swift_COMPILER_LINKER_ID}-Swift OPTIONAL)
|
||||
endif()
|
||||
|
||||
# load a hardware specific file, mostly useful for embedded compilers
|
||||
if(CMAKE_SYSTEM_PROCESSOR AND CMAKE_Swift_COMPILER_LINKER_ID)
|
||||
include(Platform/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_Swift_COMPILER_LINKER_ID}-Swift-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
endif()
|
||||
|
||||
|
||||
# load the system- and linker specific files
|
||||
if(CMAKE_Swift_COMPILER_LINKER_ID)
|
||||
include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_C_COMPILER_LINKER_ID}-Swift
|
||||
OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
||||
endif()
|
||||
|
||||
# We specify the platform linker information in the system file.
|
||||
if (NOT _INCLUDED_FILE)
|
||||
include(Platform/Linker/${CMAKE_SYSTEM_NAME}-Swift OPTIONAL)
|
||||
endif ()
|
||||
|
||||
_cmake_common_linker_platform_flags(Swift)
|
||||
|
||||
set(CMAKE_Swift_LINKER_INFORMATION_LOADED 1)
|
||||
6
Modules/Linker/AIX-ASM.cmake
Normal file
6
Modules/Linker/AIX-ASM.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/AIX)
|
||||
|
||||
__linker_aix(ASM)
|
||||
6
Modules/Linker/AIX-C.cmake
Normal file
6
Modules/Linker/AIX-C.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/AIX)
|
||||
|
||||
__linker_aix(C)
|
||||
6
Modules/Linker/AIX-CXX.cmake
Normal file
6
Modules/Linker/AIX-CXX.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/AIX)
|
||||
|
||||
__linker_aix(CXX)
|
||||
6
Modules/Linker/AIX-Fortran.cmake
Normal file
6
Modules/Linker/AIX-Fortran.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/AIX)
|
||||
|
||||
__linker_aix(Fortran)
|
||||
9
Modules/Linker/AIX.cmake
Normal file
9
Modules/Linker/AIX.cmake
Normal file
@@ -0,0 +1,9 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# This module is shared by multiple linkers; use include blocker.
|
||||
include_guard()
|
||||
|
||||
macro(__linker_aix lang)
|
||||
endmacro()
|
||||
3
Modules/Linker/AppleClang-ASM.cmake
Normal file
3
Modules/Linker/AppleClang-ASM.cmake
Normal file
@@ -0,0 +1,3 @@
|
||||
include(Linker/AppleClang)
|
||||
|
||||
__linker_appleclang(ASM)
|
||||
3
Modules/Linker/AppleClang-C.cmake
Normal file
3
Modules/Linker/AppleClang-C.cmake
Normal file
@@ -0,0 +1,3 @@
|
||||
include(Linker/AppleClang)
|
||||
|
||||
__linker_appleclang(C)
|
||||
3
Modules/Linker/AppleClang-CXX.cmake
Normal file
3
Modules/Linker/AppleClang-CXX.cmake
Normal file
@@ -0,0 +1,3 @@
|
||||
include(Linker/AppleClang)
|
||||
|
||||
__linker_appleclang(CXX)
|
||||
3
Modules/Linker/AppleClang-OBJC.cmake
Normal file
3
Modules/Linker/AppleClang-OBJC.cmake
Normal file
@@ -0,0 +1,3 @@
|
||||
include(Linker/AppleClang)
|
||||
|
||||
__linker_appleclang(OBJC)
|
||||
3
Modules/Linker/AppleClang-OBJCXX.cmake
Normal file
3
Modules/Linker/AppleClang-OBJCXX.cmake
Normal file
@@ -0,0 +1,3 @@
|
||||
include(Linker/AppleClang)
|
||||
|
||||
__linker_appleclang(OBJCXX)
|
||||
10
Modules/Linker/AppleClang.cmake
Normal file
10
Modules/Linker/AppleClang.cmake
Normal file
@@ -0,0 +1,10 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# This module is shared by multiple linkers; use include blocker.
|
||||
|
||||
include_guard()
|
||||
|
||||
macro(__linker_appleclang lang)
|
||||
endmacro()
|
||||
6
Modules/Linker/GNU-ASM.cmake
Normal file
6
Modules/Linker/GNU-ASM.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/GNU)
|
||||
|
||||
__linker_gnu(ASM)
|
||||
6
Modules/Linker/GNU-C.cmake
Normal file
6
Modules/Linker/GNU-C.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/GNU)
|
||||
|
||||
__linker_gnu(C)
|
||||
6
Modules/Linker/GNU-CUDA.cmake
Normal file
6
Modules/Linker/GNU-CUDA.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/GNU)
|
||||
|
||||
__linker_gnu(CUDA)
|
||||
6
Modules/Linker/GNU-CXX.cmake
Normal file
6
Modules/Linker/GNU-CXX.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/GNU)
|
||||
|
||||
__linker_gnu(CXX)
|
||||
6
Modules/Linker/GNU-Fortran.cmake
Normal file
6
Modules/Linker/GNU-Fortran.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/GNU)
|
||||
|
||||
__linker_gnu(Fortran)
|
||||
6
Modules/Linker/GNU-HIP.cmake
Normal file
6
Modules/Linker/GNU-HIP.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/GNU)
|
||||
|
||||
__linker_gnu(HIP)
|
||||
67
Modules/Linker/GNU.cmake
Normal file
67
Modules/Linker/GNU.cmake
Normal file
@@ -0,0 +1,67 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# This module is shared by multiple linkers; use include blocker.
|
||||
include_guard()
|
||||
|
||||
block(SCOPE_FOR POLICIES)
|
||||
cmake_policy(SET CMP0054 NEW)
|
||||
|
||||
macro(__linker_gnu lang)
|
||||
# define flags for linker depfile generation
|
||||
set(CMAKE_${lang}_LINKER_DEPFILE_FLAGS "LINKER:--dependency-file,<DEP_FILE>")
|
||||
set(CMAKE_${lang}_LINKER_DEPFILE_FORMAT gcc)
|
||||
|
||||
block(SCOPE_FOR VARIABLES
|
||||
PROPAGATE CMAKE_${lang}_LINKER_DEPFILE_SUPPORTED
|
||||
CMAKE_${lang}_LINK_DEPENDS_USE_LINKER)
|
||||
if(NOT DEFINED CMAKE_${lang}_LINKER_DEPFILE_SUPPORTED)
|
||||
## Ensure ninja tool is recent enough...
|
||||
if(CMAKE_GENERATOR MATCHES "^Ninja")
|
||||
# Ninja 1.10 or upper is required
|
||||
execute_process(COMMAND "${CMAKE_MAKE_PROGRAM}" --version
|
||||
OUTPUT_VARIABLE _ninja_version
|
||||
ERROR_VARIABLE _ninja_version)
|
||||
if (_ninja_version MATCHES "[0-9]+(\\.[0-9]+)*")
|
||||
set (_ninja_version "${CMAKE_MATCH_0}")
|
||||
endif()
|
||||
if (_ninja_version VERSION_LESS "1.10")
|
||||
set(CMAKE_${lang}_LINKER_DEPFILE_SUPPORTED FALSE)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (NOT DEFINED CMAKE_${lang}_LINKER_DEPFILE_SUPPORTED)
|
||||
## check if this feature is supported by the linker
|
||||
if (CMAKE_${lang}_COMPILER_LINKER AND CMAKE_${lang}_COMPILER_LINKER_ID MATCHES "GNU|LLD")
|
||||
execute_process(COMMAND "${CMAKE_${lang}_COMPILER_LINKER}" --help
|
||||
OUTPUT_VARIABLE _linker_capabilities
|
||||
ERROR_VARIABLE _linker_capabilities)
|
||||
if(_linker_capabilities MATCHES "--dependency-file")
|
||||
set(CMAKE_${lang}_LINKER_DEPFILE_SUPPORTED TRUE)
|
||||
else()
|
||||
set(CMAKE_${lang}_LINKER_DEPFILE_SUPPORTED FALSE)
|
||||
endif()
|
||||
else()
|
||||
set(CMAKE_${lang}_LINKER_DEPFILE_SUPPORTED FALSE)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
if (CMAKE_${lang}_LINKER_DEPFILE_SUPPORTED)
|
||||
set(CMAKE_${lang}_LINK_DEPENDS_USE_LINKER TRUE)
|
||||
else()
|
||||
set(CMAKE_${lang}_LINK_DEPENDS_USE_LINKER FALSE)
|
||||
endif()
|
||||
|
||||
# Due to GNU binutils ld bug when LTO is enabled (see GNU bug
|
||||
# `30568 <https://sourceware.org/bugzilla/show_bug.cgi?id=30568>`_),
|
||||
# deactivate this feature if the version is less than 2.41.
|
||||
if (CMAKE_${lang}_COMPILER_LINKER_ID
|
||||
AND CMAKE_${lang}_COMPILER_LINKER_ID STREQUAL "GNU"
|
||||
AND CMAKE_${lang}_COMPILER_LINKER_VERSION VERSION_LESS "2.41")
|
||||
set(CMAKE_${lang}_LINK_DEPENDS_USE_LINKER FALSE)
|
||||
endif()
|
||||
endblock()
|
||||
endmacro()
|
||||
|
||||
endblock()
|
||||
6
Modules/Linker/GNUgold-ASM.cmake
Normal file
6
Modules/Linker/GNUgold-ASM.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/GNUgold)
|
||||
|
||||
__linker_gnugold(ASM)
|
||||
6
Modules/Linker/GNUgold-C.cmake
Normal file
6
Modules/Linker/GNUgold-C.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/GNUgold)
|
||||
|
||||
__linker_gnugold(C)
|
||||
6
Modules/Linker/GNUgold-CUDA.cmake
Normal file
6
Modules/Linker/GNUgold-CUDA.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/GNUgold)
|
||||
|
||||
__linker_gnugold(CUDA)
|
||||
6
Modules/Linker/GNUgold-CXX.cmake
Normal file
6
Modules/Linker/GNUgold-CXX.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/GNUgold)
|
||||
|
||||
__linker_gnugold(CXX)
|
||||
6
Modules/Linker/GNUgold-Fortran.cmake
Normal file
6
Modules/Linker/GNUgold-Fortran.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/GNUgold)
|
||||
|
||||
__linker_gnugold(Fortran)
|
||||
6
Modules/Linker/GNUgold-HIP.cmake
Normal file
6
Modules/Linker/GNUgold-HIP.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/GNUgold)
|
||||
|
||||
__linker_gnugold(HIP)
|
||||
18
Modules/Linker/GNUgold.cmake
Normal file
18
Modules/Linker/GNUgold.cmake
Normal file
@@ -0,0 +1,18 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# This module is shared by multiple linkers; use include blocker.
|
||||
include_guard()
|
||||
|
||||
include(Linker/GNU)
|
||||
|
||||
macro(__linker_gnugold lang)
|
||||
__linker_gnu(${lang})
|
||||
|
||||
# Due to GNU binutils ld bug when LTO is enabled (see GNU bug
|
||||
# `30568 <https://sourceware.org/bugzilla/show_bug.cgi?id=30568>`_),
|
||||
# deactivate this feature because all known versions of gold linker have
|
||||
# this bug.
|
||||
set(CMAKE_${lang}_LINK_DEPENDS_USE_LINKER FALSE)
|
||||
endmacro()
|
||||
6
Modules/Linker/LLD-ASM.cmake
Normal file
6
Modules/Linker/LLD-ASM.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/LLD)
|
||||
|
||||
__linker_lld(ASM)
|
||||
6
Modules/Linker/LLD-C.cmake
Normal file
6
Modules/Linker/LLD-C.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/LLD)
|
||||
|
||||
__linker_lld(C)
|
||||
6
Modules/Linker/LLD-CUDA.cmake
Normal file
6
Modules/Linker/LLD-CUDA.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/LLD)
|
||||
|
||||
__linker_lld(CUDA)
|
||||
6
Modules/Linker/LLD-CXX.cmake
Normal file
6
Modules/Linker/LLD-CXX.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/LLD)
|
||||
|
||||
__linker_lld(CXX)
|
||||
6
Modules/Linker/LLD-Fortran.cmake
Normal file
6
Modules/Linker/LLD-Fortran.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/LLD)
|
||||
|
||||
__linker_lld(Fortran)
|
||||
6
Modules/Linker/LLD-HIP.cmake
Normal file
6
Modules/Linker/LLD-HIP.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/LLD)
|
||||
|
||||
__linker_lld(HIP)
|
||||
6
Modules/Linker/LLD-OBJC.cmake
Normal file
6
Modules/Linker/LLD-OBJC.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/LLD)
|
||||
|
||||
__linker_lld(OBJC)
|
||||
6
Modules/Linker/LLD-OBJCXX.cmake
Normal file
6
Modules/Linker/LLD-OBJCXX.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/LLD)
|
||||
|
||||
__linker_lld(OBJCXX)
|
||||
10
Modules/Linker/LLD.cmake
Normal file
10
Modules/Linker/LLD.cmake
Normal file
@@ -0,0 +1,10 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include_guard()
|
||||
|
||||
include(Linker/GNU)
|
||||
|
||||
macro(__linker_lld lang)
|
||||
__linker_gnu(${lang})
|
||||
endmacro()
|
||||
6
Modules/Linker/MOLD-ASM.cmake
Normal file
6
Modules/Linker/MOLD-ASM.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/GNU)
|
||||
|
||||
__linker_gnu(ASM)
|
||||
6
Modules/Linker/MOLD-C.cmake
Normal file
6
Modules/Linker/MOLD-C.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/GNU)
|
||||
|
||||
__linker_gnu(C)
|
||||
6
Modules/Linker/MOLD-CUDA.cmake
Normal file
6
Modules/Linker/MOLD-CUDA.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/GNU)
|
||||
|
||||
__linker_gnu(CUDA)
|
||||
6
Modules/Linker/MOLD-CXX.cmake
Normal file
6
Modules/Linker/MOLD-CXX.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/GNU)
|
||||
|
||||
__linker_gnu(CXX)
|
||||
6
Modules/Linker/MOLD-Fortran.cmake
Normal file
6
Modules/Linker/MOLD-Fortran.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/GNU)
|
||||
|
||||
__linker_gnu(Fortran)
|
||||
6
Modules/Linker/MOLD-HIP.cmake
Normal file
6
Modules/Linker/MOLD-HIP.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/GNU)
|
||||
|
||||
__linker_gnu(HIP)
|
||||
6
Modules/Linker/MOLD-OBJC.cmake
Normal file
6
Modules/Linker/MOLD-OBJC.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/GNU)
|
||||
|
||||
__linker_gnu(OBJC)
|
||||
6
Modules/Linker/MOLD-OBJCXX.cmake
Normal file
6
Modules/Linker/MOLD-OBJCXX.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/GNU)
|
||||
|
||||
__linker_gnu(OBJCXX)
|
||||
6
Modules/Linker/Solaris-ASM.cmake
Normal file
6
Modules/Linker/Solaris-ASM.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/Solaris)
|
||||
|
||||
__linker_solaris(ASM)
|
||||
6
Modules/Linker/Solaris-C.cmake
Normal file
6
Modules/Linker/Solaris-C.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/Solaris)
|
||||
|
||||
__linker_solaris(C)
|
||||
6
Modules/Linker/Solaris-CXX.cmake
Normal file
6
Modules/Linker/Solaris-CXX.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/Solaris)
|
||||
|
||||
__linker_solaris(CXX)
|
||||
6
Modules/Linker/Solaris-Fortran.cmake
Normal file
6
Modules/Linker/Solaris-Fortran.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Linker/Solaris)
|
||||
|
||||
__linker_solaris(Fortran)
|
||||
9
Modules/Linker/Solaris.cmake
Normal file
9
Modules/Linker/Solaris.cmake
Normal file
@@ -0,0 +1,9 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# This module is shared by multiple linkers; use include blocker.
|
||||
include_guard()
|
||||
|
||||
macro(__linker_solaris lang)
|
||||
endmacro()
|
||||
@@ -17,7 +17,6 @@ macro(__aix_compiler_gnu lang)
|
||||
set(CMAKE_${lang}_VERBOSE_LINK_FLAG "-Wl,-v")
|
||||
|
||||
set(CMAKE_${lang}_LINK_FLAGS "-Wl,-bnoipath")
|
||||
set(CMAKE_${lang}_LINK_LIBRARIES_PROCESSING ORDER=REVERSE DEDUPLICATION=ALL)
|
||||
|
||||
if(CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 7 OR CMAKE_SYSTEM_VERSION VERSION_LESS 7.1)
|
||||
unset(CMAKE_${lang}_COMPILE_OPTIONS_VISIBILITY)
|
||||
|
||||
@@ -17,7 +17,6 @@ macro(__aix_compiler_xl lang)
|
||||
set(CMAKE_SHARED_MODULE_${lang}_FLAGS " ")
|
||||
|
||||
set(CMAKE_${lang}_LINK_FLAGS "-Wl,-bnoipath")
|
||||
set(CMAKE_${lang}_LINK_LIBRARIES_PROCESSING ORDER=REVERSE DEDUPLICATION=ALL)
|
||||
|
||||
set(_OBJECTS " <OBJECTS>")
|
||||
if(DEFINED CMAKE_XL_CreateExportList AND CMAKE_XL_CreateExportList STREQUAL "")
|
||||
|
||||
@@ -15,8 +15,6 @@ macro(__apple_compiler_clang lang)
|
||||
set(CMAKE_${lang}_SYSTEM_FRAMEWORK_SEARCH_FLAG "-iframework ")
|
||||
endif()
|
||||
|
||||
set(CMAKE_${lang}_LINK_LIBRARIES_PROCESSING ORDER=REVERSE DEDUPLICATION=ALL)
|
||||
|
||||
set(CMAKE_${lang}_LINK_LIBRARY_USING_FRAMEWORK "-framework <LIBRARY>")
|
||||
set(CMAKE_${lang}_LINK_LIBRARY_USING_FRAMEWORK_SUPPORTED TRUE)
|
||||
set(CMAKE_${lang}_LINK_LIBRARY_FRAMEWORK_ATTRIBUTES LIBRARY_TYPE=STATIC,SHARED DEDUPLICATION=DEFAULT OVERRIDE=DEFAULT)
|
||||
|
||||
6
Modules/Platform/Linker/AIX-AIX-ASM.cmake
Normal file
6
Modules/Platform/Linker/AIX-AIX-ASM.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/AIX-AIX)
|
||||
|
||||
__aix_linker_aix(ASM)
|
||||
6
Modules/Platform/Linker/AIX-AIX-C.cmake
Normal file
6
Modules/Platform/Linker/AIX-AIX-C.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/AIX-AIX)
|
||||
|
||||
__aix_linker_aix(C)
|
||||
6
Modules/Platform/Linker/AIX-AIX-CXX.cmake
Normal file
6
Modules/Platform/Linker/AIX-AIX-CXX.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/AIX-AIX)
|
||||
|
||||
__aix_linker_aix(CXX)
|
||||
6
Modules/Platform/Linker/AIX-AIX-Fortran.cmake
Normal file
6
Modules/Platform/Linker/AIX-AIX-Fortran.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/AIX-AIX)
|
||||
|
||||
__aix_linker_aix(Fortran)
|
||||
10
Modules/Platform/Linker/AIX-AIX.cmake
Normal file
10
Modules/Platform/Linker/AIX-AIX.cmake
Normal file
@@ -0,0 +1,10 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# This module is shared by multiple languages; use include blocker.
|
||||
include_guard()
|
||||
|
||||
macro(__aix_linker_aix lang)
|
||||
set(CMAKE_${lang}_LINK_LIBRARIES_PROCESSING ORDER=REVERSE DEDUPLICATION=ALL)
|
||||
endmacro()
|
||||
5
Modules/Platform/Linker/AIX-ASM.cmake
Normal file
5
Modules/Platform/Linker/AIX-ASM.cmake
Normal file
@@ -0,0 +1,5 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
# AIX is the default linker
|
||||
include(Platform/Linker/AIX-AIX-ASM)
|
||||
5
Modules/Platform/Linker/AIX-C.cmake
Normal file
5
Modules/Platform/Linker/AIX-C.cmake
Normal file
@@ -0,0 +1,5 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
# AIX is the default linker
|
||||
include(Platform/Linker/AIX-AIX-C)
|
||||
5
Modules/Platform/Linker/AIX-CXX.cmake
Normal file
5
Modules/Platform/Linker/AIX-CXX.cmake
Normal file
@@ -0,0 +1,5 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
# AIX is the default linker
|
||||
include(Platform/Linker/AIX-AIX-CXX)
|
||||
5
Modules/Platform/Linker/AIX-Fortran.cmake
Normal file
5
Modules/Platform/Linker/AIX-Fortran.cmake
Normal file
@@ -0,0 +1,5 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
# AIX is the default linker
|
||||
include(Platform/Linker/AIX-AIX-Fortran)
|
||||
5
Modules/Platform/Linker/Apple-ASM.cmake
Normal file
5
Modules/Platform/Linker/Apple-ASM.cmake
Normal file
@@ -0,0 +1,5 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
# AppleClang is the default linker
|
||||
include(Platform/Linker/Apple-AppleClang-ASM)
|
||||
6
Modules/Platform/Linker/Apple-AppleClang-ASM.cmake
Normal file
6
Modules/Platform/Linker/Apple-AppleClang-ASM.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Apple-AppleClang)
|
||||
|
||||
__apple_linker_appleclang(ASM)
|
||||
6
Modules/Platform/Linker/Apple-AppleClang-C.cmake
Normal file
6
Modules/Platform/Linker/Apple-AppleClang-C.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Apple-AppleClang)
|
||||
|
||||
__apple_linker_appleclang(C)
|
||||
6
Modules/Platform/Linker/Apple-AppleClang-CUDA.cmake
Normal file
6
Modules/Platform/Linker/Apple-AppleClang-CUDA.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Apple-AppleClang)
|
||||
|
||||
__apple_linker_appleclang(CUDA)
|
||||
6
Modules/Platform/Linker/Apple-AppleClang-CXX.cmake
Normal file
6
Modules/Platform/Linker/Apple-AppleClang-CXX.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Apple-AppleClang)
|
||||
|
||||
__apple_linker_appleclang(CXX)
|
||||
6
Modules/Platform/Linker/Apple-AppleClang-Fortran.cmake
Normal file
6
Modules/Platform/Linker/Apple-AppleClang-Fortran.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Apple-AppleClang)
|
||||
|
||||
__apple_linker_appleclang(Fortran)
|
||||
6
Modules/Platform/Linker/Apple-AppleClang-OBJC.cmake
Normal file
6
Modules/Platform/Linker/Apple-AppleClang-OBJC.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Apple-AppleClang)
|
||||
|
||||
__apple_linker_appleclang(OBJC)
|
||||
6
Modules/Platform/Linker/Apple-AppleClang-OBJCXX.cmake
Normal file
6
Modules/Platform/Linker/Apple-AppleClang-OBJCXX.cmake
Normal file
@@ -0,0 +1,6 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Apple-AppleClang)
|
||||
|
||||
__apple_linker_appleclang(OBJCXX)
|
||||
10
Modules/Platform/Linker/Apple-AppleClang.cmake
Normal file
10
Modules/Platform/Linker/Apple-AppleClang.cmake
Normal file
@@ -0,0 +1,10 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
|
||||
# This module is shared by multiple languages; use include blocker.
|
||||
include_guard()
|
||||
|
||||
macro(__apple_linker_appleclang lang)
|
||||
set(CMAKE_${lang}_LINK_LIBRARIES_PROCESSING ORDER=REVERSE DEDUPLICATION=ALL)
|
||||
endmacro()
|
||||
5
Modules/Platform/Linker/Apple-C.cmake
Normal file
5
Modules/Platform/Linker/Apple-C.cmake
Normal file
@@ -0,0 +1,5 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
# AppleClang is the default linker
|
||||
include(Platform/Linker/Apple-AppleClang-C)
|
||||
5
Modules/Platform/Linker/Apple-CUDA.cmake
Normal file
5
Modules/Platform/Linker/Apple-CUDA.cmake
Normal file
@@ -0,0 +1,5 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
# AppleClang is the default linker
|
||||
include(Platform/Linker/Apple-AppleClang-CUDA)
|
||||
5
Modules/Platform/Linker/Apple-CXX.cmake
Normal file
5
Modules/Platform/Linker/Apple-CXX.cmake
Normal file
@@ -0,0 +1,5 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
# AppleClang is the default linker
|
||||
include(Platform/Linker/Apple-AppleClang-CXX)
|
||||
5
Modules/Platform/Linker/Apple-Fortran.cmake
Normal file
5
Modules/Platform/Linker/Apple-Fortran.cmake
Normal file
@@ -0,0 +1,5 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
# AppleClang is the default linker
|
||||
include(Platform/Linker/Apple-AppleClang-Fortran)
|
||||
4
Modules/Platform/Linker/Apple-LLD-C.cmake
Normal file
4
Modules/Platform/Linker/Apple-LLD-C.cmake
Normal file
@@ -0,0 +1,4 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Apple-AppleClang-C)
|
||||
4
Modules/Platform/Linker/Apple-LLD-CXX.cmake
Normal file
4
Modules/Platform/Linker/Apple-LLD-CXX.cmake
Normal file
@@ -0,0 +1,4 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Apple-AppleClang-CXX)
|
||||
4
Modules/Platform/Linker/Apple-LLD-OBJC.cmake
Normal file
4
Modules/Platform/Linker/Apple-LLD-OBJC.cmake
Normal file
@@ -0,0 +1,4 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Apple-AppleClang-OBJC)
|
||||
4
Modules/Platform/Linker/Apple-LLD-OBJCXX.cmake
Normal file
4
Modules/Platform/Linker/Apple-LLD-OBJCXX.cmake
Normal file
@@ -0,0 +1,4 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Apple-AppleClang-OBJCXX)
|
||||
4
Modules/Platform/Linker/Apple-MOLD-C.cmake
Normal file
4
Modules/Platform/Linker/Apple-MOLD-C.cmake
Normal file
@@ -0,0 +1,4 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Apple-AppleClang-C)
|
||||
4
Modules/Platform/Linker/Apple-MOLD-CXX.cmake
Normal file
4
Modules/Platform/Linker/Apple-MOLD-CXX.cmake
Normal file
@@ -0,0 +1,4 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Apple-AppleClang-CXX)
|
||||
4
Modules/Platform/Linker/Apple-MOLD-OBJC.cmake
Normal file
4
Modules/Platform/Linker/Apple-MOLD-OBJC.cmake
Normal file
@@ -0,0 +1,4 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
||||
|
||||
include(Platform/Linker/Apple-AppleClang-OBJC)
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user