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:
Steveice10
2023-12-12 09:48:06 -08:00
committed by GitHub
parent 60584e861d
commit 9a6d15ab74
2 changed files with 12 additions and 4 deletions

View File

@@ -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)