]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Conf/BuildMacro.xml
Fix CygWinGCC build failed. When GCC build, map file is not generated. We don't need...
[mirror_edk2.git] / Tools / Conf / BuildMacro.xml
index 1ddcbc04ad31b48f031a020d7d4319f940eb3b7e..2e1d6ad737e194aa75393c9e075af4db9c4835d8 100644 (file)
@@ -1035,7 +1035,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
           <!-- Copy the efi file to BIN and OUTPUT directory -->\r
           <copy file="${DEST_DIR_OUTPUT}/@{FILENAME}.efi" tofile="${BIN_DIR}/@{FILENAME}.efi" />\r
           <copy file="${DEST_DIR_OUTPUT}/@{FILENAME}.efi" tofile="${DEST_DIR_DEBUG}/@{FILENAME}.efi" />\r
-          <copy file="${DEST_DIR_DEBUG}/@{FILENAME}.map" tofile="${BIN_DIR}/@{FILENAME}.map" />\r
+          <if>\r
+            <available file="${DEST_DIR_DEBUG}/@{FILENAME}.map" />\r
+            <then>\r
+              <copy file="${DEST_DIR_DEBUG}/@{FILENAME}.map" tofile="${BIN_DIR}/@{FILENAME}.map" />\r
+            </then>\r
+          </if>\r
         </sequential>\r
       </OnDependency>\r
     </sequential>\r