diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-01-03 20:03:22 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-01-03 20:03:22 -0700 |
| commit | ff66a18555dc6c00bd928f48462c3fc44f86ab6c (patch) | |
| tree | e30f1af8d95b1e634d4076cbc521ee2b35d5c90c /src/Compilation.zig | |
| parent | 81fa31c05456facea1d1963a1e7f665351fb248d (diff) | |
| download | zig-ff66a18555dc6c00bd928f48462c3fc44f86ab6c.tar.gz zig-ff66a18555dc6c00bd928f48462c3fc44f86ab6c.zip | |
linker: fix build-obj and -fno-emit-bin
This commit fixes two problems:
* `zig build-obj` regressed from the cache-mode branch. It would crash
because it assumed that dirname on the emit bin path would not be
null. This assumption was invalid when outputting to the current
working directory - a pretty common use case for `zig build-obj`.
* When using the LLVM backend, `-fno-emit-bin` combined with any other
kind of emitting, such as `-femit-asm`, emitted nothing.
Both issues are now fixed.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions
