aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-03-13 23:59:36 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-03-13 23:59:36 -0400
commit66d7370facc63648eb85fb7f1b94753ab0823ff3 (patch)
tree3b65163734d31ca35bdaee43d7bb95f916f39940 /src/main.cpp
parent66e76a0209586000a78fe896071e73202a80b81f (diff)
downloadzig-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