Преглед изворни кода

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.
Ben Wiederhake пре 4 година
родитељ
комит
1cbc01e288
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Meta/Lagom/CMakeLists.txt

+ 1 - 1
Meta/Lagom/CMakeLists.txt

@@ -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})