From e6364c3fd55a74b31cd5ad8ad98b9534cf9f258d Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Thu, 29 Mar 2018 18:17:38 +0200 Subject: [PATCH] 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. --- platform/uwp/detect.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/uwp/detect.py b/platform/uwp/detect.py index 3ee195e4f93..0e7b125dc5e 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("""