mirror of
https://github.com/openjdk/jdk15u.git
synced 2025-12-10 17:33:04 -06:00
8283323: libharfbuzz optimization level results in extreme build times
Backport-of: 2c43ecb43fa3c94b69478039f1cd70ed4a577768
This commit is contained in:
parent
78648cbdc3
commit
f7d5c59932
@ -468,7 +468,6 @@ else
|
||||
|
||||
endif
|
||||
|
||||
|
||||
LIBFONTMANAGER_EXTRA_HEADER_DIRS := \
|
||||
libharfbuzz \
|
||||
libharfbuzz/hb-ucdn \
|
||||
@ -485,6 +484,14 @@ BUILD_LIBFONTMANAGER_FONTLIB += $(LIBFREETYPE_LIBS)
|
||||
|
||||
LIBFONTMANAGER_OPTIMIZATION := HIGHEST
|
||||
|
||||
ifneq ($(filter $(TOOLCHAIN_TYPE), gcc clang), )
|
||||
# gcc (and to an extent clang) is particularly bad at optimizing these files,
|
||||
# causing a massive spike in compile time. We don't care about these
|
||||
# particular files anyway, so lower optimization level.
|
||||
BUILD_LIBFONTMANAGER_hb-subset.cc_OPTIMIZATION := SIZE
|
||||
BUILD_LIBFONTMANAGER_hb-subset-plan.cc_OPTIMIZATION := SIZE
|
||||
endif
|
||||
|
||||
ifeq ($(call isTargetOs, windows), true)
|
||||
LIBFONTMANAGER_EXCLUDE_FILES += X11FontScaler.c \
|
||||
X11TextRenderer.c
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user