浏览代码

LibTimeZone: Include generated files before checked-in files

This is a rickety solution to a problem when using LibTimeZone as a
static archive, like we do for Android. When pulling symbols from an
archive into a shared library, lld will pick the weak symbols for our
timezone helpers and keep them. Even if there's a strong symbol in
another object file in the same archive, it ignores them. However,
if we make sure that the strong symbols for the generated files are
first in the list, then we avoid the problem altogether by relying
on linker specifics.
Andrew Kaster 1 年之前
父节点
当前提交
78c2fad89c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/Libraries/LibTimeZone/CMakeLists.txt

+ 1 - 1
Userland/Libraries/LibTimeZone/CMakeLists.txt

@@ -1,8 +1,8 @@
 include(${SerenityOS_SOURCE_DIR}/Meta/CMake/time_zone_data.cmake)
 
 set(SOURCES
-    TimeZone.cpp
     ${TIME_ZONE_DATA_SOURCES}
+    TimeZone.cpp
 )
 set(GENERATED_SOURCES ${CURRENT_LIB_GENERATED})