Merge pull request #547 from MartinNowak/useCurrentDubExe
use thisExePath in recursive dub invocations
commit 42aeabdeb9cf25549f99bb8ce6da7c08ddea4dfd
2 parents 3bb1555 + 5adc00c
@Sönke Ludwig Sönke Ludwig authored on 13 Apr 2015
Showing 1 changed file
View
4
source/dub/commandline.d
// overwrite package description file with additional version information
pack_.storeInfo(dst_path);
}
logInfo("Executing dustmite...");
auto testcmd = format("dub dustmite --vquiet --test-package=%s", prj.name);
auto testcmd = format("%s dustmite --vquiet --test-package=%s -b %s -c %s --compiler %s -a %s",
thisExePath, prj.name, m_buildType, m_buildConfig, m_compilerName, m_arch);
if (m_compilerStatusCode != int.min) testcmd ~= format(" --compiler-status=%s", m_compilerStatusCode);
if (m_compilerRegex.length) testcmd ~= format(" \"--compiler-regex=%s\"", m_compilerRegex);
if (m_linkerStatusCode != int.min) testcmd ~= format(" --linker-status=%s", m_linkerStatusCode);
if (m_linkerRegex.length) testcmd ~= format(" \"--linker-regex=%s\"", m_linkerRegex);