diff --git a/sdk/cmake/gcc.cmake b/sdk/cmake/gcc.cmake index 278e8b5f092..acde67d9203 100644 --- a/sdk/cmake/gcc.cmake +++ b/sdk/cmake/gcc.cmake @@ -241,13 +241,6 @@ set(CMAKE_EXE_LINKER_FLAGS "-nostdlib -Wl,--enable-auto-image-base,--disable-aut set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS_INIT} -Wl,--disable-stdcall-fixup") set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS_INIT} -Wl,--disable-stdcall-fixup") -if((CMAKE_C_COMPILER_ID STREQUAL "GNU") AND - (NOT CMAKE_BUILD_TYPE STREQUAL "Release") AND - (NOT CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)) - # FIXME: Set this once Clang toolchain works with it - set(_compress_debug_sections_flag "-Wa,--compress-debug-sections") -endif() - set(CMAKE_C_COMPILE_OBJECT " ${_compress_debug_sections_flag} -o -c ") # FIXME: Once the GCC toolchain bugs are fixed, add _compress_debug_sections_flag to CXX too set(CMAKE_CXX_COMPILE_OBJECT " -o -c ")