Skip to content

Commit

Permalink
Enable opting out of native toolset install (#2675)
Browse files Browse the repository at this point in the history
  • Loading branch information
chcosta authored May 3, 2019
1 parent 9c7a49b commit 34a2b5b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eng/common/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ try {
. $configureToolsetScript
}

if ($restore) {
if (($restore) -and ($null -eq $env:DisableNativeToolsetInstalls)) {
InitializeNativeTools
}

Expand Down
2 changes: 1 addition & 1 deletion eng/common/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ if [[ -n "${useInstalledDotNetCli:-}" ]]; then
use_installed_dotnet_cli="$useInstalledDotNetCli"
fi

if [[ "$restore" == true ]]; then
if [[ "$restore" == true && -z ${DisableNativeToolsetInstalls:-} ]]; then
InitializeNativeTools
fi

Expand Down
Empty file modified eng/common/native/install-cmake.sh
100644 → 100755
Empty file.

0 comments on commit 34a2b5b

Please sign in to comment.