Skip to content

Commit 4aa4b46

Browse files
committed
8351154: Use -ftrivial-auto-var-init=pattern for clang too
Reviewed-by: kbarrett, erikj
1 parent daf0213 commit 4aa4b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

make/autoconf/flags-cflags.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
482482
else
483483
DEBUG_CFLAGS_JDK="-DDEBUG"
484484
485-
if test "x$TOOLCHAIN_TYPE" = xgcc; then
485+
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang ; then
486486
INIT_PATTERN_FLAG="-ftrivial-auto-var-init=pattern"
487487
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [$INIT_PATTERN_FLAG],
488488
IF_TRUE: [

0 commit comments

Comments
 (0)