Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-15011

qbsprojectmanager CPP_TOOLCHAINPREFIX extraction error on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 3.5.1
    • Qt Creator 3.5.0
    • None
    • windows 7, gcc-arm-none-eabi
    • d58002dd4674ed5632714482c9639a2d259007db

    Description

      On windows system the qbsprojectmanager plugin couldn't resolve the proper CPP_TOOLCHAINPREFIX
      In the "defaultpropertyprovider.cpp"
      the compiler fileName in tc>compilerCommand() have to ends with ".exe" like "arm-none-eabi-g++.exe",
      -the extractToolchainPrefix() function couldn't match it to "g+" because it ends with "g.exe" and not with "g+"
      I suggest the following change in the DefaultPropertyProvider::autoGeneratedProperties function
      replace the following line 'QString compilerName = cxxFileInfo.fileName();'
      with 'QString compilerName = cxxFileInfo.baseName();'
      it works on windows

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            morocztamas Tamas Morocz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes