From d6de4659aa7edb991507f8838dc566874e5b6a61 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 20 May 2019 15:33:23 -0400 Subject: [PATCH] Add HB_OPTIMIZE_SIZE Part of https://github.com/harfbuzz/harfbuzz/issues/1652 --- src/hb-config.hh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/hb-config.hh b/src/hb-config.hh index caff9d83e..fd5a71341 100644 --- a/src/hb-config.hh +++ b/src/hb-config.hh @@ -43,6 +43,9 @@ #ifndef NDEBUG #define NDEBUG #endif +#ifndef __OPTIMIZE_SIZE__ +#define __OPTIMIZE_SIZE__ +#endif #endif #ifdef HB_LEAN @@ -113,6 +116,11 @@ #endif #endif +#ifdef __OPTIMIZE_SIZE__ +#ifndef HB_OPTIMIZE_SIZE +#define HB_OPTIMIZE_SIZE +#endif +#endif #ifdef HAVE_CONFIG_OVERRIDE_H #include "config-override.h"