From 24987e2b1fd8d6b39ce265fa90ff64dcca5fedc3 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Wed, 10 Nov 2021 03:29:21 +0100 Subject: [PATCH] Toolchain: Add SerenityOS to the LLVM config.guess --- .../0010-Add-SerenityOS-to-config.guess.patch | 23 +++++++++++++++++++ Toolchain/Patches/llvm/ReadMe.md | 5 ++++ 2 files changed, 28 insertions(+) create mode 100644 Toolchain/Patches/llvm/0010-Add-SerenityOS-to-config.guess.patch diff --git a/Toolchain/Patches/llvm/0010-Add-SerenityOS-to-config.guess.patch b/Toolchain/Patches/llvm/0010-Add-SerenityOS-to-config.guess.patch new file mode 100644 index 0000000000..36fd1b566a --- /dev/null +++ b/Toolchain/Patches/llvm/0010-Add-SerenityOS-to-config.guess.patch @@ -0,0 +1,23 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Tim Schumacher +Date: Wed, 10 Nov 2021 03:29:21 +0100 +Subject: [PATCH] Add SerenityOS to config.guess + +--- + llvm/cmake/config.guess | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/llvm/cmake/config.guess b/llvm/cmake/config.guess +index 60d3f588d6f7e8b341b47b7b379a6b5be299b4b6..bdbd1e323d95a73307cf7f8188ca3c419cd8c0e8 100644 +--- a/llvm/cmake/config.guess ++++ b/llvm/cmake/config.guess +@@ -816,6 +816,9 @@ EOF + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit ;; ++ *:SerenityOS:*:*) ++ echo ${UNAME_MACHINE}-pc-serenity ++ exit ;; + *:Interix*:*) + case ${UNAME_MACHINE} in + x86) diff --git a/Toolchain/Patches/llvm/ReadMe.md b/Toolchain/Patches/llvm/ReadMe.md index e4db6102c5..446ec180cc 100644 --- a/Toolchain/Patches/llvm/ReadMe.md +++ b/Toolchain/Patches/llvm/ReadMe.md @@ -81,3 +81,8 @@ enough to linux to use the pre-canned InstrProfiling implementation. Curiously, enabling profiling for the SerenityOS target changes the ELF OS ABI for userspace binaries to 3, or GNU/Linux. +## `0010-Add-SerenityOS-to-config.guess.patch` + +Add SerenityOS to config.guess + +