diff --git a/cmake/modules/CompileWarnings.cmake b/cmake/modules/CompileWarnings.cmake index a869ccc0cf..54c7fce9f8 100644 --- a/cmake/modules/CompileWarnings.cmake +++ b/cmake/modules/CompileWarnings.cmake @@ -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() diff --git a/shared/config.gradle b/shared/config.gradle index 5279f80ac0..1cfe8441c6 100644 --- a/shared/config.gradle +++ b/shared/config.gradle @@ -46,7 +46,7 @@ nativeUtils.platformConfigs.each { // Compress debug info on Linux nativeUtils.platformConfigs.each { if (it.name.contains('linux')) { - it.cppCompiler.debugArgs.add("-gz") + it.cppCompiler.debugArgs.add("-gz=zlib") } }