Skip to content

Commit e92b480

Browse files
alefranznatemcmaster
authored andcommitted
Skip Java detection on restore if not building (#10368)
1 parent 630af4d commit e92b480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ $MSBuildArguments += "/p:_RunSign=$Sign"
303303
$MSBuildArguments += "/p:TargetArchitecture=$Architecture"
304304
$MSBuildArguments += "/p:TargetOsName=win"
305305

306-
if (($All -or $BuildJava) -and -not $NoBuildJava) {
306+
if ($RunBuild -and ($All -or $BuildJava) -and -not $NoBuildJava) {
307307
$foundJdk = $false
308308
$javac = Get-Command javac -ErrorAction Ignore -CommandType Application
309309
$localJdkPath = "$PSScriptRoot\.tools\jdk\win-x64\"

0 commit comments

Comments
 (0)