From 02feb23b06694944ea6556c676a7167ac5ab4b61 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Thu, 6 Dec 2012 15:51:47 +0100 Subject: [PATCH] Always build zlib, ... in release mode. --- runtime/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt index d036295c..aaecd487 100644 --- a/runtime/CMakeLists.txt +++ b/runtime/CMakeLists.txt @@ -289,6 +289,11 @@ macro(build_runtime d_flags c_flags ld_flags lib_suffix path_suffix) dc(${f} "${d_flags}" "${RUNTIME_DIR}" "${target_suffix}" DCRT_O DCRT_BC) endforeach(f) + # Always build zlib and other C parts of the runtime in release mode. + set_source_files_properties(${CORE_C} ${DCRT_C} PROPERTIES + COMPILE_FLAGS ${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_RELEASE} + ) + if(EXISTS ${RUNTIME_DIR}) set(GCCBUILTINS "${PROJECT_BINARY_DIR}/gccbuiltins_x86.di") add_custom_command(