[build] Specify zlib for debug info compression (#5636)

This is required to make compression actually occur.
This commit is contained in:
Tyler Veness
2023-09-14 23:51:04 -07:00
committed by GitHub
parent 707444f000
commit 205a40c895
2 changed files with 2 additions and 2 deletions

View File

@@ -15,6 +15,6 @@ macro(wpilib_target_warnings target)
# Compress debug info with GCC
if (${CMAKE_BUILD_TYPE} STREQUAL "Debug" AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
target_compile_options(${target} PRIVATE -gz)
target_compile_options(${target} PRIVATE -gz=zlib)
endif()
endmacro()