fix libsnappy with PGO

This commit is contained in:
2026-03-28 14:08:19 -05:00
parent 8597ca6088
commit 7db4289f0e
2 changed files with 27 additions and 0 deletions
+8
View File
@@ -1067,7 +1067,15 @@ build_expat() {
}
build_libsnappy() {
local modCxx
modCxx="$(get_cmake_flag CMAKE_CXX_FLAGS "${CMAKE_FLAGS[@]}")" || return 1
if [[ ${PGO} == 'ON' ]]; then
# libsnappy fails PGO for some reason
modCxx+=" -Wno-backend-plugin"
fi
meta_cmake_build \
-DCMAKE_CXX_FLAGS="${modCxx}" \
-DSNAPPY_BUILD_TESTS=OFF \
-DSNAPPY_BUILD_BENCHMARKS=OFF || return 1
sanitize_sysroot_libs libsnappy || return 1