File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ genrule(
18
18
# see if https://cplusplus.github.io/LWG/issue3657 is fixed with the current compiler or not
19
19
# if fixed, PathHash.h.workaround will not compile
20
20
cmd = "\n " .join ([
21
- "if $(CC) -c -x c++ -std=c++17 $(rootpath PathHash.h.workaround) -o /dev/null &> /dev/null; then" ,
21
+ "if $(CC) -c -x c++ -std=c++17 -Wno-pragma-once-outside-header \\ " ,
22
+ " $(rootpath PathHash.h.workaround) -o /dev/null &> /dev/null; then" ,
22
23
" cp $(rootpath PathHash.h.workaround) $@" ,
23
24
"else" ,
24
25
" cp $(rootpath PathHash.h.fixed) $@" ,
Original file line number Diff line number Diff line change 10
10
// std::variant would not kick in (we use std::filesystem::path in a variant used as a map key).
11
11
namespace std {
12
12
template <>
13
- struct std:: hash<std:: filesystem::path> {
14
- std:: size_t operator()(const std:: filesystem::path& path) const { return hash_value(path); }
13
+ struct hash<filesystem::path> {
14
+ size_t operator()(const filesystem::path& path) const { return hash_value(path); }
15
15
};
16
+
16
17
} // namespace std
You can’t perform that action at this time.
0 commit comments