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

cLanguageVersion is broken

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 1.12.0
    • Fix Version/s: 1.12.0
    • Component/s: API: JavaScript
    • Labels:
      None
    • Environment:
      Tested in QtCreator 4.7.0-beta1 which comes with Qbs 1.12.0.
    • Commits:
      07a0b3ddbb9ed39901f23ab814f856f6e2bb191a

      Description

      Property cLanguageVersion in module cpp doesn't allow to specify anything.

      When I use it inside project like this:

       

      cpp.cLanguageVersion: "c11"

       

      I get the following error:

      TypeError: Result of expression 'other.forEach' [undefined] is not a function.

       

      languageVersion(versionArray = 'c11', knownValues = c11,c99,c90,c89, lang = 'C')
      currentLanguageVersion(tag = 'c')
      compilerFlags(project = [object Object], product = [object Object], input = [object Object], output = [object Object], explicitlyDependsOn = [object Object])
      prepareCompiler(project = [object Object], product = [object Object], inputs = [object Object], outputs = [object Object], input = [object Object], output = [object Object], explicitlyDependsOn = [object Object])
      <anonymous>(project = [object Object], product = [object Object], inputs = [object Object], outputs = [object Object], input = [object Object], output = [object Object], explicitlyDependsOn = [object Object])
      

       

      On different note, the list does not accept gnu extension options like gnu11, which were previously handled as pass-through.

       

       

        Attachments

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

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            formatsh Roman Došek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes