[tor-commits] [tor-browser/tor-browser-52.0.2esr-7.0-2] Backport of tjr's patch for bug 1314979

gk at torproject.org gk at torproject.org
Wed Apr 5 20:00:21 UTC 2017


commit b63cc0d449954e51a72721f34e3628e75daba59a
Author: Georg Koppen <gk at torproject.org>
Date:   Wed Feb 1 19:25:39 2017 +0000

    Backport of tjr's patch for bug 1314979
---
 build/moz.configure/toolchain.configure |  6 +++++-
 moz.configure                           |  6 ++++--
 old-configure.in                        | 12 +++++++++++-
 3 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/build/moz.configure/toolchain.configure b/build/moz.configure/toolchain.configure
index 8b24161..288bf48 100644
--- a/build/moz.configure/toolchain.configure
+++ b/build/moz.configure/toolchain.configure
@@ -906,5 +906,9 @@ set_define('HAVE_VISIBILITY_ATTRIBUTE',
 set_config('WRAP_SYSTEM_INCLUDES', wrap_system_includes)
 set_config('VISIBILITY_FLAGS', visibility_flags)
 
-include('windows.configure')
+ at depends(target, c_compiler)
+def is_windows(target, compiler):
+    return target.kernel == 'WINNT' and compiler.type in ['msvc', 'clang-cl']
+
+include('windows.configure', when=is_windows)
 include('rust.configure')
diff --git a/moz.configure b/moz.configure
index ec90697..8457d48 100644
--- a/moz.configure
+++ b/moz.configure
@@ -278,11 +278,13 @@ system_hunspell = pkg_check_modules('MOZ_HUNSPELL', 'hunspell',
 set_config('MOZ_SYSTEM_HUNSPELL', depends_if(system_hunspell)(lambda _: True))
 
 
- at depends(target)
+ at depends(target, c_compiler)
 @imports('os')
-def makensis_progs(target):
+def makensis_progs(target, compiler):
     if target.kernel != 'WINNT':
         return
+    elif target.kernel == 'WINNT' and compiler.type not in ['msvc', 'clang-cl']:
+        return
 
     candidates = [
         'makensis-3.0b3.exe',
diff --git a/old-configure.in b/old-configure.in
index 11a7d58..abf8323 100644
--- a/old-configure.in
+++ b/old-configure.in
@@ -3384,7 +3384,17 @@ if test -n "$MOZ_ANGLE_RENDERER"; then
       AC_MSG_RESULT([Windows SDK not found.])
     fi
   else
-    AC_MSG_ERROR([Couldn't find Windows SDK 8.1 or higher needed for ANGLE.])
+    if test "$target" != "$host"; then
+        case "$target" in
+        *-mingw*)
+            AC_MSG_RESULT([Windows SDK not needed for ANGLE in MinGW build.])
+        ;;
+        *)
+            AC_MSG_ERROR([Couldn't find Windows SDK 8.1 or higher needed for ANGLE.])
+        esac
+    else
+        AC_MSG_ERROR([Couldn't find Windows SDK 8.1 or higher needed for ANGLE.])
+    fi
   fi
 
   if test -z "$MOZ_D3DCOMPILER_VISTA_DLL_PATH"; then





More information about the tor-commits mailing list