diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-04-12 02:36:28 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-04-12 02:36:28 +0000 |
commit | 0eaa1933bc16010889cb39a8b91cbd0a48d985b2 (patch) | |
tree | 9e03b5ad1d1dc7b0931216c6ad06453652fc55c0 /Tools | |
parent | fdbc81c8cde898dfaa6ffd3c703f38099561efb2 (diff) | |
download | edk2-0eaa1933bc16010889cb39a8b91cbd0a48d985b2.tar.gz edk2-0eaa1933bc16010889cb39a8b91cbd0a48d985b2.tar.bz2 edk2-0eaa1933bc16010889cb39a8b91cbd0a48d985b2.zip |
Fix CygWinGCC build failed. When GCC build, map file is not generated. We don't need copy map file when gcc build.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2561 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/Conf/BuildMacro.xml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Tools/Conf/BuildMacro.xml b/Tools/Conf/BuildMacro.xml index 1ddcbc04ad..2e1d6ad737 100644 --- a/Tools/Conf/BuildMacro.xml +++ b/Tools/Conf/BuildMacro.xml @@ -1035,7 +1035,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. <!-- Copy the efi file to BIN and OUTPUT directory -->
<copy file="${DEST_DIR_OUTPUT}/@{FILENAME}.efi" tofile="${BIN_DIR}/@{FILENAME}.efi" />
<copy file="${DEST_DIR_OUTPUT}/@{FILENAME}.efi" tofile="${DEST_DIR_DEBUG}/@{FILENAME}.efi" />
- <copy file="${DEST_DIR_DEBUG}/@{FILENAME}.map" tofile="${BIN_DIR}/@{FILENAME}.map" />
+ <if>
+ <available file="${DEST_DIR_DEBUG}/@{FILENAME}.map" />
+ <then>
+ <copy file="${DEST_DIR_DEBUG}/@{FILENAME}.map" tofile="${BIN_DIR}/@{FILENAME}.map" />
+ </then>
+ </if>
</sequential>
</OnDependency>
</sequential>
|