From b133c2730565edee786f145b8d48e1a7a0e37c7b Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Mon, 14 Apr 2025 16:11:15 -0600 Subject: [PATCH] CMake: Disable [[no_unique_address]] when Swift is enabled There's an upstream bug on this already. --- Meta/CMake/common_compile_options.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Meta/CMake/common_compile_options.cmake b/Meta/CMake/common_compile_options.cmake index d2e5e0e40a4..dea22d1be6b 100644 --- a/Meta/CMake/common_compile_options.cmake +++ b/Meta/CMake/common_compile_options.cmake @@ -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()