Begin work on making LLVM backend work with multiple modules for possible faster compilation

This commit is contained in:
gingerBill
2021-05-03 17:43:14 +01:00
parent e4286d0ff9
commit 746e880eb5
4 changed files with 416 additions and 278 deletions
+6
View File
@@ -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