diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-25 15:26:08 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-25 16:27:12 +0100 |
commit | 8714f389f9d0819f888f990fb1941a258132328d (patch) | |
tree | 9379b367b15fd4afa659d445bee0b17407c93d92 /Userland/DynamicLoader | |
parent | 17f076d9129e959a0b670562f4e167029bd0a4fa (diff) | |
download | serenity-8714f389f9d0819f888f990fb1941a258132328d.zip |
LibC: Add x86_64 implementation of setjmp() and longjmp()
Diffstat (limited to 'Userland/DynamicLoader')
-rw-r--r-- | Userland/DynamicLoader/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Userland/DynamicLoader/CMakeLists.txt b/Userland/DynamicLoader/CMakeLists.txt index 019b7eaf89..dc1d10505f 100644 --- a/Userland/DynamicLoader/CMakeLists.txt +++ b/Userland/DynamicLoader/CMakeLists.txt @@ -9,7 +9,13 @@ file(GLOB ELF_SOURCES "../Libraries/LibELF/*.cpp") set(ELF_SOURCES ${ELF_SOURCES} ../Libraries/LibELF/Arch/i386/plt_trampoline.S) file(GLOB LIBC_SOURCES1 "../Libraries/LibC/*.cpp") file(GLOB LIBC_SOURCES2 "../Libraries/LibC/*/*.cpp") -file(GLOB LIBC_SOURCES3 "../Libraries/LibC/*.S") + +if ("${SERENITY_ARCH}" STREQUAL "i686") + file(GLOB LIBC_SOURCES3 "../Libraries/LibC/arch/i386/*.S") +elseif ("${SERENITY_ARCH}" STREQUAL "x86_64") + file(GLOB LIBC_SOURCES3 "../Libraries/LibC/arch/x86_64/*.S") +endif() + file(GLOB LIBSYSTEM_SOURCES "../Libraries/LibSystem/*.cpp") list(FILTER LIBC_SOURCES1 EXCLUDE REGEX ".+crt0.cpp") |