mirror of https://github.com/acidanthera/audk.git
BaseTools: Build against C++14 when building with clang
clang 17 defaults to C++17, where the 'register' keyword is deprecated and the warning changed to an error. To avoid build errors, compile against C++14 by specifying '-std=c++14' in CXXFLAGS. Signed-off-by: Rebecca Cran <rebecca@quicinc.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
parent
728ff1da33
commit
a56ee36c49
|
@ -106,7 +106,7 @@ endif
|
|||
endif
|
||||
ifneq ($(CLANG),)
|
||||
LDFLAGS =
|
||||
CXXFLAGS = -Wno-deprecated-register -Wno-unused-result
|
||||
CXXFLAGS = -Wno-deprecated-register -Wno-unused-result -std=c++14
|
||||
else
|
||||
LDFLAGS =
|
||||
CXXFLAGS = -Wno-unused-result
|
||||
|
|
Loading…
Reference in New Issue