Skip to content

Commit 8d8aebf

Browse files
committed
Update nightly script
1 parent b3659e8 commit 8d8aebf

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

build/sdk/makesdk.ps1

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function CheckBaseDirectory()
5050
if (!(Test-Path "ProcessHacker.sln"))
5151
{
5252
Write-Host "Unable to find project directory... Exiting." -ForegroundColor Red
53-
exit 5;
53+
exit 5
5454
}
5555
}
5656
}
@@ -80,38 +80,42 @@ function BuildSolution([string] $FileName)
8080
# Debug builds
8181
& $msBuild "/m",
8282
"/nologo",
83+
"/nodemode:1",
84+
"/nodeReuse:true",
8385
"/verbosity:quiet",
8486
"/p:Configuration=Debug",
8587
"/p:Platform=Win32",
86-
"/maxcpucount:${env:NUMBER_OF_PROCESSORS}",
8788
"/target:Rebuild",
8889
"$FileName"
8990

9091
& $msBuild "/m",
9192
"/nologo",
93+
"/nodemode:1",
94+
"/nodeReuse:true",
9295
"/verbosity:quiet",
9396
"/p:Configuration=Debug",
9497
"/p:Platform=x64",
95-
"/maxcpucount:${env:NUMBER_OF_PROCESSORS}",
9698
"/target:Rebuild",
9799
"$FileName"
98100

99101
# Release builds
100102
& $msBuild "/m",
101103
"/nologo",
104+
"/nodemode:1",
105+
"/nodeReuse:true",
102106
"/verbosity:quiet",
103107
"/p:Configuration=Release",
104108
"/p:Platform=Win32",
105-
"/maxcpucount:${env:NUMBER_OF_PROCESSORS}",
106109
"/target:Rebuild",
107110
"$FileName"
108111

109112
& $msBuild "/m",
110113
"/nologo",
114+
"/nodemode:1",
115+
"/nodeReuse:true",
111116
"/verbosity:quiet",
112117
"/p:Configuration=Release",
113118
"/p:Platform=x64",
114-
"/maxcpucount:${env:NUMBER_OF_PROCESSORS}",
115119
"/target:Rebuild",
116120
"$FileName"
117121

@@ -122,6 +126,7 @@ function BuildSolution([string] $FileName)
122126
else
123127
{
124128
Write-Host "`t`t[ERROR]" -ForegroundColor Red
129+
exit 1
125130
}
126131
}
127132

@@ -265,6 +270,7 @@ function BuildPublicHeaders()
265270
else
266271
{
267272
Write-Host "`t`t[ERROR]" -ForegroundColor Red
273+
exit 1
268274
}
269275
}
270276

0 commit comments

Comments
 (0)