Skip to content

Commit 96ff164

Browse files
Disable MSBuild console output wrapping (#119282)
This changes the output from: ``` Some/long/path/that /gets/broken/up ``` To: ``` Some/long/path/that/gets/broken/up ``` Leaving wrapping up to the terminal and making C&P much easier.
1 parent b8fe805 commit 96ff164

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Directory.Build.rsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# disable terminal logger for now: https://github.com/dotnet/runtime/issues/97211
22
-tl:false
3+
# disable line wrapping so that C&P from the console works well
4+
-clp:ForceNoAlign

src/coreclr/build-runtime.cmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ set __BuildTypeRelease=0
5555
set __PgoInstrument=0
5656
set __PgoOptimize=0
5757
set __EnforcePgo=0
58-
set __ConsoleLoggingParameters=/clp:ForceNoAlign;Summary
5958

6059
REM __PassThroughArgs is a set of things that will be passed through to nested calls to build.cmd
6160
REM when using "all".
@@ -440,7 +439,7 @@ if %__BuildNative% EQU 1 (
440439
set "__MsbuildWrn=/flp1:WarningsOnly;LogFile=!__BuildWrn!"
441440
set "__MsbuildErr=/flp2:ErrorsOnly;LogFile=!__BuildErr!"
442441
set "__MsbuildBinLog=/bl:!__BinLog!"
443-
set "__Logging=!__MsbuildLog! !__MsbuildWrn! !__MsbuildErr! !__MsbuildBinLog! !__ConsoleLoggingParameters!"
442+
set "__Logging=!__MsbuildLog! !__MsbuildWrn! !__MsbuildErr! !__MsbuildBinLog!"
444443

445444
set __CmakeBuildToolArgs=
446445
if %__Ninja% EQU 1 (

0 commit comments

Comments
 (0)