diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-22 15:10:56 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-22 15:10:56 +0000 |
| commit | 5c491c54a22044ef1570c3fb709e14264e367fb1 (patch) | |
| tree | 7018758523bfc4f73ad2c640ef332ca72cfdd0ba /tools/driver/NativeCompiler.cc | |
| parent | 11266ea732e2533081283290c3c865c234e79b2a (diff) | |
fix(driver): cache the embedded standard library per user
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tools/driver/NativeCompiler.cc')
| -rw-r--r-- | tools/driver/NativeCompiler.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/driver/NativeCompiler.cc b/tools/driver/NativeCompiler.cc index dc1f068..fa3d2a1 100644 --- a/tools/driver/NativeCompiler.cc +++ b/tools/driver/NativeCompiler.cc @@ -337,8 +337,7 @@ bool compileNative(const cps::CodeGen &CG, llvm::StringRef OutputPath, const cha #endif LinkArgs.append(Job.getArguments().begin(), Job.getArguments().end()); auto Result = lld::lldMain(LinkArgs, llvm::outs(), llvm::errs(), Linkers); - if (!Result.canRunAgain) std::exit(1); - if (Result.retCode != 0) return fail("native linking failed"); + if (!Result.canRunAgain || Result.retCode != 0) return fail("native linking failed"); if (auto EC = llvm::sys::fs::setPermissions(StagedPath, llvm::sys::fs::all_read | llvm::sys::fs::owner_write | llvm::sys::fs::all_exe)) return fail("cannot set executable permissions: " + EC.message()); |
