1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

[configure.ac,meson] gnu++17

This commit is contained in:
Witold Filipczyk 2022-06-09 21:36:12 +02:00
parent 2f16f6aee6
commit a3807c40fe
2 changed files with 3 additions and 3 deletions

View File

@ -806,7 +806,7 @@ if test "x$CONFIG_ECMASCRIPT_SMJS" = xyes ||
AC_SUBST(SPIDERMONKEY_CFLAGS)
AC_SUBST(CONFIG_SPIDERMONKEY)
AC_SUBST(CONFIG_XML)
CFLAGS="$CFLAGS -fpermissive -Wno-sign-compare -std=c++17 $SPIDERMONKEY_CFLAGS"
CFLAGS="$CFLAGS -fpermissive -Wno-sign-compare -std=gnu++17 $SPIDERMONKEY_CFLAGS"
fi
if test "x$CONFIG_QUICKJS" = xyes; then
@ -814,7 +814,7 @@ if test "x$CONFIG_QUICKJS" = xyes; then
EL_CONFIG(CONFIG_QUICKJS, [quickjs])
AC_SUBST(CONFIG_QUICKJS)
AC_SUBST(CONFIG_XML)
CFLAGS="$CFLAGS -fpermissive -Wno-sign-compare -std=c++17"
CFLAGS="$CFLAGS -fpermissive -Wno-sign-compare -std=gnu++17"
fi
# ===================================================================
# Check for Guile, optional even if installed.

View File

@ -138,7 +138,7 @@ conf_data.set('HAVE_SYS_TIME_H', 1)
compiler = meson.get_compiler('c')
if conf_data.get('CONFIG_ECMASCRIPT')
extracflags = ['-xc++', '-fpermissive', '-Wno-sign-compare', '-std=c++17']
extracflags = ['-xc++', '-fpermissive', '-Wno-sign-compare', '-std=gnu++17']
else
extracflags = ['-Wc++-compat']
endif