Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-59431

qmake generates wrong msvc project

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9.0 Beta 1
    • 5.9.0 Alpha
    • Build tools: qmake
    • 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`.

      Attachments

        Activity

          People

            jbornema Joerg Bornemann
            predelnik Sergey Semushin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: