mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[configure.ac,meson] gnu++17
This commit is contained in:
parent
2f16f6aee6
commit
a3807c40fe
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user