Print the version of each target during the build.
1 parent 4a777ea commit 22e589f4cfe516a6e0c1f44ce330f5c666e9c1bf
@Sönke Ludwig Sönke Ludwig authored on 25 Apr 2014
Showing 1 changed file
View
4
source/dub/generators/build.d
auto cwd = Path(getcwd());
auto target_path = pack.path ~ format(".dub/build/%s/", build_id);
 
if (!settings.force && isUpToDate(target_path, buildsettings, settings.platform, pack, packages)) {
logInfo("Target %s (%s) is up to date. Use --force to rebuild.", pack.name, pack.vers);
logInfo("Target %s %s is up to date. Use --force to rebuild.", pack.name, pack.vers);
logDiagnostic("Using existing build in %s.", target_path.toNativeString());
copyTargetFile(target_path, buildsettings, settings.platform);
return;
}
 
// determine basic build properties
auto generate_binary = !(buildsettings.options & BuildOptions.syntaxOnly);
 
logInfo("Building %s configuration \"%s\", build type %s.", pack.name, config, settings.buildType);
logInfo("Building %s %s configuration \"%s\", build type %s.", pack.name, pack.vers, config, settings.buildType);
 
if( buildsettings.preBuildCommands.length ){
logInfo("Running pre-build commands...");
runBuildCommands(buildsettings.preBuildCommands, buildsettings);