Fix compilation with LLVM 14 (#3822)

This commit is contained in:
Nicholas Wilson 2021-09-17 22:41:49 +08:00 committed by GitHub
parent 613ed42dca
commit 1568d0cdca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 135 additions and 33 deletions

View file

@ -36,6 +36,10 @@ void addMscrtLibs(bool useInternalToolchain, std::vector<std::string> &args) {
// We need the vcruntime lib for druntime's exception handling (ldc.eh_msvc).
// Pick one of the 4 variants matching the selected main UCRT lib.
#if LDC_LLVM_VER >= 1400
#define contains_lower contains_insensitive
#define endswith_lower endswith_insensitive
#endif
if (useInternalToolchain) {
assert(mscrtlibName.contains_lower("vcruntime"));
return;