ci: Only use Linux clang for app image build. (#7244)
* ci: Only use Linux clang for app image build. * build: Re-add -Wno-attributes for GCC 11.
This commit is contained in:
parent
60584e861d
commit
9a6d15ab74
2 changed files with 12 additions and 4 deletions
|
@ -124,6 +124,12 @@ else()
|
|||
add_compile_options("-stdlib=libc++")
|
||||
endif()
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL GNU)
|
||||
# GCC may warn when it ignores attributes like maybe_unused,
|
||||
# which is a problem for older versions (e.g. GCC 11).
|
||||
add_compile_options("-Wno-attributes")
|
||||
endif()
|
||||
|
||||
if (MINGW)
|
||||
add_definitions(-DMINGW_HAS_SECURE_API)
|
||||
if (COMPILE_WITH_DWARF)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue