]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Conf/tools_def.template
BaseTools: add /Gw to CC_FLAGS for VS2013 and higher tool chain tags
authorYonghong Zhu <yonghong.zhu@intel.com>
Wed, 14 Jun 2017 07:35:03 +0000 (15:35 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Fri, 23 Jun 2017 04:24:49 +0000 (12:24 +0800)
commit75f0094ef75f35869d70bd96375be8109da20553
treeb3a469c6a47495f0608dc53959014b08ed298b2a
parent3858c58afad1e1cf84956917eae9f337e8820e56
BaseTools: add /Gw to CC_FLAGS for VS2013 and higher tool chain tags

The /Gw flag does a better job at size optimization than use of the
GLOBAL_REMOVE_IF_UNREFERENCED macro that is currently used for VS20xx
tool chains to remove unreferenced global variables.
This patch add /Gw to CC_FLAGS for VS2013 and higher tool chain tags.

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
BaseTools/Conf/tools_def.template