diff options
-rw-r--r-- | src/ccache.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ccache.cpp b/src/ccache.cpp index b065f829..7884a009 100644 --- a/src/ccache.cpp +++ b/src/ccache.cpp @@ -2266,6 +2266,12 @@ do_cache_compilation(Context& ctx, const char* const* argv) TRY(set_up_uncached_err()); + // VS_UNICODE_OUTPUT prevents capturing stdout/stderr, as the output is sent + // directly to Visual Studio. + if (ctx.config.compiler_type() == CompilerType::msvc) { + Util::unsetenv("VS_UNICODE_OUTPUT"); + } + for (const auto& name : {"DEPENDENCIES_OUTPUT", "SUNPRO_DEPENDENCIES"}) { if (getenv(name)) { LOG("Unsupported environment variable: {}", name); |