mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-18 03:42:23 -07:00
Begin work on making LLVM backend work with multiple modules for possible faster compilation
This commit is contained in:
@@ -207,6 +207,8 @@ struct BuildContext {
|
||||
bool ignore_microsoft_magic;
|
||||
bool linker_map_file;
|
||||
|
||||
bool use_separate_modules;
|
||||
|
||||
u32 cmd_doc_flags;
|
||||
Array<String> extra_packages;
|
||||
|
||||
@@ -807,6 +809,10 @@ void init_build_context(TargetMetrics *cross_target) {
|
||||
bc->max_align = metrics->max_align;
|
||||
bc->link_flags = str_lit(" ");
|
||||
|
||||
if (bc->metrics.os == TargetOs_windows) {
|
||||
// bc->use_separate_modules = bc->optimization_level == 0;
|
||||
}
|
||||
|
||||
|
||||
// NOTE(zangent): The linker flags to set the build architecture are different
|
||||
// across OSs. It doesn't make sense to allocate extra data on the heap
|
||||
|
||||
Reference in New Issue
Block a user