mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 10:57:35 +03:00
Fix compilation with LLVM 14 (#3822)
This commit is contained in:
parent
613ed42dca
commit
1568d0cdca
13 changed files with 135 additions and 33 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue