aboutsummaryrefslogtreecommitdiff
path: root/src/build_settings.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-05-03 17:43:14 +0100
committergingerBill <bill@gingerbill.org>2021-05-03 17:43:14 +0100
commit746e880eb521e6cf5b6a452004da9bc5d2095076 (patch)
tree7174a4d70632e65d11824d956df00e14bad13188 /src/build_settings.cpp
parente4286d0ff9d383d03b220ac8fc52934853b35c34 (diff)
Begin work on making LLVM backend work with multiple modules for possible faster compilation
Diffstat (limited to 'src/build_settings.cpp')
-rw-r--r--src/build_settings.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp
index 77d9cc506..77046cf6d 100644
--- a/src/build_settings.cpp
+++ b/src/build_settings.cpp
@@ -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