summaryrefslogtreecommitdiff
path: root/Tools/Java/Source/GenBuild
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/Java/Source/GenBuild')
-rw-r--r--Tools/Java/Source/GenBuild/org/tianocore/build/FrameworkBuildTask.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tools/Java/Source/GenBuild/org/tianocore/build/FrameworkBuildTask.java b/Tools/Java/Source/GenBuild/org/tianocore/build/FrameworkBuildTask.java
index 44eec53216..1165263898 100644
--- a/Tools/Java/Source/GenBuild/org/tianocore/build/FrameworkBuildTask.java
+++ b/Tools/Java/Source/GenBuild/org/tianocore/build/FrameworkBuildTask.java
@@ -375,7 +375,10 @@ public class FrameworkBuildTask extends Task{
}
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 {
int threadNum = Integer.parseInt(str);
if (threadNum > 0) {