From ab5930bbe989d8a42255b6903ce2a45af1946141 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sat, 5 Oct 2024 08:03:46 +0100 Subject: [PATCH] libfmt: FMT_BUILTIN_TYPES=0 on rg99 --- 3rdParty/libfmt/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/3rdParty/libfmt/CMakeLists.txt b/3rdParty/libfmt/CMakeLists.txt index 7721c1ae3ab..0ec1feca4dc 100644 --- a/3rdParty/libfmt/CMakeLists.txt +++ b/3rdParty/libfmt/CMakeLists.txt @@ -24,3 +24,8 @@ FetchContent_MakeAvailableExcludeFromAll(libfmt) if(DEVILUTIONX_WINDOWS_NO_WCHAR) target_compile_definitions(fmt PUBLIC FMT_USE_WRITE_CONSOLE) endif() + +# Reduces the overall binary size by 8 KiB. +if(TARGET_PLATFORM STREQUAL "rg99") + target_compile_definitions(fmt PUBLIC FMT_BUILTIN_TYPES=0) +endif()