From e2f34bcdaff9d11b801fa2ce567ecf790f98b95c Mon Sep 17 00:00:00 2001 From: lhauch Date: Tue, 10 Oct 2006 17:30:59 +0000 Subject: 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 --- .../Java/Source/GenBuild/org/tianocore/build/FrameworkBuildTask.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Tools') 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) { -- cgit v1.2.3