aboutsummaryrefslogtreecommitdiff
path: root/src/build_settings.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-07-08 23:39:14 +0100
committergingerBill <bill@gingerbill.org>2024-07-08 23:39:14 +0100
commit87ac68fcf2b5fcaa02118929b820e61bbd8c10c4 (patch)
treee39b1d5203b780d611a67f4bddb3e9c60689df4c /src/build_settings.cpp
parent48aef5016499291996f0710449a26f1f92078d51 (diff)
Add `-internal-cached`
Diffstat (limited to 'src/build_settings.cpp')
-rw-r--r--src/build_settings.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp
index c8c83422f..be896f6fa 100644
--- a/src/build_settings.cpp
+++ b/src/build_settings.cpp
@@ -326,7 +326,12 @@ enum SanitizerFlags : u32 {
SanitizerFlag_Thread = 1u<<2,
};
-
+struct BuildCacheData {
+ u64 crc;
+ String cache_dir;
+ String manifest_path;
+ bool copy_already_done;
+};
// This stores the information for the specify architecture of this build
struct BuildContext {
@@ -427,6 +432,9 @@ struct BuildContext {
bool use_separate_modules;
bool module_per_file;
+ bool cached;
+ BuildCacheData build_cache_data;
+
bool no_threaded_checker;
bool show_debug_messages;