Skip to content

Commit 6db05fd

Browse files
committed
Set march for unittest on Linux
1 parent d913eef commit 6db05fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/modules/AddSwiftUnittests.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ function(add_swift_unittest test_dirname)
4848
"${android_system_libs}")
4949
set_property(TARGET "${test_dirname}" APPEND PROPERTY LINK_LIBRARIES "log")
5050
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
51-
set_property(TARGET "${test_dirname}" APPEND PROPERTY LINK_LIBRARIES
52-
"atomic")
51+
set_property(TARGET "${test_dirname}" APPEND PROPERTY COMPILE_FLAGS
52+
"-march=core2")
5353
endif()
5454

5555
find_program(LDLLD_PATH "ld.lld")

0 commit comments

Comments
 (0)