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.
This commit is contained in:
parent
4dbae5a738
commit
e6364c3fd5
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ def get_flags():
|
||||||
|
|
||||||
def configure(env):
|
def configure(env):
|
||||||
|
|
||||||
|
env.msvc = True
|
||||||
|
|
||||||
if (env["bits"] != "default"):
|
if (env["bits"] != "default"):
|
||||||
print("Error: bits argument is disabled for MSVC")
|
print("Error: bits argument is disabled for MSVC")
|
||||||
print("""
|
print("""
|
||||||
|
|
Loading…
Reference in a new issue