summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam CiarciƄski <adam@viamedium.pl>2017-11-30 18:57:12 (GMT)
committerBrad King <brad.king@kitware.com>2017-11-30 19:01:26 (GMT)
commit375eca7881bceabf591a4fc278c198657aafbd5e (patch)
tree67b5f0310e0b627e4af41245400d83a605097d85
parent7746fdb2fe0177341aadeafec2ae73aa08ddfaf6 (diff)
downloadCMake-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
-rwxr-xr-xbootstrap1
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index 47f7e76..6da87e7 100755
--- a/bootstrap
+++ b/bootstrap
@@ -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."