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

cLanguageVersion applies to old clang-cl compiler

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 2.0
    • None
    • Windows
    • 9f4254a94 (2.0)

    Description

      Scenario

      • Make a profile with clang-cl 10.0 and vcvars from MSVC 14.2;
      • Set "cpp.cLanguageVersion:c11" in your product.

      Expected behavior
      qbs doesn't set "/std:c11" as a compiler flag because clang-cl 10.0 doesn't support it

      Actual behavior
      qbs set "/std:c11", clang-cl raises "unused-command-line-argument" warning

      Additional info
      It looks like comparing MSVC and clang-cl versions via Utilities.versionCompare works errorneously because of the "compiler version build number" component in cpp.compilerVersion for MSVC

      Attachments

        1. build.log
          0.7 kB
        2. clang-cl-version.log
          0.1 kB
        3. main.c
          0.1 kB
        4. profile.log
          0.6 kB
        5. test.qbs
          0.1 kB

        Issue Links

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

          Activity

            People

              arch Ivan Komissarov
              undefbehavior Dmitrii Meshkov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes