mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-23 06:05:00 -07:00
Add -use-single-module
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user