Skip to content

Commit

Permalink
Group members of ConfigHelperVulkan. (#1078)
Browse files Browse the repository at this point in the history
Move the various members into separate structures to a) group them and
b) make the names more distinct from other versions used in the helper.

This adds a `vk_` group for all the vulkan objects, a `supports_` struct
for all the booleans and a `features_` struct for all the feature
objects.
  • Loading branch information
dj2 authored Jan 13, 2025
1 parent 8b7224b commit 30458a7
Show file tree
Hide file tree
Showing 3 changed files with 169 additions and 182 deletions.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,15 @@ function(amber_default_compile_options TARGET)
target_compile_options(${TARGET} PRIVATE -fno-rtti)
endif()

if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR
"${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
target_compile_options(${TARGET} PRIVATE
-Wno-c++98-compat
-Wno-c++98-compat-pedantic
-Wno-format-pedantic
-Wno-unknown-warning-option

-Wno-switch-default
)
if (NOT ${AMBER_DISABLE_WEVERYTHING})
target_compile_options(${TARGET} PRIVATE -Weverything)
Expand Down
Loading

0 comments on commit 30458a7

Please sign in to comment.