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

qmake generates wrong msvc project

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.9.0 Alpha
    • Fix Version/s: 5.9.0 Beta 1
    • Component/s: Build tools: qmake
    • Labels:
      None
    • Environment:
      windows 10 x64, msvc 2017
    • Commits:
      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes