We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddd003f commit 62a5ebbCopy full SHA for 62a5ebb
cmake/modules/AddSwift.cmake
@@ -350,8 +350,10 @@ function(_add_variant_c_compile_flags)
350
endif()
351
352
if("${CFLAGS_SDK}" STREQUAL "LINUX")
353
- # this is the minimum architecture that supports 16 byte CAS, which is necessary to avoid a dependency to libatomic
354
- list(APPEND result "-march=core2")
+ if(${CFLAGS_ARCH} STREQUAL x86_64)
+ # this is the minimum architecture that supports 16 byte CAS, which is necessary to avoid a dependency to libatomic
355
+ list(APPEND result "-march=core2")
356
+ endif()
357
358
359
set("${CFLAGS_RESULT_VAR_NAME}" "${result}" PARENT_SCOPE)
0 commit comments