Bug 641221 - Turn on -MD on mingw by default r=khuey
authorJacek Caban <jacek@codeweavers.com>
Mon, 14 Mar 2011 13:21:48 +0000
changeset 63508 60381b92efa656ead9c64b1e37130d11a8e71c5c
parent 63507 171d8c799fb4592d4ee0764a44d6254206644297
child 63509 aad612e0b8c92d9f121559a7cf0f5e3af2cf470a
push idunknown
push userunknown
push dateunknown
reviewerskhuey
bugs641221
milestone2.0b13pre
Bug 641221 - Turn on -MD on mingw by default r=khuey
configure.in
js/src/configure.in
--- a/configure.in
+++ b/configure.in
@@ -8205,17 +8205,17 @@ dnl ====================================
 dnl = Use mkdepend instead of $CC -MD for dependency generation
 dnl ========================================================
 _cpp_md_flag=
 MOZ_ARG_DISABLE_BOOL(md,
 [  --disable-md            Do not use compiler-based dependencies ],
   [_cpp_md_flag=],
   [_cpp_md_flag=1],
   [dnl Default is to turn on -MD if using GNU-compatible compilers
-   if test "$GNU_CC" -a "$GNU_CXX" -a "$OS_ARCH" != "WINNT" -a "$OS_ARCH" != "WINCE"; then
+   if test "$GNU_CC" -a "$GNU_CXX"; then
      _cpp_md_flag=1
    fi
   dnl Default is to use -xM if using Sun Studio on Solaris
    if test "$SOLARIS_SUNPRO_CC"; then
      _cpp_md_flag=1
    fi])
 if test "$_cpp_md_flag"; then
   COMPILER_DEPEND=1
--- a/js/src/configure.in
+++ b/js/src/configure.in
@@ -5482,17 +5482,17 @@ dnl ====================================
 dnl = Use mkdepend instead of $CC -MD for dependency generation
 dnl ========================================================
 _cpp_md_flag=
 MOZ_ARG_DISABLE_BOOL(md,
 [  --disable-md            Do not use compiler-based dependencies ],
   [_cpp_md_flag=],
   [_cpp_md_flag=1],
   [dnl Default is to turn on -MD if using GNU-compatible compilers
-   if test "$GNU_CC" -a "$GNU_CXX" -a "$OS_ARCH" != "WINNT" -a "$OS_ARCH" != "WINCE"; then
+   if test "$GNU_CC" -a "$GNU_CXX"; then
      _cpp_md_flag=1
    fi
   dnl Default is to use -xM if using Sun Studio on Solaris
    if test "$SOLARIS_SUNPRO_CC"; then
      _cpp_md_flag=1
    fi])
 if test "$_cpp_md_flag"; then
   COMPILER_DEPEND=1