diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-03-13 23:59:36 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-03-13 23:59:36 -0400 |
| commit | 66d7370facc63648eb85fb7f1b94753ab0823ff3 (patch) | |
| tree | 3b65163734d31ca35bdaee43d7bb95f916f39940 /src/main.cpp | |
| parent | 66e76a0209586000a78fe896071e73202a80b81f (diff) | |
| download | zig-66d7370facc63648eb85fb7f1b94753ab0823ff3.tar.gz zig-66d7370facc63648eb85fb7f1b94753ab0823ff3.zip | |
special case when doing build-obj with just one source file
When building an object file from only one source file, instead of
having a two-stage cache system, we special case it and use the cache
directory that the .o file is output to as the final cache directory for
all the build artifacts.
When there are more than 1 source file, the linker has to merge objects
into one, and so the two stage approach makes sens. But in the case of
only one source file, this prevents needlessly copying the object file.
This commit fixes an issue with the previous one, where zig with cache
enabled would print a directory that actually did not have any build
artifacts in it.
Diffstat (limited to 'src/main.cpp')
0 files changed, 0 insertions, 0 deletions
