================
@@ -1018,9 +1018,16 @@ std::optional<uint64_t>
Preprocessor::getStdLibCxxVersion() {
return std::nullopt;
}
+void Preprocessor::setStdLibCxxVersion(std::uint64_t Version) {
+ CXXStandardLibraryVersion = {
+ CXXStandardLibraryVersionInfo::LibStdCXX,
+ Version,
+ };
+}
+
bool Preprocessor::NeedsStdLibCxxWorkaroundBefore(uint64_t FixedVersion) {
assert(FixedVersion >= 2000'00'00 && FixedVersion <= 2100'00'00 &&
- "invalid value for __GLIBCXX__");
+ "invalid libstdc++ version number");
----------------
cor3ntin wrote:
Please revert that
https://github.com/llvm/llvm-project/pull/210802
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits