https://bugs.freedesktop.org/show_bug.cgi?id=66029

          Priority: medium
            Bug ID: 66029
          Assignee: mesa-dev@lists.freedesktop.org
           Summary: More robust way of detecting LLVM major and minor
                    versions
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: klemensb...@gmail.com
          Hardware: All
            Status: NEW
           Version: git
         Component: Mesa core
           Product: Mesa

Created attachment 81187
  --> https://bugs.freedesktop.org/attachment.cgi?id=81187&action=edit
Use the new version defines if available

LLVM added LLVM_VERSION_MAJOR and LLVM_VERSION_MINOR defines in r150405 (see
http://thread.gmane.org/gmane.comp.compilers.llvm.cvs/107277).

For better compatibility and to avoid breaking in the future, these should be
used instead of the current sed hack that deletes the "svn.*" part from the
`llvm-config --version' output.

The attached patch uses the new defines if available, and falls back to the sed
hack otherwise.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to