mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-11 22:08:42 +00:00
Clarify -lto help text
This commit is contained in:
@@ -1648,7 +1648,7 @@ gb_internal bool parse_build_flags(Array<String> args) {
|
||||
GB_ASSERT(value.kind == ExactValue_String);
|
||||
if (str_eq_ignore_case(value.value_string, str_lit("thin"))) {
|
||||
build_context.lto_kind = LTO_Thin;
|
||||
if (build_context.linker_choice == Linker_Invalid) {
|
||||
if (build_context.linker_choice == Linker_Invalid || build_context.linker_choice == Linker_Default) {
|
||||
build_context.linker_choice = Linker_lld;
|
||||
}
|
||||
if (!build_context.use_separate_modules) {
|
||||
@@ -2826,8 +2826,8 @@ gb_internal int print_show_help(String const arg0, String command, String option
|
||||
print_usage_line(2, "States that the project is to be build with link-time optimizations.");
|
||||
print_usage_line(2, "This also enables '-use-separate-modules' (if not already set) and `-linker:lld");
|
||||
print_usage_line(2, "Choices:");
|
||||
print_usage_line(3, "thin");
|
||||
print_usage_line(3, "thin-files");
|
||||
print_usage_line(3, "thin (one module per package)");
|
||||
print_usage_line(3, "thin-files (one module file)");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user