From: lhauch Date: Tue, 10 Oct 2006 17:30:59 +0000 (+0000) Subject: Added a test to check the # of threads iff threading is enabled. If it's not enabled... X-Git-Tag: edk2-stable201903~24163 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=e2f34bcdaff9d11b801fa2ce567ecf790f98b95c 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 --- 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) {