From 2d7fe93b09947d00eefd1867324de6bdc299982f Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Mon, 15 Jun 2015 17:35:29 +0000 Subject: [PATCH] [CMAKE] Disable debug sections compression in GCC release builds. svn path=/trunk/; revision=68149 --- reactos/cmake/gcc.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/cmake/gcc.cmake b/reactos/cmake/gcc.cmake index 64b0d33562b..ee16a5e3a97 100644 --- a/reactos/cmake/gcc.cmake +++ b/reactos/cmake/gcc.cmake @@ -240,7 +240,7 @@ endif() set(CMAKE_EXE_LINKER_FLAGS "-nostdlib -Wl,--enable-auto-image-base,--disable-auto-import,--disable-stdcall-fixup") set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS_INIT} -Wl,--disable-stdcall-fixup") -if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang") +if((NOT CMAKE_C_COMPILER_ID STREQUAL "Clang") AND (NOT CMAKE_BUILD_TYPE STREQUAL "Release")) set(_compress_debug_sections_flag "-Wa,--compress-debug-sections") endif()