Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 committed Feb 17, 2023
1 parent 4a79fb7 commit acd050a
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 @@ -197,7 +197,14 @@ class Project {
possible configuration instead of the first "executable"
configuration.
*/
string getDefaultConfiguration(in 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 acd050a

Please sign in to comment.