[SDK][FREETYPE] Fix GCC8.4 -O2 build

This commit is contained in:
Victor Perevertkin 2020-05-21 01:07:26 +03:00
parent 924f19f6dc
commit 5349f49cfe
No known key found for this signature in database
GPG key ID: C750B7222E9C7830

View file

@ -60,6 +60,8 @@ list(APPEND SOURCE
add_library(freetype ${SOURCE})
if(USE_CLANG_CL)
target_compile_options(freetype PRIVATE "-Wno-tautological-constant-compare")
if(GCC)
target_compile_options(freetype PRIVATE -fno-builtin-malloc)
elseif(CLANG)
target_compile_options(freetype PRIVATE -Wno-tautological-constant-compare)
endif()