diff options
author | Liming Gao <liming.gao@intel.com> | 2017-08-24 12:38:01 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2017-08-29 09:30:31 +0800 |
commit | 578211b882fa99b1f7c82c3e5fd7eeee1510772c (patch) | |
tree | b54be60b275a3fc844c9e46430b2f06015fd5ebf /BaseTools/Conf/build_rule.template | |
parent | 51ce27fd8c583845480858eda503f38e8b42d619 (diff) | |
download | edk2-578211b882fa99b1f7c82c3e5fd7eeee1510772c.tar.gz edk2-578211b882fa99b1f7c82c3e5fd7eeee1510772c.tar.bz2 edk2-578211b882fa99b1f7c82c3e5fd7eeee1510772c.zip |
BaseTools: Support /WHOLEARCHIVE option in VS2015 tool chain
https://bugzilla.tianocore.org/show_bug.cgi?id=582
Don't enable this option in the default setting, because it may cause VS2015
linker crash. Platform can enable this option in PlatformPkg.dsc like below:
[BuildOptions]
*_*_*_DLINK2_FLAGS = /WHOLEARCHIVE
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Conf/build_rule.template')
-rwxr-xr-x | BaseTools/Conf/build_rule.template | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/BaseTools/Conf/build_rule.template b/BaseTools/Conf/build_rule.template index 1db94b696f..d8c8253983 100755 --- a/BaseTools/Conf/build_rule.template +++ b/BaseTools/Conf/build_rule.template @@ -289,6 +289,7 @@ $(DEBUG_DIR)(+)$(MODULE_NAME).dll
<Command.MSFT, Command.INTEL>
+ "$(DLINK)" /OUT:${dst} $(DLINK_FLAGS) $(DLINK2_FLAGS) $(DLINK_SPATH) @$(STATIC_LIBRARY_FILES_LIST)
"$(DLINK)" /OUT:${dst} $(DLINK_FLAGS) $(DLINK_SPATH) @$(STATIC_LIBRARY_FILES_LIST)
<Command.GCC>
|