Просмотр исходного кода

SCons: Fix Web build when compiler version isn't properly detected

Quick fix for #82585.

A better fix requires refactoring the way we detect the compiler version
to make it more reliable, and get a consistent output. But I prefer to
keep changes minimal for 3.x branches at this point.

(cherry picked from commit 4206975e3aecaada00fd6acf77a4b6136e23f499)
Rémi Verschelde 1 год назад
Родитель
Сommit
d976743d34
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      platform/javascript/detect.py

+ 1 - 1
platform/javascript/detect.py

@@ -169,7 +169,7 @@ def configure(env):
     env["LIBSUFFIXES"] = ["$LIBSUFFIX"]
 
     # Get version info for checks below.
-    cc_semver = tuple(get_compiler_version(env))
+    cc_semver = tuple(get_compiler_version(env) or (3, 1, 14))
 
     env.Prepend(CPPPATH=["#platform/javascript"])
     env.Append(CPPDEFINES=["JAVASCRIPT_ENABLED", "UNIX_ENABLED"])