mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Add /NOIMPLIB /NOEXP on MSVC linker by default when building an executable
This commit is contained in:
@@ -322,6 +322,12 @@ gb_internal i32 linker_stage(lbGenerator *gen) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch (build_context.build_mode) {
|
||||||
|
case BuildMode_Executable:
|
||||||
|
link_settings = gb_string_append_fmt(link_settings, " /NOIMPLIB /NOEXP");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
result = system_exec_command_line_app("msvc-link",
|
result = system_exec_command_line_app("msvc-link",
|
||||||
"\"%.*slink.exe\" %s %.*s -OUT:\"%.*s\" %s "
|
"\"%.*slink.exe\" %s %.*s -OUT:\"%.*s\" %s "
|
||||||
"/nologo /incremental:no /opt:ref /subsystem:%s "
|
"/nologo /incremental:no /opt:ref /subsystem:%s "
|
||||||
|
|||||||
Reference in New Issue
Block a user