diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-15 02:53:01 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-15 02:53:01 +0100 |
| commit | 664a71454bd2c58ab6f06f8de6d7d34c3eb397d7 (patch) | |
| tree | 37c086909f668aa5c359369701a9225e7ea72d43 /src | |
| parent | 432388ac7fed8e295fab14d6a7c22f8bf888d2df (diff) | |
`-use-separate-modules` default on Windows only
Diffstat (limited to 'src')
| -rw-r--r-- | src/build_settings.cpp | 2 | ||||
| -rw-r--r-- | src/main.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp index 4bb76acc1..e0e7810e6 100644 --- a/src/build_settings.cpp +++ b/src/build_settings.cpp @@ -1658,7 +1658,7 @@ gb_internal void init_build_context(TargetMetrics *cross_target, Subtarget subta bc->optimization_level = gb_clamp(bc->optimization_level, -1, 3); -#if !defined(GB_SYSTEM_OSX) +#if defined(GB_SYSTEM_WINDOWS) if (bc->optimization_level <= 0) { if (!is_arch_wasm()) { bc->use_separate_modules = true; diff --git a/src/main.cpp b/src/main.cpp index da8322476..0c3ef1399 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2314,7 +2314,7 @@ gb_internal void print_show_help(String const arg0, String const &command) { print_usage_line(1, "-use-separate-modules"); print_usage_line(2, "The backend generates multiple build units which are then linked together."); print_usage_line(2, "Normally, a single build unit is generated for a standard project."); - print_usage_line(2, "This is the default behaviour for '-o:none' and '-o:minimal' builds"); + print_usage_line(2, "This is the default behaviour on Windows for '-o:none' and '-o:minimal' builds."); print_usage_line(0, ""); } |