Add -use-single-module

This commit is contained in:
gingerBill
2025-01-22 13:26:35 +00:00
parent d4e15074ea
commit 867af80bff
2 changed files with 24 additions and 2 deletions
+5
View File
@@ -472,6 +472,7 @@ struct BuildContext {
bool ignore_microsoft_magic;
bool linker_map_file;
bool use_single_module;
bool use_separate_modules;
bool module_per_file;
bool cached;
@@ -1725,6 +1726,10 @@ gb_internal void init_build_context(TargetMetrics *cross_target, Subtarget subta
}
}
if (build_context.use_single_module) {
bc->use_separate_modules = false;
}
// TODO: Static map calls are bugged on `amd64sysv` abi.
if (bc->metrics.os != TargetOs_windows && bc->metrics.arch == TargetArch_amd64) {