[compiler-rt] Build with C++17 explicitly
authorShoaib Meenai <smeenai@fb.com>
Tue, 16 Aug 2022 23:24:42 +0000 (16:24 -0700)
committerShoaib Meenai <smeenai@fb.com>
Tue, 16 Aug 2022 23:24:42 +0000 (16:24 -0700)
commit5737f6a527d782e6577e5cc1e0c743df2c98546a
treecc0df196ca9747ca6f530b75edba33820bec801e
parentcfd2c5ce580fce744f6fd6ba34e869cab05e94c3
[compiler-rt] Build with C++17 explicitly

We've started using C++17 constructs in compiler-rt now (e.g.
string_view in ORC), but when using the bootstrapping build, we won't
inherit the C++ standard from LLVM, and compilation may fail if we
default to an older standard. Explicitly build compiler-rt with C++17 in
a standalone build, which matches what other subprojects (e.g. Clang and
LLD) do.
compiler-rt/CMakeLists.txt