diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2018-06-08 18:01:35 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2018-06-08 18:40:20 -0700 |
| commit | 9508d4aad228531661d6084267449f9fb2452d28 (patch) | |
| tree | 0679049b470a537a8e65b838fe71bb4e840070b0 /scripts | |
| parent | 895b73265b0c3ae20c5ccdba15706f90c2b5302f (diff) | |
| download | vcpkg-9508d4aad228531661d6084267449f9fb2452d28.tar.gz vcpkg-9508d4aad228531661d6084267449f9fb2452d28.zip | |
Add -disableMetrics for linux
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/bootstrap.sh | 13 |
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" |
