Linker configuration: Add missing platforms

The following platforms were missing:
* Android
* WindowsCE, WindowsPhone, WindowsStore and WindowsKernelModeDriver

And enhance various Apple platforms support (iOS, tvOS, etc...)

Fixes: #26439
This commit is contained in:
Marc Chevrier
2024-11-12 16:42:47 +01:00
parent 7f2dba2748
commit d2997ab601
50 changed files with 246 additions and 9 deletions

View File

@@ -29,7 +29,7 @@ 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)
include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-ASM${ASM_DIALECT} OPTIONAL)
endif ()
set(CMAKE_ASM${ASM_DIALECT}_LINKER_INFORMATION_LOADED 1)

View File

@@ -31,7 +31,7 @@ endif()
# We specify the platform linker information in the system file.
if (NOT _INCLUDED_FILE)
include(Platform/Linker/${CMAKE_SYSTEM_NAME}-C OPTIONAL)
include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-C OPTIONAL)
endif ()
_cmake_common_linker_platform_flags(C)

View File

@@ -31,7 +31,7 @@ endif()
# We specify the platform linker information in the system file.
if (NOT _INCLUDED_FILE)
include(Platform/Linker/${CMAKE_SYSTEM_NAME}-CUDA OPTIONAL)
include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-CUDA OPTIONAL)
endif ()
_cmake_common_linker_platform_flags(CUDA)

View File

@@ -31,7 +31,7 @@ endif()
# We specify the platform linker information in the system file.
if (NOT _INCLUDED_FILE)
include(Platform/Linker/${CMAKE_SYSTEM_NAME}-CXX OPTIONAL)
include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-CXX OPTIONAL)
endif ()
_cmake_common_linker_platform_flags(CXX)

View File

@@ -31,7 +31,7 @@ endif()
# We specify the platform linker information in the system file.
if (NOT _INCLUDED_FILE)
include(Platform/Linker/${CMAKE_SYSTEM_NAME}-Fortran OPTIONAL)
include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-Fortran OPTIONAL)
endif ()
_cmake_common_linker_platform_flags(Fortran)

View File

@@ -31,7 +31,7 @@ endif()
# We specify the platform linker information in the system file.
if (NOT _INCLUDED_FILE)
include(Platform/Linker/${CMAKE_SYSTEM_NAME}-HIP OPTIONAL)
include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-HIP OPTIONAL)
endif ()
_cmake_common_linker_platform_flags(HIP)

View File

@@ -31,7 +31,7 @@ endif()
# We specify the platform linker information in the system file.
if (NOT _INCLUDED_FILE)
include(Platform/Linker/${CMAKE_SYSTEM_NAME}-OBJC OPTIONAL)
include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-OBJC OPTIONAL)
endif ()
_cmake_common_linker_platform_flags(OBJC)

View File

@@ -31,7 +31,7 @@ endif()
# We specify the platform linker information in the system file.
if (NOT _INCLUDED_FILE)
include(Platform/Linker/${CMAKE_SYSTEM_NAME}-OBJCXX OPTIONAL)
include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-OBJCXX OPTIONAL)
endif ()
_cmake_common_linker_platform_flags(OBJCXX)

View File

@@ -31,7 +31,7 @@ endif()
# We specify the platform linker information in the system file.
if (NOT _INCLUDED_FILE)
include(Platform/Linker/${CMAKE_SYSTEM_NAME}-Swift OPTIONAL)
include(Platform/Linker/${CMAKE_EFFECTIVE_SYSTEM_NAME}-Swift OPTIONAL)
endif ()
_cmake_common_linker_platform_flags(Swift)