From 4696ef19638a5b2dcbb7013d152a62fc158b1dca Mon Sep 17 00:00:00 2001 From: xbzk Date: Sat, 26 Sep 2026 11:06:52 -0300 Subject: [PATCH] [loader] external zbic + code tweaks + ci workarounds --- src/common/CMakeLists.txt | 2 +- src/common/zbic_compression.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index ff2bd3e504..5d1b30a549 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -151,7 +151,7 @@ add_library( set_source_files_properties(zbic_compression.cpp PROPERTIES INCLUDE_DIRECTORIES "${ZBIC_INCLUDE_DIR}" - COMPILE_OPTIONS "$<$:-Wno-unused-function>") + COMPILE_OPTIONS "$<$:-Wno-unused-function;-Wno-missing-declarations;-Wno-shadow>") if(WIN32) target_sources(common PRIVATE windows/timer_resolution.cpp diff --git a/src/common/zbic_compression.cpp b/src/common/zbic_compression.cpp index 0ce7594d44..5e0e4d947b 100644 --- a/src/common/zbic_compression.cpp +++ b/src/common/zbic_compression.cpp @@ -12,8 +12,14 @@ #define ZSTDERRORLIB_HIDDEN static #undef ZSTD_MULTITHREAD +#if defined(__ANDROID__) +#undef _GNU_SOURCE +#endif + #include "zstd.h" +#define g_ZSTD_threading_useless_symbol g_ZSTD_zbic_threading_useless_symbol #include "zstd.c" +#undef g_ZSTD_threading_useless_symbol namespace Common::Compression {