1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-07 21:17:07 +09:00

AK+CMake: Remove workaround for swiftc mishandling [[no_unique_address]]

This commit is contained in:
Andrew Kaster 2025-05-09 21:07:37 -06:00 committed by Andrew Kaster
parent ac6b99800b
commit f0004fa690
Notes: github-actions[bot] 2025-05-10 05:15:23 +00:00
2 changed files with 3 additions and 12 deletions

View file

@ -243,14 +243,10 @@
#ifdef NO_UNIQUE_ADDRESS
# undef NO_UNIQUE_ADDRESS
#endif
#if defined(AK_DISABLE_NO_UNIQUE_ADDRESS)
# define NO_UNIQUE_ADDRESS
#if defined(AK_OS_WINDOWS)
# define NO_UNIQUE_ADDRESS [[msvc::no_unique_address]]
#else
# if defined(AK_OS_WINDOWS)
# define NO_UNIQUE_ADDRESS [[msvc::no_unique_address]]
# else
# define NO_UNIQUE_ADDRESS [[no_unique_address]]
# endif
# define NO_UNIQUE_ADDRESS [[no_unique_address]]
#endif
// GCC doesn't have __has_feature but clang does

View file

@ -138,8 +138,3 @@ 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()