Lagom: Don't include Shell/main.cpp

This caused some confusion: Apparently, clang has no trouble overriding Shell's
main, and this issue only surfaced when I tried to build the fuzzers with
wrong configuration (i.e., without the clang-injected 'main').

The diff is suggested by, and work of, @alimpfard.
This commit is contained in:
Ben Wiederhake 2021-01-29 20:40:09 +01:00 committed by Andreas Kling
parent 8f8bbd1bcd
commit 1cbc01e288
Notes: sideshowbarker 2024-07-18 22:44:45 +09:00

View File

@ -71,7 +71,7 @@ file(GLOB LIBTLS_SOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibTLS/*.cp
file(GLOB LIBTTF_SOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibTTF/*.cpp")
file(GLOB SHELL_SOURCES CONFIGURE_DEPENDS "../../Userland/Shell/*.cpp")
file(GLOB SHELL_TESTS CONFIGURE_DEPENDS "../../Userland/Shell/Tests/*.sh")
list(REMOVE_ITEM SHELL_SOURCES ../../Userland/Shell/main.cpp)
list(FILTER SHELL_SOURCES EXCLUDE REGEX ".*main.cpp$")
set(LAGOM_REGEX_SOURCES ${LIBREGEX_LIBC_SOURCES} ${LIBREGEX_SOURCES})
set(LAGOM_CORE_SOURCES ${AK_SOURCES} ${LIBCORE_SOURCES})