summaryrefslogtreecommitdiff
path: root/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c
diff options
context:
space:
mode:
authorShi, Steven <steven.shi@intel.com>2016-08-19 10:46:20 +0800
committerLiming Gao <liming.gao@intel.com>2016-08-19 12:58:37 +0800
commit6d732bbbc2b0463f367ceca381cb1861d52cf735 (patch)
tree0d8dd65701ceda156d2cfb5df832ab28518299ab /NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c
parent00bcb5c27a5bb781099482c5763937334be91e76 (diff)
downloadedk2-platforms-6d732bbbc2b0463f367ceca381cb1861d52cf735.tar.xz
BaseTools-CLANG38: Add -O3 in DLINK2 flag
CLANG38 build fail after CC_FLAG is added in the link rule. This failure is because the CLANG38 enable the LTO through LLVMgold.so linker plugin, but the LLVMgold.so plugin cannot accept the clang -Oz CC flag as build option. After CC_FLAG is added in the link rule, the LLVMgold.so plugin reports linking error. LLVMgold.so only accept -O0 ~ -O3, and you can see it in the LLVM gold plugin source code in below: http://llvm.org/svn/llvm-project/llvm/tags/RELEASE_380/final/tools/gold/ gold-plugin.cpp line173: if (opt[1] < '0' || opt[1] > '3') message(LDPL_FATAL, "Optimization level must be between 0 and 3"); Add -O3 in the *_CLANG38_*_DLINK2_FLAGS to override the -Oz flag in *_CLANG38_*_CC_FLAGS to pass LLVMgold.so linking. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Steven Shi <steven.shi@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c')
0 files changed, 0 insertions, 0 deletions