Toolchain: Remove upstreamed CMake platform files :^)

This commit is contained in:
Andrew Kaster 2022-12-10 13:36:37 -07:00 committed by Andreas Kling
parent e28bc77778
commit d2f78a9411
Notes: sideshowbarker 2024-07-17 09:48:50 +09:00
11 changed files with 0 additions and 60 deletions

View file

@ -1,7 +1,3 @@
if (${CMAKE_VERSION} VERSION_LESS "3.25.0")
list(APPEND CMAKE_MODULE_PATH "@SERENITY_SOURCE_DIR@/Toolchain/CMake")
endif()
set(CMAKE_SYSTEM_NAME SerenityOS)
set(CMAKE_SYSTEM_PROCESSOR "@SERENITY_ARCH@")

View file

@ -1,7 +1,3 @@
if (${CMAKE_VERSION} VERSION_LESS "3.25.0")
list(APPEND CMAKE_MODULE_PATH "@SERENITY_SOURCE_DIR@/Toolchain/CMake")
endif()
set(CMAKE_SYSTEM_NAME SerenityOS)
set(CMAKE_SYSTEM_PROCESSOR "@SERENITY_ARCH@")

View file

@ -1,4 +0,0 @@
This directory contains Platform files for CMake to identify flags for SerenityOS when ``CMAKE_SYSTEM_NAME`` is "SerenityOS".
Please keep these files in sync with upstream ``Modules/Platform/SerenityOS*.cmake`` in https://gitlab.kitware.com/cmake/cmake

View file

@ -1,2 +0,0 @@
include(Platform/SerenityOS-GNU)
__serenity_compiler_gnu(ASM)

View file

@ -1,2 +0,0 @@
include(Platform/SerenityOS-GNU)
__serenity_compiler_gnu(C)

View file

@ -1,2 +0,0 @@
include(Platform/SerenityOS-GNU)
__serenity_compiler_gnu(CXX)

View file

@ -1,2 +0,0 @@
include(Platform/SerenityOS-GNU)
__serenity_compiler_gnu(ASM)

View file

@ -1,2 +0,0 @@
include(Platform/SerenityOS-GNU)
__serenity_compiler_gnu(C)

View file

@ -1,2 +0,0 @@
include(Platform/SerenityOS-GNU)
__serenity_compiler_gnu(CXX)

View file

@ -1,24 +0,0 @@
# This module is shared by multiple languages; use include blocker.
include_guard()
set(CMAKE_EXE_LINKER_FLAGS_INIT "-Wl,--hash-style=gnu,-z,relro,-z,now,-z,noexecstack,-z,separate-code,-z,max-page-size=0x1000")
macro(__serenity_compiler_gnu lang)
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG "-Wl,-rpath,")
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG_SEP ":")
set(CMAKE_SHARED_LIBRARY_RPATH_LINK_${lang}_FLAG "-Wl,-rpath-link,")
set(CMAKE_SHARED_LIBRARY_SONAME_${lang}_FLAG "-Wl,-soname,")
set(CMAKE_EXE_EXPORTS_${lang}_FLAG "-Wl,--export-dynamic")
set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-shared -Wl,--hash-style=gnu,-z,relro,-z,now,-z,noexecstack,-z,separate-code")
# Initialize link type selection flags. These flags are used when
# building a shared library, shared module, or executable that links
# to other libraries to select whether to use the static or shared
# versions of the libraries.
foreach(type SHARED_LIBRARY SHARED_MODULE EXE)
set(CMAKE_${type}_LINK_STATIC_${lang}_FLAGS "-Wl,-Bstatic")
set(CMAKE_${type}_LINK_DYNAMIC_${lang}_FLAGS "-Wl,-Bdynamic")
endforeach()
endmacro()

View file

@ -1,12 +0,0 @@
set(SERENITYOS 1)
set(CMAKE_DL_LIBS "")
set(CMAKE_SHARED_LIBRARY_RPATH_ORIGIN_TOKEN "\$ORIGIN")
set(CMAKE_SHARED_LIBRARY_SUFFIX ".so")
# Shared libraries with no builtin soname may not be linked safely by
# specifying the file path.
set(CMAKE_PLATFORM_USES_PATH_WHEN_NO_SONAME 1)
include(Platform/UnixPaths)