aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorLayne Gustafson <lgustaf1@binghamton.edu>2020-04-15 10:42:13 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-04-15 12:52:35 -0400
commit480deacbab9c86d3cff32e59665e9f70b45e453d (patch)
treea82108001496397e99441b82eebccb23b49317ea /src/main.cpp
parent3fd38429e44f485907647ff85ce405b787f67bb9 (diff)
downloadzig-480deacbab9c86d3cff32e59665e9f70b45e453d.tar.gz
zig-480deacbab9c86d3cff32e59665e9f70b45e453d.zip
CC: fix binary dupe with no -o
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 523c422768..f67fec795f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -916,6 +916,7 @@ static int main0(int argc, char **argv) {
}
if (emit_bin_override_path == nullptr) {
emit_bin_override_path = "a.out";
+ enable_cache = CacheOptOn;
}
} else {
cmd = CmdBuild;