Skip to content

Commit

Permalink
bootstrap: Check support for unordered_map from compiler mode
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Adam Ciarciński authored and bradking committed Nov 30, 2017
1 parent 7746fdb commit 375eca7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bootstrap
Expand Up @@ -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."
Expand Down

0 comments on commit 375eca7

Please sign in to comment.