summaryrefslogtreecommitdiff
path: root/Tools/Conf
diff options
context:
space:
mode:
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-25 06:05:31 +0000
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-25 06:05:31 +0000
commitba3a1cb5bb97ffdea980f188fbd14b08200aeac6 (patch)
treed62129b91c26e3e2603e2cc0d0849f0e3f5a261c /Tools/Conf
parent2082f93671d0e4e766e1dd71608e5193bf32f103 (diff)
downloadedk2-platforms-ba3a1cb5bb97ffdea980f188fbd14b08200aeac6.tar.xz
Enhanced the <Build_Library> macro to check OBJECTS property in case it's empty
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2311 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Conf')
-rw-r--r--Tools/Conf/BuildMacro.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tools/Conf/BuildMacro.xml b/Tools/Conf/BuildMacro.xml
index 5c467b5ce6..71c8f9b85a 100644
--- a/Tools/Conf/BuildMacro.xml
+++ b/Tools/Conf/BuildMacro.xml
@@ -540,6 +540,13 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
<var name="FILE_PATH" value="." />
<mkdir dir="${BIN_DIR}"/>
+ <if>
+ <equals arg1="${OBJECTS}" arg2="" trim="true"/>
+ <then>
+ <fail message="No object files"/>
+ </then>
+ </if>
+
<OnDependency>
<sourcefiles>
<fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}" />