diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-03-29 18:17:38 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-03-29 18:21:08 +0200 |
commit | e6364c3fd55a74b31cd5ad8ad98b9534cf9f258d (patch) | |
tree | 2fa414f624345ea5b8e7a61209d468837c6370aa | |
parent | 4dbae5a738e33ffe4ab69e84c006bff2adc24cf8 (diff) |
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.
-rw-r--r-- | platform/uwp/detect.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/uwp/detect.py b/platform/uwp/detect.py index 3ee195e4f9..0e7b125dc5 100644 --- a/platform/uwp/detect.py +++ b/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(""" |