aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-05-04 18:07:49 +0100
committergingerBill <bill@gingerbill.org>2020-05-04 18:07:49 +0100
commit45274868c3404d6e7822c146c7e5319f84d6542d (patch)
tree94cf4a69f53d0f59ba1fec0d27ffcf639450c510 /src/main.cpp
parent3ef956681738a3b12aa9931af43c08df2f5f99a9 (diff)
Fix `-subsystem:windows` for normal backend
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 975723084..bea8c847e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1801,9 +1801,9 @@ int main(int arg_count, char const **arg_ptr) {
if (build_context.build_mode == BuildMode_DynamicLibrary) {
output_ext = "dll";
- link_settings = gb_string_append_fmt(link_settings, "/DLL");
+ link_settings = gb_string_append_fmt(link_settings, " /DLL");
} else {
- link_settings = gb_string_append_fmt(link_settings, "/ENTRY:mainCRTStartup");
+ link_settings = gb_string_append_fmt(link_settings, " /ENTRY:mainCRTStartup");
}
if (build_context.pdb_filepath != "") {
@@ -1822,6 +1822,7 @@ int main(int arg_count, char const **arg_ptr) {
char const *subsystem_str = build_context.use_subsystem_windows ? "WINDOWS" : "CONSOLE";
+
if (!build_context.use_lld) { // msvc
if (build_context.has_resource) {
exit_code = system_exec_command_line_app("msvc-link",