diff options
author | lhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-10 17:30:59 +0000 |
---|---|---|
committer | lhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-10 17:30:59 +0000 |
commit | e2f34bcdaff9d11b801fa2ce567ecf790f98b95c (patch) | |
tree | 573386352a60f90c92c700824b3ff85bb082f811 /Tools/Java/Source/GenBuild | |
parent | df682ead55e60139c7c689d1ed870f15af205c31 (diff) | |
download | edk2-platforms-e2f34bcdaff9d11b801fa2ce567ecf790f98b95c.tar.xz |
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
Diffstat (limited to 'Tools/Java/Source/GenBuild')
-rw-r--r-- | Tools/Java/Source/GenBuild/org/tianocore/build/FrameworkBuildTask.java | 5 |
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) {
|