diff --git a/examples/vibed-main/dub.json b/examples/vibed-main/dub.json index 5c1042b..f33469c 100644 --- a/examples/vibed-main/dub.json +++ b/examples/vibed-main/dub.json @@ -3,6 +3,5 @@ "description": "A project using vibe.d and a custom main() function", "dependencies": { "vibe-d": "~master" - }, - "versions": ["VibeCustomMain"] + } } diff --git a/source/dub/dub.d b/source/dub/dub.d index 97d87fc..fb4997e 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -664,10 +664,6 @@ BuildSettingsTemplate tcinfo = m_project.rootPackage.recipe.getConfiguration(config).buildSettings; tcinfo.targetType = TargetType.executable; tcinfo.targetName = test_config; - // HACK for vibe.d's legacy main() behavior: - tcinfo.versions[""] ~= "VibeCustomMain"; - m_project.rootPackage.recipe.buildSettings.versions[""] = m_project.rootPackage.recipe.buildSettings.versions.get("", null).remove!(v => v == "VibeDefaultMain"); - // TODO: remove this ^ once vibe.d has removed the default main implementation auto mainfil = tcinfo.mainSourceFile; if (!mainfil.length) mainfil = m_project.rootPackage.recipe.buildSettings.mainSourceFile;