diff --git a/source/dub/compilers/compiler.d b/source/dub/compilers/compiler.d index ece4884..e98de64 100644 --- a/source/dub/compilers/compiler.d +++ b/source/dub/compilers/compiler.d @@ -152,12 +152,12 @@ int status; if (output_callback) { - auto result = executeShell(escapeShellCommand(args), + auto result = execute(args, env, Config.none, size_t.max, cwd.toNativeString()); output_callback(result.status, result.output); status = result.status; } else { - auto compiler_pid = spawnShell(escapeShellCommand(args), + auto compiler_pid = spawnProcess(args, env, Config.none, cwd.toNativeString()); status = compiler_pid.wait(); } @@ -185,7 +185,7 @@ auto fil = generatePlatformProbeFile(); - auto result = executeShell(escapeShellCommand(compiler_binary ~ args ~ fil.toNativeString())); + auto result = execute(compiler_binary ~ args ~ fil.toNativeString()); enforce!CompilerInvocationException(result.status == 0, format("Failed to invoke the compiler %s to determine the build platform: %s", compiler_binary, result.output)); diff --git a/source/dub/internal/git.d b/source/dub/internal/git.d index dd3e128..e8913a2 100644 --- a/source/dub/internal/git.d +++ b/source/dub/internal/git.d @@ -72,7 +72,7 @@ auto git_dir_param = "--git-dir=" ~ git_dir.toNativeString(); static string exec(scope string[] params...) { - auto ret = executeShell(escapeShellCommand(params)); + auto ret = execute(params); if (ret.status == 0) return ret.output.strip; logDebug("'%s' failed with exit code %s: %s", params.join(" "), ret.status, ret.output.strip); return null;