CMake: Disable [[no_unique_address]] when Swift is enabled

There's an upstream bug on this already.
This commit is contained in:
Andrew Kaster 2025-04-14 16:11:15 -06:00 committed by Andrew Kaster
parent 864ddfb55d
commit b133c27305
Notes: github-actions[bot] 2025-04-15 08:20:13 +00:00

View file

@ -139,3 +139,8 @@ endif()
if (NOT MSVC)
add_cxx_compile_options(-fstrict-flex-arrays=2)
endif()
# FIXME: https://github.com/swiftlang/swift/issues/80764
if (CMAKE_Swift_COMPILER_LOADED)
add_cxx_compile_definitions(AK_DISABLE_NO_UNIQUE_ADDRESS)
endif()