mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8283323: libharfbuzz optimization level results in extreme build times
Reviewed-by: erikj, prr
This commit is contained in:
parent
5905b02c0e
commit
2c43ecb43f
@ -470,7 +470,6 @@ else
|
||||
|
||||
endif
|
||||
|
||||
|
||||
LIBFONTMANAGER_EXTRA_HEADER_DIRS := \
|
||||
libharfbuzz \
|
||||
common/awt \
|
||||
@ -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