From fab5c8fa4076614be243b0a5c95f4f3c6b725db6 Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Thu, 14 Apr 2022 10:20:46 +0200 Subject: [PATCH] [compiler-rt] Build crtbegin.o/crtend.o for SerenityOS Differential Revision: https://reviews.llvm.org/D154398 --- compiler-rt/cmake/builtin-config-ix.cmake | 2 +- compiler-rt/cmake/crt-config-ix.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/cmake/builtin-config-ix.cmake b/compiler-rt/cmake/builtin-config-ix.cmake index 9de05bb298ef..5ccc5d7a559b 100644 --- a/compiler-rt/cmake/builtin-config-ix.cmake +++ b/compiler-rt/cmake/builtin-config-ix.cmake @@ -232,7 +232,7 @@ else() ${ALL_BUILTIN_SUPPORTED_ARCH}) endif() -if (OS_NAME MATCHES "Linux" AND NOT LLVM_USE_SANITIZER) +if (OS_NAME MATCHES "Linux|SerenityOS" AND NOT LLVM_USE_SANITIZER) set(COMPILER_RT_HAS_CRT TRUE) else() set(COMPILER_RT_HAS_CRT FALSE) diff --git a/compiler-rt/cmake/crt-config-ix.cmake b/compiler-rt/cmake/crt-config-ix.cmake index dc3265e60984..ebc7d671e74e 100644 --- a/compiler-rt/cmake/crt-config-ix.cmake +++ b/compiler-rt/cmake/crt-config-ix.cmake @@ -47,7 +47,7 @@ if(NOT APPLE) message(STATUS "Supported architectures for crt: ${CRT_SUPPORTED_ARCH}") endif() -if (CRT_SUPPORTED_ARCH AND OS_NAME MATCHES "Linux" AND NOT LLVM_USE_SANITIZER) +if (CRT_SUPPORTED_ARCH AND OS_NAME MATCHES "Linux|SerenityOS" AND NOT LLVM_USE_SANITIZER) set(COMPILER_RT_HAS_CRT TRUE) else() set(COMPILER_RT_HAS_CRT FALSE)