From 1a0306abb1705ea6741d9f9a2130b0e8b62ddcfb Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Fri, 25 Oct 2019 15:12:29 +0300 Subject: [PATCH] Fix missing `z_verbose` and `z_error` symbols in debug iOS build. --- core/SCsub | 2 ++ modules/freetype/SCsub | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/SCsub b/core/SCsub index ed9a0a231dba..b12c6a9e27c2 100644 --- a/core/SCsub +++ b/core/SCsub @@ -80,6 +80,8 @@ if env['builtin_zlib']: env_thirdparty.Prepend(CPPPATH=[thirdparty_zlib_dir]) # Needs to be available in main env too env.Prepend(CPPPATH=[thirdparty_zlib_dir]) + if (env['target'] == 'debug'): + env_thirdparty.Append(CPPDEFINES=['ZLIB_DEBUG']) env_thirdparty.add_source_files(env.core_sources, thirdparty_zlib_sources) diff --git a/modules/freetype/SCsub b/modules/freetype/SCsub index b47377cbc434..8f4a8de895ce 100644 --- a/modules/freetype/SCsub +++ b/modules/freetype/SCsub @@ -66,7 +66,7 @@ if env['builtin_freetype']: env.Prepend(CPPPATH=[thirdparty_dir + "/include"]) env_freetype.Append(CPPDEFINES=['FT2_BUILD_LIBRARY', 'FT_CONFIG_OPTION_USE_PNG']) - if (env['target'] != 'release'): + if (env['target'] == 'debug'): env_freetype.Append(CPPDEFINES=['ZLIB_DEBUG']) # Also requires libpng headers