Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1018

Not possible to set -march option for gcc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.12.1
    • 1.6.0
    • General
    • None
    • Qt Creator 4.1
    • d88fefb8851040282633e12bb0a35760a864c0a1

    Description

      After updating to QtCreator 4.1 i got next issue on opening my qbs file:

      C:\Qt\Tools\QtCreator\share\qtcreator\qbs\share\qbs\modules\cpp\GenericGCC.qbs:197: error: The following properties have invalid values:
      cpp.cxxFlags: '-target', '-triple', '-arch' and '-march' cannot appear in flags; set qbs.architecture instead

      I use cpp.cxxFlags: ["-march=pentium4"].
      As you see it is used not for selecting arm/x86/x86_64 as it can be done with qbs.architecture, but to change CPU minimum command set.

      Is there is any workaround?

      Attachments

        For Gerrit Dashboard: QBS-1018
        # Subject Branch Project Status CR V

        Activity

          People

            kandeler Christian Kandeler
            johngull Vitaly
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes