aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarkus Rickert <rickertm@users.noreply.github.com>2020-05-18 20:05:23 +0200
committerGitHub <noreply@github.com>2020-05-18 11:05:23 -0700
commit47e9a1d1c1f95f26020ccf44c4bef570ac740583 (patch)
treea0c42baa99253a625b5caf2a53a78520b3a48efe /scripts
parent9f516b9347e993fd7692f4683e6cb35d1d24f913 (diff)
downloadvcpkg-47e9a1d1c1f95f26020ccf44c4bef570ac740583.tar.gz
vcpkg-47e9a1d1c1f95f26020ccf44c4bef570ac740583.zip
[vcpkg] msbuild: do not build vcpkgmetricsuploader when -disableMetrics (#11368)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/bootstrap.ps17
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/bootstrap.ps1 b/scripts/bootstrap.ps1
index 1eaf1c598..8603647b3 100644
--- a/scripts/bootstrap.ps1
+++ b/scripts/bootstrap.ps1
@@ -426,5 +426,10 @@ Read more about vcpkg telemetry at docs/about/privacy.md
Write-Verbose "Placing vcpkg.exe in the correct location"
Copy-Item "$vcpkgReleaseDir\vcpkg.exe" "$vcpkgRootDir\vcpkg.exe"
-Copy-Item "$vcpkgReleaseDir\vcpkgmetricsuploader.exe" "$vcpkgRootDir\scripts\vcpkgmetricsuploader.exe"
+
+if (-not $disableMetrics)
+{
+ Copy-Item "$vcpkgReleaseDir\vcpkgmetricsuploader.exe" "$vcpkgRootDir\scripts\vcpkgmetricsuploader.exe"
+}
+
Remove-Item "$vcpkgReleaseDir" -Force -Recurse -ErrorAction SilentlyContinue