Added a test to check the # of threads iff threading is enabled. If it's not enabled, don't try to read the number of threads in the target.txt file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1711 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
df682ead55
commit
e2f34bcdaf
@ -375,7 +375,10 @@ public class FrameworkBuildTask extends Task{
|
|||||||
}
|
}
|
||||||
|
|
||||||
str = getValue(ToolDefinitions.TARGET_KEY_MAX_CONCURRENT_THREAD_NUMBER, targetFileInfo);
|
str = getValue(ToolDefinitions.TARGET_KEY_MAX_CONCURRENT_THREAD_NUMBER, targetFileInfo);
|
||||||
if (str != null ) {
|
//
|
||||||
|
// Need to check the # of threads iff multithread is enabled.
|
||||||
|
//
|
||||||
|
if ((multithread) && (str != null )) {
|
||||||
try {
|
try {
|
||||||
int threadNum = Integer.parseInt(str);
|
int threadNum = Integer.parseInt(str);
|
||||||
if (threadNum > 0) {
|
if (threadNum > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user