Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 committed Dec 10, 2021
1 parent 07aa0ce commit 738ccdc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion source/dub/project.d
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,14 @@ class Project {
possible configuration instead of the first "executable"
configuration.
*/
string getDefaultConfiguration(BuildPlatform platform, bool allow_non_library_configs = true)
string getDefaultConfiguration(const BuildPlatform platform, bool allow_non_library_configs = true)
const {
auto cfgs = getPackageConfigs(platform, null, allow_non_library_configs);
return cfgs[m_rootPackage.name];
}

/// ditto
string getDefaultConfiguration(scope const ref BuildPlatform platform, bool allow_non_library_configs = true)
const {
auto cfgs = getPackageConfigs(platform, null, allow_non_library_configs);
return cfgs[m_rootPackage.name];
Expand Down

0 comments on commit 738ccdc

Please sign in to comment.