~andrewrk/ziglang

2 2

FWD: Using Zig as a linker

Details
Message ID
<NhS5gmj--3-9@tuta.io>
DKIM signature
missing
Download raw message
Hello, is there any way to use Zig as a linker e.g. `zig ld`? Thank you.
Details
Message ID
<20231029180749.67348f434a614b0e3fe182c6@olowe.co>
In-Reply-To
<NhS5gmj--3-9@tuta.io> (view parent)
DKIM signature
missing
Download raw message
Found this in-progress  ticket: https://github.com/ziglang/zig/issues/8755

So it seems like it's not possible (yet!)
Details
Message ID
<6c3da2a0-57d8-4e27-a8f9-e961f8ab8839@ziglang.org>
In-Reply-To
<20231029180749.67348f434a614b0e3fe182c6@olowe.co> (view parent)
DKIM signature
missing
Download raw message
On 10/29/23 00:07, Oliver Lowe wrote:
> Found this in-progress  ticket: https://github.com/ziglang/zig/issues/8755
> 
> So it seems like it's not possible (yet!)

Note that this is only for the feature of matching ld's command line. 
You can already use `zig cc` as a linker the same way you would use a C 
compiler as a linker driver.

zig cc -o executable foo.o libbar.a -lbaz
Reply to thread Export thread (mbox)