Commit 5420ec47 authored by Kirill Smelkov's avatar Kirill Smelkov Committed by Alexandre Julliard

Try to use -fshort-wchar if possible.

parent df0ddd4a
......@@ -2556,6 +2556,14 @@ then
[has_gxx_no_for_scope="yes"],
[has_gxx_no_for_scope="no"])
)
CXXFLAGS="-fshort-wchar";
AC_CACHE_CHECK([for g++ -fshort-wchar option], has_gxx_short_wchar,
AC_TRY_COMPILE(,[
;
],
[has_gxx_short_wchar="yes"],
[has_gxx_short_wchar="no"])
)
CXXFLAGS="$OLDCXXFLAGS";
if test "$has_gxx_permissive" = "yes"
then
......@@ -2569,6 +2577,10 @@ then
then
CXXFLAGS="$CXXFLAGS -fno-for-scope"
fi
if test "$has_gxx_short_wchar" = "yes"
then
CXXFLAGS="$CXXFLAGS -fshort-wchar"
fi
fi
AC_LANG_C()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment