commit 97fd1a6db308607b092cad1594182d1732a76696
parent b00eda4af2a876743f8dab864c834d868a0bb8a3
Author: Kyle Milz <kyle@windows.krwm.net>
Date: Tue, 3 Jan 2017 22:08:22 -0800
inst: link when /c not given and at least one src file
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inst_frontend.cc b/inst_frontend.cc
@@ -228,7 +228,7 @@ InstFrontend::if_link_add_runtime(bool object_arg, bool compile_arg)
if (std::strcmp(m_args[0], "link") == 0)
// If we're called as link.exe we're linking for sure.
linking = true;
- if (!compile_arg)
+ if (!compile_arg && m_source_files.size() > 0)
// cl.exe main.c
linking = true;