mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 14:29:53 +08:00
Suppress VS2017's vcvarsall.bat output
This commit is contained in:
parent
f2ac7a32aa
commit
e3c3497dbc
@ -31,7 +31,7 @@ namespace vcpkg::Commands::Build
|
|||||||
|
|
||||||
const fs::path ports_cmake_script_path = paths.ports_cmake;
|
const fs::path ports_cmake_script_path = paths.ports_cmake;
|
||||||
const Environment::vcvarsall_and_platform_toolset vcvarsall_bat = Environment::get_vcvarsall_bat(paths);
|
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(),
|
vcvarsall_bat.path.native(),
|
||||||
Strings::utf8_to_utf16(target_triplet.architecture()),
|
Strings::utf8_to_utf16(target_triplet.architecture()),
|
||||||
Strings::utf8_to_utf16(source_paragraph.name),
|
Strings::utf8_to_utf16(source_paragraph.name),
|
||||||
|
Loading…
Reference in New Issue
Block a user