File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
make/modules/java.desktop/lib Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 470470
471471endif
472472
473-
474473LIBFONTMANAGER_EXTRA_HEADER_DIRS := \
475474 libharfbuzz \
476475 common/awt \
@@ -485,6 +484,14 @@ BUILD_LIBFONTMANAGER_FONTLIB += $(LIBFREETYPE_LIBS)
485484
486485LIBFONTMANAGER_OPTIMIZATION := HIGHEST
487486
487+ ifneq ($(filter $(TOOLCHAIN_TYPE), gcc clang), )
488+ # gcc (and to an extent clang) is particularly bad at optimizing these files,
489+ # causing a massive spike in compile time. We don't care about these
490+ # particular files anyway, so lower optimization level.
491+ BUILD_LIBFONTMANAGER_hb-subset.cc_OPTIMIZATION := SIZE
492+ BUILD_LIBFONTMANAGER_hb-subset-plan.cc_OPTIMIZATION := SIZE
493+ endif
494+
488495ifeq ($(call isTargetOs, windows), true)
489496 LIBFONTMANAGER_EXCLUDE_FILES += X11FontScaler.c \
490497 X11TextRenderer.c
You can’t perform that action at this time.
0 commit comments