Skip to content

Replace clang++ system() call with direct ld.lld invocation via LLVM APIs#62

Open
atamas19 wants to merge 1 commit into
mainfrom
atamas19/linkWithLLD_rework
Open

Replace clang++ system() call with direct ld.lld invocation via LLVM APIs#62
atamas19 wants to merge 1 commit into
mainfrom
atamas19/linkWithLLD_rework

Conversation

@atamas19

@atamas19 atamas19 commented May 31, 2026

Copy link
Copy Markdown
Collaborator

Replace fragile clang++/system() subprocess linking with direct ld.lld invocation via llvm::sys::ExecuteAndWait. Migrate CLI parsing from CLI11 to LLVM's command-line parser with lazy MLIR context initialization to avoid global option registration conflicts. Add robust runtime library and GCC directory discovery.

This addresses the #55 issue.

@atamas19 atamas19 force-pushed the atamas19/linkWithLLD_rework branch from 35e4522 to dc5e985 Compare May 31, 2026 23:08
@atamas19 atamas19 changed the title [WIP] Replace clang++ system-call linking with proper in-process linker API Replace clang++ system() call with direct ld.lld invocation via LLVM APIs Jun 1, 2026
@atamas19 atamas19 marked this pull request as ready for review June 1, 2026 18:20
@atamas19 atamas19 requested a review from Robertkq June 1, 2026 18:20
@Robertkq Robertkq requested review from emdevv and toskatron June 2, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant