Add __libcpp_version file and __libcpp_library_version function.
authorEric Fiselier <eric@efcs.ca>
Fri, 28 Oct 2016 06:06:50 +0000 (06:06 +0000)
committerEric Fiselier <eric@efcs.ca>
Fri, 28 Oct 2016 06:06:50 +0000 (06:06 +0000)
commit761e42fa3dd72d9186a5b073bf3b096fd4c27996
tree706831e57d3a2b0ce74541dd34a213a8bcb23135
parent5cee232be4d4b41453806298054269bcc3b0ddda
Add __libcpp_version file and __libcpp_library_version function.

This patch does two seperate things. First it adds a file called
"__libcpp_version" which only contains the current libc++ version
(currently 4000). This file is not intended for use as a header. This file
is used by Clang in order to easily determine the installed libc++ version.
This allows Clang to enable/disable certain language features only when the
library supports them.

The second change is the addition of _LIBCPP_LIBRARY_VERSION macro, which
returns the version of the installed dylib since it may be different than
the headers.

llvm-svn: 285382
libcxx/include/__config
libcxx/include/__libcpp_version [new file with mode: 0644]
libcxx/lib/abi/CHANGELOG.TXT
libcxx/lib/abi/x86_64-linux-gnu.abilist
libcxx/src/libcpp_version.cpp [new file with mode: 0644]
libcxx/test/libcxx/version.pass.cpp [new file with mode: 0644]