Fix GCC builds with Debug build type

This commit is contained in:
voidanix 2025-03-28 00:33:57 +01:00 committed by Briar
parent 127fdbc93e
commit d60cf76e2d
2 changed files with 14 additions and 0 deletions

View file

@ -366,6 +366,11 @@ else()
# VMA
set_source_files_properties(vulkan_common/vma.cpp PROPERTIES COMPILE_OPTIONS "-Wno-conversion;-Wno-unused-variable;-Wno-unused-parameter;-Wno-missing-field-initializers")
# Get around GCC failing with intrinsics in Debug
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_BUILD_TYPE MATCHES "Debug")
set_source_files_properties(host1x/vic.cpp PROPERTIES COMPILE_OPTIONS "-O2")
endif()
endif()
if (ARCHITECTURE_x86_64)