mirror of
https://github.com/RGBCube/serenity
synced 2025-06-17 23:32:07 +00:00

This removes the patch series 1/N comments, git version at the bottom of the patch, and zeros out the original commit hash.
25 lines
1.2 KiB
Diff
25 lines
1.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Bertalan <dani@danielbertalan.dev>
|
|
Date: Thu, 14 Apr 2022 10:21:19 +0200
|
|
Subject: [PATCH] [cmake] Allow undefined symbols on SerenityOS
|
|
|
|
Allow undefined symbols in LLVM libraries, which is needed because only
|
|
stubs are available for SerenityOS libraries when libc++ and libunwind
|
|
are built.
|
|
---
|
|
llvm/cmake/modules/HandleLLVMOptions.cmake | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
|
|
index fcaa8f20b..c27209146 100644
|
|
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
|
|
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
|
|
@@ -227,7 +227,7 @@ endif()
|
|
|
|
# Pass -Wl,-z,defs. This makes sure all symbols are defined. Otherwise a DSO
|
|
# build might work on ELF but fail on MachO/COFF.
|
|
-if(NOT (CMAKE_SYSTEM_NAME MATCHES "Darwin|FreeBSD|OpenBSD|DragonFly|AIX|SunOS|OS390" OR
|
|
+if(NOT (CMAKE_SYSTEM_NAME MATCHES "Darwin|FreeBSD|OpenBSD|DragonFly|AIX|SunOS|OS390|SerenityOS" OR
|
|
WIN32 OR CYGWIN) AND
|
|
NOT LLVM_USE_SANITIZER)
|
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,defs")
|