Pārlūkot izejas kodu

Merge pull request #17528 from BastiaanOlij/missing_uwp_boolvariable

Added missing import BoolVariable
Rémi Verschelde 7 gadi atpakaļ
vecāks
revīzija
6f8b79ea5f
2 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 2 1
      platform/uwp/detect.py
  2. 1 1
      platform/windows/detect.py

+ 2 - 1
platform/uwp/detect.py

@@ -25,10 +25,11 @@ def can_build():
 
 
 def get_opts():
+    from SCons.Variables import BoolVariable
 
     return [
         ('msvc_version', 'MSVC version to use. Ignored if VCINSTALLDIR is set in shell env.', None),
-        (BoolVariable('use_mingw', 'Use the Mingw compiler, even if MSVC is installed. Only used on Windows.', False)),
+        BoolVariable('use_mingw', 'Use the Mingw compiler, even if MSVC is installed. Only used on Windows.', False),
     ]
 
 

+ 1 - 1
platform/windows/detect.py

@@ -65,7 +65,7 @@ def get_opts():
         EnumVariable('debug_symbols', 'Add debug symbols to release version', 'yes', ('yes', 'no', 'full')),
         BoolVariable('separate_debug_symbols', 'Create a separate file with the debug symbols', False),
         ('msvc_version', 'MSVC version to use. Ignored if VCINSTALLDIR is set in shell env.', None),
-        (BoolVariable('use_mingw', 'Use the Mingw compiler, even if MSVC is installed. Only used on Windows.', False)),
+        BoolVariable('use_mingw', 'Use the Mingw compiler, even if MSVC is installed. Only used on Windows.', False),
     ]