aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2018-06-08 18:01:35 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2018-06-08 18:40:20 -0700
commit9508d4aad228531661d6084267449f9fb2452d28 (patch)
tree0679049b470a537a8e65b838fe71bb4e840070b0 /scripts
parent895b73265b0c3ae20c5ccdba15706f90c2b5302f (diff)
downloadvcpkg-9508d4aad228531661d6084267449f9fb2452d28.tar.gz
vcpkg-9508d4aad228531661d6084267449f9fb2452d28.zip
Add -disableMetrics for linux
Diffstat (limited to 'scripts')
-rw-r--r--scripts/bootstrap.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh
index e999fa55e..e883f5476 100644
--- a/scripts/bootstrap.sh
+++ b/scripts/bootstrap.sh
@@ -1,5 +1,16 @@
#!/bin/sh
+vcpkgDisableMetrics="0"
+for var in "$@"
+do
+ if [ "$var" = "-disableMetrics" ]; then
+ vcpkgDisableMetrics="1"
+ else
+ echo "Unknown argument $var"
+ exit 1
+ fi
+done
+
# Find vcpkg-root
vcpkgRootDir=$(X= cd -- "$(dirname -- "$0")" && pwd -P)
while [ "$vcpkgRootDir" != "/" ] && ! [ -e "$vcpkgRootDir/.vcpkg-root" ]; do
@@ -190,7 +201,7 @@ buildDir="$vcpkgRootDir/toolsrc/build.rel"
rm -rf "$buildDir"
mkdir -p "$buildDir"
-(cd "$buildDir" && CXX=$CXX "$cmakeExe" .. -DCMAKE_BUILD_TYPE=Release -G "Ninja" "-DCMAKE_MAKE_PROGRAM=$ninjaExe")
+(cd "$buildDir" && CXX=$CXX "$cmakeExe" .. -DCMAKE_BUILD_TYPE=Release -G "Ninja" "-DCMAKE_MAKE_PROGRAM=$ninjaExe" "-DDEFINE_DISABLE_METRICS=$vcpkgDisableMetrics")
(cd "$buildDir" && "$cmakeExe" --build .)
rm -rf "$vcpkgRootDir/vcpkg"