Skip to content

Commit 9d89153

Browse files
authored
Merge pull request #35023 from buttaface/flag-fix
[build] Remove redundant block applying '-mcx16' flag again for Android x86_64
2 parents a364394 + d479753 commit 9d89153

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

stdlib/cmake/modules/AddSwiftStdlib.cmake

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -273,21 +273,6 @@ function(_add_target_variant_c_compile_flags)
273273
endif()
274274
endif()
275275

276-
if(${CFLAGS_SDK} STREQUAL ANDROID)
277-
if(${CFLAGS_ARCH} STREQUAL x86_64)
278-
# NOTE(compnerd) Android NDK 21 or lower will generate library calls to
279-
# `__sync_val_compare_and_swap_16` rather than lowering to the CPU's
280-
# `cmpxchg16b` instruction as the `cx16` feature is disabled due to a bug
281-
# in Clang. This is being fixed in the current master Clang and will
282-
# hopefully make it into Clang 9.0. In the mean time, workaround this in
283-
# the build.
284-
if(CMAKE_C_COMPILER_ID MATCHES Clang AND CMAKE_C_COMPILER_VERSION
285-
VERSION_LESS 9.0.0)
286-
list(APPEND result -mcx16)
287-
endif()
288-
endif()
289-
endif()
290-
291276
if(CFLAGS_ENABLE_ASSERTIONS)
292277
list(APPEND result "-UNDEBUG")
293278
else()

0 commit comments

Comments
 (0)