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

Not possible to set -march option for gcc

XMLWordPrintable

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

      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?

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes