Skip to content

Commit

Permalink
8286630: [11] avoid -std=c++11 CXX harfbuzz buildflag on Windows
Browse files Browse the repository at this point in the history
Reviewed-by: mdoerr, clanger
  • Loading branch information
MBaesken committed May 13, 2022
1 parent 7921cc1 commit 844f03b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions make/lib/Awt2dLibraries.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -542,10 +542,9 @@ ifeq ($(USE_EXTERNAL_HARFBUZZ), true)
else
LIBFONTMANAGER_EXTRA_SRC = libharfbuzz
HARFBUZZ_CFLAGS := -DHAVE_OT -DHAVE_FALLBACK -DHAVE_UCDN -DHAVE_ROUND
# Modern HarfBuzz requires c++11.
HARFBUZZ_CXXFLAGS := -std=c++11

# Modern HarfBuzz requires c++11; but VS does not have the flag
ifneq ($(OPENJDK_TARGET_OS), windows)
HARFBUZZ_CXXFLAGS := -std=c++11
HARFBUZZ_CFLAGS += -DGETPAGESIZE -DHAVE_MPROTECT -DHAVE_PTHREAD \
-DHAVE_SYSCONF -DHAVE_SYS_MMAN_H -DHAVE_UNISTD_H \
-DHB_NO_PRAGMA_GCC_DIAGNOSTIC
Expand Down

1 comment on commit 844f03b

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.