Skip to content

Commit cc6fadd

Browse files
committed
fix(build): disable LTO for coverart to fix CI linker issues
1 parent 788e51e commit cc6fadd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/cpp/coverart/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Os -fvisibility=hidden -ffu
66
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Os -fvisibility=hidden -ffunction-sections -fdata-sections")
77
set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} -Wl,--gc-sections -Wl,--strip-all")
88

9-
# Enable LTO for release builds
10-
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON)
9+
# Disable LTO - causes linker issues with gold on CI
10+
# set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON)
1111

1212
# Build Bento4 as static library
1313
set(BUILD_APPS OFF CACHE BOOL "" FORCE)

0 commit comments

Comments
 (0)