Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-43279

wrong detection on apple clang version

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • 5.4.1
    • 5.4.0
    • Core: Other
    • None
    • MacOS X 10.7 XCode 4.6.3
    • d47b9ace50d47a4472dc9fb029bbf6e8dd810c01

      Q_CC_CLANG define always has a value 305 (clang 3.5) regardless of real clang version

      Changing file "qtbase/src/corelib/global/qcompilerdetection.h" from line 157 fixed this problem:

           if __apple_build_version__ >= 6000051
              define Q_CC_CLANG 305
           elif __apple_build_version__ >= 5030038
              define Q_CC_CLANG 304
           elif __apple_build_version__ >= 5000275
              define Q_CC_CLANG 303
           elif __apple_build_version__ >= 4250024
              define Q_CC_CLANG 302
           elif __apple_build_version__ >= 3180045
              define Q_CC_CLANG 301
           elif __apple_build_version__ >= 2111001
              define Q_CC_CLANG 300
      

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

            thiago Thiago Macieira
            ramzes2 Roman Chernenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes