Emit the C++ version when compiling pytorch from source. (#32819)

Summary:
The need for this is felt because sometimes we change a build script and change the `std=c++XX` flag, which does not get caught until the compilation has progressed for a while.

https://github.com/pytorch/pytorch/issues/31757
Pull Request resolved: https://github.com/pytorch/pytorch/pull/32819

Differential Revision: D19697205

Pulled By: ezyang

fbshipit-source-id: b045a1d15e24c4c6007b5d1464756051d32bf911
This commit is contained in:
Sameer Deshmukh
2020-02-03 10:09:43 -08:00
committed by Facebook Github Bot
parent c841ab403c
commit b34e0dda24

View File

@ -101,6 +101,12 @@ std::string show_config() {
}
#endif
#if defined(__cplusplus)
{
ss << " - C++ Version: " << __cplusplus << "\n";
}
#endif
#if defined(__clang_major__)
{
ss << " - clang " << __clang_major__ << "." << __clang_minor__ << "." << __clang_patchlevel__ << "\n";