mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-15 01:42:37 +00:00
ICU-3500 Add --enable-strict for MSVC compiler
X-SVN-Rev: 14897
This commit is contained in:
parent
232ee12872
commit
f26bc8dcef
2 changed files with 183 additions and 218 deletions
16
icu4c/source/aclocal.m4
vendored
16
icu4c/source/aclocal.m4
vendored
|
@ -198,11 +198,11 @@ AC_DEFUN(AC_CHECK_STRICT_COMPILE,
|
|||
[
|
||||
AC_MSG_CHECKING([whether strict compiling is on])
|
||||
AC_ARG_ENABLE(strict,[ --enable-strict compile with strict compiler options [default=no]], [
|
||||
if test "$enableval" = no
|
||||
then
|
||||
ac_use_strict_options=no
|
||||
if test "$enableval" = no
|
||||
then
|
||||
ac_use_strict_options=no
|
||||
else
|
||||
ac_use_strict_options=yes
|
||||
ac_use_strict_options=yes
|
||||
fi
|
||||
], [ac_use_strict_options=no])
|
||||
AC_MSG_RESULT($ac_use_strict_options)
|
||||
|
@ -225,6 +225,14 @@ AC_DEFUN(AC_CHECK_STRICT_COMPILE,
|
|||
CXXFLAGS="$CXXFLAGS -D__STDC__=0";;
|
||||
esac
|
||||
fi
|
||||
case "${host}" in
|
||||
*-*-cygwin)
|
||||
if test `cl /? 2>&1 | head -c9` = "Microsoft"
|
||||
then
|
||||
CFLAGS="$CFLAGS /W4"
|
||||
CXXFLAGS="$CXXFLAGS /W4"
|
||||
fi
|
||||
esac
|
||||
fi
|
||||
])
|
||||
|
||||
|
|
385
icu4c/source/configure
vendored
385
icu4c/source/configure
vendored
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue