mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 07:30:43 +03:00
Drop support for LLVM < 14
LLVM 14 is the first version supporting both new pass manager and opaque IR pointers.
This commit is contained in:
parent
59c0c60a10
commit
e7091dd0c7
58 changed files with 85 additions and 10856 deletions
|
@ -111,12 +111,7 @@ FileName runCPreprocessor(FileName csrcfile, const Loc &loc,
|
|||
args.push_back("/nologo");
|
||||
args.push_back("/P"); // preprocess only
|
||||
|
||||
const bool isClangCl = llvm::StringRef(cc)
|
||||
#if LDC_LLVM_VER >= 1300
|
||||
.contains_insensitive("clang-cl");
|
||||
#else
|
||||
.contains_lower("clang-cl");
|
||||
#endif
|
||||
const bool isClangCl = llvm::StringRef(cc).contains_insensitive("clang-cl");
|
||||
|
||||
if (!isClangCl) {
|
||||
args.push_back("/PD"); // print all macro definitions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue