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/build_settings.cpp | |
| parent | f75a45c3fa4308a139b67bb380aacc6c937cfafb (diff) | |
| parent | fc7c7cd8abbe23cf34cc378c3450dc38a6324773 (diff) | |
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src/build_settings.cpp')
| -rw-r--r-- | src/build_settings.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp index 28ca0f088..4d3e20a7a 100644 --- a/src/build_settings.cpp +++ b/src/build_settings.cpp @@ -1805,10 +1805,11 @@ gb_internal bool init_build_paths(String init_filename) { #if defined(GB_SYSTEM_WINDOWS) if (bc->metrics.os == TargetOs_windows) { if (bc->resource_filepath.len > 0) { - bc->build_paths[BuildPath_RC] = path_from_string(ha, bc->resource_filepath); - bc->build_paths[BuildPath_RES] = path_from_string(ha, bc->resource_filepath); - bc->build_paths[BuildPath_RC].ext = copy_string(ha, STR_LIT("rc")); - bc->build_paths[BuildPath_RES].ext = copy_string(ha, STR_LIT("res")); + bc->build_paths[BuildPath_RES] = path_from_string(ha, bc->resource_filepath); + if (!string_ends_with(bc->resource_filepath, str_lit(".res"))) { + bc->build_paths[BuildPath_RC] = path_from_string(ha, bc->resource_filepath); + bc->build_paths[BuildPath_RC].ext = copy_string(ha, STR_LIT("rc")); + } } if (bc->pdb_filepath.len > 0) { |