aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-12-30 15:32:50 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-01-02 13:16:17 -0700
commit67e31807df73ad2da992293fcdf1f6ea7ca67d2a (patch)
tree89182e7bc11d3b661ba3697faa5f21e96ae050c6 /src/Module.zig
parente3bed8d81dfd7198dd4c496f19a6791e27e41f26 (diff)
downloadzig-67e31807df73ad2da992293fcdf1f6ea7ca67d2a.tar.gz
zig-67e31807df73ad2da992293fcdf1f6ea7ca67d2a.zip
stage2: CacheMode.whole fixes
* Logic to check whether a bin file is not emitted is more complicated in between `Compilation.create` and `Compilation.update`. Fixed the logic that decides whether to build compiler-rt and other support artifacts. * Basically, one cannot inspect the value of `comp.bin_file.emit` until after update() is called - fixed another instance of this happening in the CLI. * In the CLI, `runOrTest` is updated to properly use the result value of `comp.bin_file.options.emit` rather than guessing whether the output binary is. * Don't assume that the emit output has no directory components in sub_path. In other words, don't assume that the emit directory is the final directory; there may be sub-directories.
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions