aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_build.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-01-24 14:12:27 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-01-24 14:12:27 -0800
commite3c3497dbc03607492f38e54122106bc8f00ca20 (patch)
tree14324dd15583a9b697875fa2cd30bc03fc919c98 /toolsrc/src/commands_build.cpp
parentf2ac7a32aaf9e0f374cf3025f6f86561780951eb (diff)
downloadvcpkg-e3c3497dbc03607492f38e54122106bc8f00ca20.tar.gz
vcpkg-e3c3497dbc03607492f38e54122106bc8f00ca20.zip
Suppress VS2017's vcvarsall.bat output
Diffstat (limited to 'toolsrc/src/commands_build.cpp')
-rw-r--r--toolsrc/src/commands_build.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolsrc/src/commands_build.cpp b/toolsrc/src/commands_build.cpp
index d9d5d2107..e7e005100 100644
--- a/toolsrc/src/commands_build.cpp
+++ b/toolsrc/src/commands_build.cpp
@@ -31,7 +31,7 @@ namespace vcpkg::Commands::Build
const fs::path ports_cmake_script_path = paths.ports_cmake;
const Environment::vcvarsall_and_platform_toolset vcvarsall_bat = Environment::get_vcvarsall_bat(paths);
- const std::wstring command = Strings::wformat(LR"("%s" %s && cmake -DCMD=BUILD -DPORT=%s -DTARGET_TRIPLET=%s -DVCPKG_PLATFORM_TOOLSET=%s "-DCURRENT_PORT_DIR=%s/." -P "%s")",
+ const std::wstring command = Strings::wformat(LR"("%s" %s >nul 2>&1 && cmake -DCMD=BUILD -DPORT=%s -DTARGET_TRIPLET=%s -DVCPKG_PLATFORM_TOOLSET=%s "-DCURRENT_PORT_DIR=%s/." -P "%s")",
vcvarsall_bat.path.native(),
Strings::utf8_to_utf16(target_triplet.architecture()),
Strings::utf8_to_utf16(source_paragraph.name),