[compiler-rt] fab5c8f - [compiler-rt] Build crtbegin.o/crtend.o for SerenityOS

Daniel Bertalan via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 31 10:47:54 PDT 2023


Author: Daniel Bertalan
Date: 2023-10-31T18:46:59+01:00
New Revision: fab5c8fa4076614be243b0a5c95f4f3c6b725db6

URL: https://github.com/llvm/llvm-project/commit/fab5c8fa4076614be243b0a5c95f4f3c6b725db6
DIFF: https://github.com/llvm/llvm-project/commit/fab5c8fa4076614be243b0a5c95f4f3c6b725db6.diff

LOG: [compiler-rt] Build crtbegin.o/crtend.o for SerenityOS

Differential Revision: https://reviews.llvm.org/D154398

Added: 
    

Modified: 
    compiler-rt/cmake/builtin-config-ix.cmake
    compiler-rt/cmake/crt-config-ix.cmake

Removed: 
    


################################################################################
diff  --git a/compiler-rt/cmake/builtin-config-ix.cmake b/compiler-rt/cmake/builtin-config-ix.cmake
index 9de05bb298efa13..5ccc5d7a559b2ac 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 dc3265e60984c0f..ebc7d671e74ee65 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)


        


More information about the llvm-commits mailing list