mirror of
https://github.com/RGBCube/serenity
synced 2025-08-02 18:47:46 +00:00
Toolchain: Update Platform files to match those in upstream cmake
Serenity support was merged into the CMake master branch for the 3.25.0 milestone (https://gitlab.kitware.com/cmake/cmake/-/merge_requests/6837) Remove some settings that are now redundant from the Toolchain files.
This commit is contained in:
parent
ca85e157e8
commit
05058d185c
11 changed files with 49 additions and 23 deletions
|
@ -1,9 +1,10 @@
|
|||
list(APPEND CMAKE_MODULE_PATH "@SERENITY_SOURCE_DIR@/Toolchain/CMake")
|
||||
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@")
|
||||
|
||||
set(SERENITYOS 1)
|
||||
set(triple @SERENITY_ARCH@-pc-serenity)
|
||||
set(TOOLCHAIN_ROOT @SERENITY_SOURCE_DIR@/Toolchain/Local/clang/)
|
||||
set(TOOLCHAIN_PATH ${TOOLCHAIN_ROOT}/bin)
|
||||
|
@ -28,8 +29,6 @@ set(CMAKE_RANLIB ${TOOLCHAIN_PATH}/llvm-ranlib)
|
|||
set(CMAKE_STRIP ${TOOLCHAIN_PATH}/llvm-strip)
|
||||
set(SERENITY_CXXFILT ${TOOLCHAIN_PATH}/llvm-cxxfilt)
|
||||
|
||||
set(CMAKE_EXE_LINKER_FLAGS_INIT "-Wl,--hash-style=gnu,-z,relro,-z,now,-z,noexecstack,-z,max-page-size=0x1000,-z,separate-code")
|
||||
|
||||
# FIXME: We could eliminate this setting by building LibC and support asm files (crti.o, crtn.o)
|
||||
# in a separate build stage before the main build to ensure that LibC is available
|
||||
# for the try_compile check for the main build.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue