configure.ac |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit b1f0c23720cbb7a30128c066d54f7dcf1fdc6178
Author:     Hossein <hoss...@libreoffice.org>
AuthorDate: Wed Feb 8 23:06:29 2023 +0000
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Thu Feb 9 07:06:57 2023 +0000

    tdf#153476 Disable MS telemetry in VsDevCmd.bat
    
    MS telemetry inside VsDevCmd.bat causes problems for the autogen.sh
    script which uses it to find the Visual Studio C/C++ standard library
    via the environment variables that show the UCRT path and version.
    
    VsDevCmd.bat is the "Developer Command Prompt for Visual Studio".
    
    The telemtry is disabled by:
    
      set VSCMD_SKIP_SENDTELEMETRY=1
    
    This change resolves the problems described in tdf#153476.
    
    Change-Id: I8b77a2ca0c3577b3ba490723ab7901f463562578
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146677
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/configure.ac b/configure.ac
index d6291f7f4fc5..86896f3c4c80 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3995,7 +3995,8 @@ vs_versions_to_check()
 win_get_env_from_vsdevcmdbat()
 {
     local WRAPPERBATCHFILEPATH="`mktemp -t wrpXXXXXX.bat`"
-    printf '@call "%s/../Common7/Tools/VsDevCmd.bat" /no_logo\r\n' "$(cygpath 
-w $VC_PRODUCT_DIR)" > $WRAPPERBATCHFILEPATH
+    printf '@set VSCMD_SKIP_SENDTELEMETRY=1\r\n' > $WRAPPERBATCHFILEPATH
+    printf '@call "%s/../Common7/Tools/VsDevCmd.bat" /no_logo\r\n' "$(cygpath 
-w $VC_PRODUCT_DIR)" >> $WRAPPERBATCHFILEPATH
     # use 'echo.%ENV%' syntax (instead of 'echo %ENV%') to avoid outputting 
"ECHO is off." in case when ENV is empty or a space
     printf '@setlocal\r\n@echo.%%%s%%\r\n@endlocal\r\n' "$1" >> 
$WRAPPERBATCHFILEPATH
     local result

Reply via email to