X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FConf%2Fbuild_rule.template;fp=BaseTools%2FConf%2Fbuild_rule.template;h=ed54a55842fd9d60d3f93ce05f06f7141ec15c9c;hb=9ddd4f7f9455d9d07e749a2df65a294a1946cd2c;hp=b2667c2bb77ea02a370e9bffc1382ba708edd743;hpb=f64fbdde8c99bcf0c97f1348f02fdcd8685f1df2;p=mirror_edk2.git
diff --git a/BaseTools/Conf/build_rule.template b/BaseTools/Conf/build_rule.template
index b2667c2bb7..ed54a55842 100755
--- a/BaseTools/Conf/build_rule.template
+++ b/BaseTools/Conf/build_rule.template
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.
+# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.
# Portions copyright (c) 2008 - 2010, Apple Inc. All rights reserved.
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@@ -269,6 +269,7 @@
"$(SLINK)" $(SLINK_FLAGS) /OUT:${dst} @$(OBJECT_FILES_LIST)
+ $(RM) ${dst}
"$(SLINK)" cr ${dst} $(SLINK_FLAGS) @$(OBJECT_FILES_LIST)