diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2021-04-23 00:28:36 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-04-23 05:37:01 +0000 |
commit | 70edddbf56bfca262558baecbc535256b189d976 (patch) | |
tree | 846022ed5fefeddda81513226c25e7f4c2daf11d | |
parent | f12b0df71ffc1a22020502b3f3ff6ac3f595ec8a (diff) | |
download | mongo-70edddbf56bfca262558baecbc535256b189d976.tar.gz |
SERVER-45445 Workaround Clang's buggy -frewrite-includes
-rw-r--r-- | src/third_party/fmt/dist/include/fmt/core.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/third_party/fmt/dist/include/fmt/core.h b/src/third_party/fmt/dist/include/fmt/core.h index 0a81e0ccd95..5e6a1256d58 100644 --- a/src/third_party/fmt/dist/include/fmt/core.h +++ b/src/third_party/fmt/dist/include/fmt/core.h @@ -245,6 +245,13 @@ # define FMT_USE_EXPERIMENTAL_STRING_VIEW #endif +// MONGODB HACK +// Clang -frewrite-includes, used by icecream, is broken around __has_include +// so forcefully declare that the compiler has <string_view> since MongoDB +// only uses C++17 compilers. Fixed in Clang 10. +// See https://reviews.llvm.org/D63508 +#define FMT_USE_STRING_VIEW + #ifndef FMT_UNICODE # define FMT_UNICODE !FMT_MSC_VER #endif |