←back to thread

383 points hkalbasi | 3 comments | | HN request time: 0s | source
Show context
shmerl ◴[] No.42816069[source]
That looks promising. In Rust to begin with and with the goal of being fast and support incremental linking.

To use it with Rust, this can probbaly also work using gcc as linker driver.

In project's .cargo/config.toml:

    [target.x86_64-unknown-linux-gnu]
    rustflags = ["-C", "link-arg=-fuse-ld=wild"]
Side note, but why does Rust need to plug into gcc or clang for that? Some missing functionality?
replies(2): >>42816486 #>>42817056 #
1. sedatk ◴[] No.42816486[source]
Because Rust compiler generates IR bytecode, not machine code.
replies(1): >>42816604 #
2. shmerl ◴[] No.42816604[source]
That's the reason to use llvm as part of Rust compiler toolchain, not to use gcc or clang as linker manager?
replies(1): >>42817419 #
3. sedatk ◴[] No.42817419[source]
You're right, @davidlattimore seems to have answered that.