diff --git a/source/dub/generators/visuald.d b/source/dub/generators/visuald.d index 8448c2a..eda12dd 100644 --- a/source/dub/generators/visuald.d +++ b/source/dub/generators/visuald.d @@ -299,28 +299,26 @@ case "x86_64": arch = "x64"; break; } ret.formattedWrite(" - ", to!string(type), arch); + \n", to!string(type), arch); // debug and optimize setting - ret.formattedWrite(" - %s", type != Config.Release? "1":"0"); - ret.formattedWrite(" - %s", type == Config.Release? "1":"0"); + ret.formattedWrite(" %s\n", type != Config.Release ? "1" : "0"); + ret.formattedWrite(" %s\n", type == Config.Release ? "1" : "0"); + ret.formattedWrite(" %s\n", type == Config.Release ? "1" : "0"); + ret.formattedWrite(" %s\n", type == Config.Release ? "1" : "0"); // Lib or exe? bool is_lib = pbuildsettings.targetType != TargetType.executable; string debugSuffix = type == Config.Debug? "_d" : ""; auto bin_path = pack is m_app.mainPackage ? Path(pbuildsettings.targetPath) : Path(".dub/lib/"); bin_path.endsWithSlash = true; - ret.formattedWrite(" - %s - %s%s%s.%s", is_lib ? "1" : "0", bin_path.toNativeString(), pbuildsettings.targetName, debugSuffix, is_lib ? "lib" : "exe"); + ret.formattedWrite(" %s\n", is_lib ? "1" : "0"); + ret.formattedWrite(" %s%s%s.%s\n", bin_path.toNativeString(), pbuildsettings.targetName, debugSuffix, is_lib ? "lib" : "exe"); // include paths and string imports string imports = join(getPathSettings!"importPaths"(), " "); string stringImports = join(getPathSettings!"stringImportPaths"(), " "); - ret.formattedWrite(" - %s + ret.formattedWrite(" %s %s", imports, stringImports); // Compiler? @@ -383,8 +381,6 @@ 0 0 0 - 0 - 0 1 0 0