Browse Source
With out -03 -flto=full android builds will fail with a message that it's not possible wiht out O1 - O3pull/2192/head
3 changed files with 19 additions and 11 deletions
@ -0,0 +1,17 @@
|
||||
#General compilation options |
||||
set(ASAN OFF) |
||||
set(UBSAN OFF) |
||||
set(DEVILUTIONX_SYSTEM_LIBSODIUM OFF) |
||||
set(DISABLE_ZERO_TIER ON) |
||||
|
||||
if(BINARY_RELEASE OR CMAKE_BUILD_TYPE STREQUAL "Release") |
||||
# Workaroudn linker bug in CLang: https://github.com/android/ndk/issues/721 |
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -flto=full") |
||||
endif() |
||||
|
||||
#additional compilation definitions |
||||
set(TTF_FONT_DIR \"\") |
||||
|
||||
file( |
||||
COPY "${DevilutionX_SOURCE_DIR}/Packaging/resources/CharisSILB.ttf" |
||||
DESTINATION "${DevilutionX_SOURCE_DIR}/android-project/app/src/main/assets") |
||||
Loading…
Reference in new issue