]> granicus.if.org Git - llvm/commit
Add secondary libstdc++ 4.8 and 5.1 detection mechanisms
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 7 Mar 2019 21:28:33 +0000 (21:28 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Thu, 7 Mar 2019 21:28:33 +0000 (21:28 +0000)
commit60af31346f230c371e9f3dc053fe2f3604d3b832
treefb29eb461cae76aefec50ea1a394823e8fd18d89
parentcfbc66ebed1f2f67dfcd77edf4fc7bd00cf02f81
Add secondary libstdc++ 4.8 and 5.1 detection mechanisms

Summary:
The date-based approach to detecting unsupported versions of libstdc++
does not handle bug fix releases of older versions. As an example, the
`__GLIBCXX__` value associated with version 5.1, `20150422`, is less
than the values associated with versions 4.8.5 and 4.9.3.

This patch adds secondary checks based on certain properties in
sufficiently new versions of libstdc++.

Reviewers: jfb, tstellar, rnk, sfertile, nemanjai

Reviewed By: jfb

Subscribers: mgorny, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D58682

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355638 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/CheckCompilerVersion.cmake