[clang] [clang][repl] fix `new` on Mac M1 (PR #69072)
Vassil Vassilev via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 15 06:49:28 PDT 2023
================
@@ -275,7 +274,14 @@ Interpreter::create(std::unique_ptr<CompilerInstance> CI) {
if (Err)
return std::move(Err);
- auto PTU = Interp->Parse(Runtimes);
+ std::string runtimes = "";
+ if (llvm::Triple(llvm::sys::getProcessTriple()).isOSDarwin())
+ runtimes += "#include <new>\n";
----------------
vgvassilev wrote:
Why do we need to do this - perhaps, for now, we can delegate this to the user.
https://github.com/llvm/llvm-project/pull/69072
More information about the cfe-commits
mailing list