diff options
| author | LemonBoy <LemonBoy@users.noreply.github.com> | 2020-11-19 23:30:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-19 23:30:16 +0100 |
| commit | 8eaaa905f709db623432a95fd9d4e4dfecdb7eae (patch) | |
| tree | 653c13dfef4ede70444d15895a839a5b9887e37a /src/link/Wasm.zig | |
| parent | 647c6e0d0955260947d9a0e07014af2a337d9330 (diff) | |
| download | zig-8eaaa905f709db623432a95fd9d4e4dfecdb7eae.tar.gz zig-8eaaa905f709db623432a95fd9d4e4dfecdb7eae.zip | |
stage2: Make zig cc more verbose (#7166)
* stage2: Make zig cc more verbose
Make `zig cc` print more info from Clang itself and from our own linker
invocation, this is needed for CMake to properly discover all the
include directories and library search paths.
Closes #7110
* Update `update_clang_options`
* Typo fixes
Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>
Diffstat (limited to 'src/link/Wasm.zig')
| -rw-r--r-- | src/link/Wasm.zig | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/link/Wasm.zig b/src/link/Wasm.zig index bf6b34ed76..580a5df576 100644 --- a/src/link/Wasm.zig +++ b/src/link/Wasm.zig @@ -339,8 +339,11 @@ fn linkWithLLD(self: *Wasm, comp: *Compilation) !void { // Create an LLD command line and invoke it. var argv = std.ArrayList([]const u8).init(self.base.allocator); defer argv.deinit(); - // Even though we're calling LLD as a library it thinks the first argument is its own exe name. - try argv.append("lld"); + // The first argument is ignored as LLD is called as a library, set it + // anyway to the correct LLD driver name for this target so that it's + // correctly printed when `verbose_link` is true. This is needed for some + // tools such as CMake when Zig is used as C compiler. + try argv.append("ld-wasm"); if (is_obj) { try argv.append("-r"); } |
