Skip to content

Commit

Permalink
Merge pull request #33060 from bruvzg/ios_zlib
Browse files Browse the repository at this point in the history
Fix missing `z_verbose` and `z_error` symbols in the debug iOS build.
  • Loading branch information
akien-mga authored Oct 25, 2019
2 parents b72baf2 + 1a0306a commit 3c7cd84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions core/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion modules/freetype/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c7cd84

Please sign in to comment.