Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.9.0 Alpha
-
None
-
windows 10 x64, msvc 2017
-
70e772079f4943822cc469ef83fb9c43afc36514
Description
Since `-utf-8` option was added for msvc in commit
015b53e9b4091c28b8a2d7931788 "Turn on -utf-8 compiler option for msvc2015 update 2 and up"
The problem is that `-utf-8` option is parsed as '\u' by qmake which happens to be `UndefineAllPreprocessorDefinitions` which leads to undefining of all important defintions such as `_MSC_VER` or `_WIN64` and every program fails to compile. Also I think `-utf-8` should also appear in `AdditionalOptions`.