diff options
author | Adam CiarciĆski <adam@viamedium.pl> | 2017-11-30 18:57:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-11-30 19:01:26 (GMT) |
commit | 375eca7881bceabf591a4fc278c198657aafbd5e (patch) | |
tree | 67b5f0310e0b627e4af41245400d83a605097d85 /bootstrap | |
parent | 7746fdb2fe0177341aadeafec2ae73aa08ddfaf6 (diff) | |
download | CMake-375eca7881bceabf591a4fc278c198657aafbd5e.zip CMake-375eca7881bceabf591a4fc278c198657aafbd5e.tar.gz CMake-375eca7881bceabf591a4fc278c198657aafbd5e.tar.bz2 |
bootstrap: Check support for unordered_map from compiler mode
Some versions of clang 5 (with libc++) have a problem with
`unordered_map` under `-std=gnu++1z`:
/usr/include/c++/__hash_table:1134:43: error: conflicting types for '__hash_table<_Tp, _Hash, _Equal, _Alloc>'
Include `unordered_map` in our test source so that we reject this
combination and fall back to an older C++ standard flag.
Fixes: #17526
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1056,6 +1056,7 @@ TMPFILE=`cmake_tmp_file` echo ' #include <iostream> #include <memory> +#include <unordered_map> #if __cplusplus < 201103L #error "Compiler is not in a mode aware of C++11." |