File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ function CheckBaseDirectory()
50
50
if (! (Test-Path " ProcessHacker.sln" ))
51
51
{
52
52
Write-Host " Unable to find project directory... Exiting." - ForegroundColor Red
53
- exit 5 ;
53
+ exit 5
54
54
}
55
55
}
56
56
}
@@ -80,38 +80,42 @@ function BuildSolution([string] $FileName)
80
80
# Debug builds
81
81
& $msBuild " /m" ,
82
82
" /nologo" ,
83
+ " /nodemode:1" ,
84
+ " /nodeReuse:true" ,
83
85
" /verbosity:quiet" ,
84
86
" /p:Configuration=Debug" ,
85
87
" /p:Platform=Win32" ,
86
- " /maxcpucount:${env: NUMBER_OF_PROCESSORS} " ,
87
88
" /target:Rebuild" ,
88
89
" $FileName "
89
90
90
91
& $msBuild " /m" ,
91
92
" /nologo" ,
93
+ " /nodemode:1" ,
94
+ " /nodeReuse:true" ,
92
95
" /verbosity:quiet" ,
93
96
" /p:Configuration=Debug" ,
94
97
" /p:Platform=x64" ,
95
- " /maxcpucount:${env: NUMBER_OF_PROCESSORS} " ,
96
98
" /target:Rebuild" ,
97
99
" $FileName "
98
100
99
101
# Release builds
100
102
& $msBuild " /m" ,
101
103
" /nologo" ,
104
+ " /nodemode:1" ,
105
+ " /nodeReuse:true" ,
102
106
" /verbosity:quiet" ,
103
107
" /p:Configuration=Release" ,
104
108
" /p:Platform=Win32" ,
105
- " /maxcpucount:${env: NUMBER_OF_PROCESSORS} " ,
106
109
" /target:Rebuild" ,
107
110
" $FileName "
108
111
109
112
& $msBuild " /m" ,
110
113
" /nologo" ,
114
+ " /nodemode:1" ,
115
+ " /nodeReuse:true" ,
111
116
" /verbosity:quiet" ,
112
117
" /p:Configuration=Release" ,
113
118
" /p:Platform=x64" ,
114
- " /maxcpucount:${env: NUMBER_OF_PROCESSORS} " ,
115
119
" /target:Rebuild" ,
116
120
" $FileName "
117
121
@@ -122,6 +126,7 @@ function BuildSolution([string] $FileName)
122
126
else
123
127
{
124
128
Write-Host " `t`t [ERROR]" - ForegroundColor Red
129
+ exit 1
125
130
}
126
131
}
127
132
@@ -265,6 +270,7 @@ function BuildPublicHeaders()
265
270
else
266
271
{
267
272
Write-Host " `t`t [ERROR]" - ForegroundColor Red
273
+ exit 1
268
274
}
269
275
}
270
276
You can’t perform that action at this time.
0 commit comments