Hello,

could we perhaps lower the verbosity level of the msvc build (in src/tools/msvc/build.pl) from "detailed" to "normal"? In my experiment, this reduces the size of the build log by 96.4 percent (from 12.5 MiB to 438 KiB), or if the log is not redirected, it shortens the build time by 45 percent, from just under 6 minutes to 3.

The lines that would not be logged anymore are mostly "Task [or Target] so-and-so skipped, due to false condition". All the compiler, linker, etc. command lines are still there.

Also, with the "detailed" logs, loading the buildfarm status page for a failure in the Make stage is really painful.

--
Christian
diff --git a/src/tools/msvc/build.pl b/src/tools/msvc/build.pl
new file mode 100644
index e107d41..c4e4dc7
*** a/src/tools/msvc/build.pl
--- b/src/tools/msvc/build.pl
*************** elsif (uc($ARGV[0]) ne "RELEASE")
*** 53,59 ****
  if ($buildwhat and $vcver >= 10.00)
  {
        system(
! "msbuild $buildwhat.vcxproj /verbosity:detailed /p:Configuration=$bconf");
  }
  elsif ($buildwhat)
  {
--- 53,59 ----
  if ($buildwhat and $vcver >= 10.00)
  {
        system(
! "msbuild $buildwhat.vcxproj /verbosity:normal /p:Configuration=$bconf");
  }
  elsif ($buildwhat)
  {
*************** elsif ($buildwhat)
*** 61,67 ****
  }
  else
  {
!       system("msbuild pgsql.sln /verbosity:detailed /p:Configuration=$bconf");
  }
  
  # report status
--- 61,67 ----
  }
  else
  {
!       system("msbuild pgsql.sln /verbosity:normal /p:Configuration=$bconf");
  }
  
  # report status
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to