diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-11 13:04:32 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-11 13:04:32 +0100 |
| commit | 5e7634d90c71980382ce30a70d8b64047b83dc09 (patch) | |
| tree | ff63d944f29f35a8294f0c4d95102e9b13ca216e /src/cached.cpp | |
| parent | f75a45c3fa4308a139b67bb380aacc6c937cfafb (diff) | |
| parent | fc7c7cd8abbe23cf34cc378c3450dc38a6324773 (diff) | |
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src/cached.cpp')
| -rw-r--r-- | src/cached.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cached.cpp b/src/cached.cpp index 02cb1ae96..7f213ba21 100644 --- a/src/cached.cpp +++ b/src/cached.cpp @@ -200,6 +200,18 @@ gb_internal bool try_cached_build(Checker *c, Array<String> const &args) { } } + #if defined(GB_SYSTEM_WINDOWS) + if (build_context.has_resource) { + String res_path = {}; + if (build_context.build_paths[BuildPath_RC].basename == "") { + res_path = path_to_string(permanent_allocator(), build_context.build_paths[BuildPath_RES]); + } else { + res_path = path_to_string(permanent_allocator(), build_context.build_paths[BuildPath_RC]); + } + array_add(&files, res_path); + } + #endif + for (auto const &entry : c->info.load_file_cache) { auto *cache = entry.value; if (!cache || !cache->exists) { |