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:
parent
ac6b99800b
commit
f0004fa690
Notes:
github-actions[bot]
2025-05-10 05:15:23 +00:00
Author: https://github.com/ADKaster
Commit: f0004fa690
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4680
2 changed files with 3 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue