File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 577
577
578
578
endif
579
579
580
-
581
580
LIBFONTMANAGER_EXTRA_HEADER_DIRS := \
582
581
libharfbuzz \
583
582
libharfbuzz/hb-ucdn \
@@ -593,6 +592,14 @@ BUILD_LIBFONTMANAGER_FONTLIB += $(LIBFREETYPE_LIBS)
593
592
594
593
LIBFONTMANAGER_OPTIMIZATION := HIGHEST
595
594
595
+ ifneq ($(filter $(TOOLCHAIN_TYPE), gcc clang), )
596
+ # gcc (and to an extent clang) is particularly bad at optimizing these files,
597
+ # causing a massive spike in compile time. We don't care about these
598
+ # particular files anyway, so lower optimization level.
599
+ BUILD_LIBFONTMANAGER_hb-subset.cc_OPTIMIZATION := SIZE
600
+ BUILD_LIBFONTMANAGER_hb-subset-plan.cc_OPTIMIZATION := SIZE
601
+ endif
602
+
596
603
ifeq ($(OPENJDK_TARGET_OS), windows)
597
604
LIBFONTMANAGER_EXCLUDE_FILES += X11FontScaler.c \
598
605
X11TextRenderer.c
You can’t perform that action at this time.
0 commit comments