Browse Source

Fix UWP build after #17194

`uwp/detect.py` was not setting the `env.msvc` variable to true causing
scons to pass wrong arguments to `msvc` (using `clang/gcc` options)
which in turn break the build due to `-Werror=return-type` not being
recognized by ms compiler.
Fabio Alessandrelli 7 years ago
parent
commit
e6364c3fd5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      platform/uwp/detect.py

+ 2 - 0
platform/uwp/detect.py

@@ -43,6 +43,8 @@ def get_flags():
 
 def configure(env):
 
+    env.msvc = True
+
     if (env["bits"] != "default"):
         print("Error: bits argument is disabled for MSVC")
         print("""