mirror of
https://github.com/odin-lang/Odin.git
synced 2026-05-25 21:28:13 +00:00
Fix LTO with debug info by passing -g
This commit is contained in:
@@ -980,6 +980,10 @@ try_cross_linking:;
|
||||
link_command_line = gb_string_appendc(link_command_line, " -flto=thin");
|
||||
link_command_line = gb_string_append_fmt(link_command_line, " -flto-jobs=%d ", build_context.thread_count);
|
||||
|
||||
if (build_context.ODIN_DEBUG) {
|
||||
link_command_line = gb_string_appendc(link_command_line, " -g ");
|
||||
}
|
||||
|
||||
if (is_osx && !build_context.minimum_os_version_string_given) {
|
||||
link_command_line = gb_string_appendc(link_command_line, " -Wno-override-module ");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user