Skip to content

Commit feb7bb1

Browse files
committed
one more try
1 parent 34a331e commit feb7bb1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/modules/AddSwiftUnittests.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ function(add_swift_unittest test_dirname)
4949
set_property(TARGET "${test_dirname}" APPEND PROPERTY LINK_LIBRARIES "log")
5050
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
5151
set_property(TARGET "${test_dirname}" APPEND PROPERTY COMPILE_FLAGS
52-
"-Xcc -march=core2")
52+
" -march=core2")
53+
set_property(TARGET "${test_dirname}" APPEND PROPERTY LINK_FLAGS
54+
" -march=core2")
5355
endif()
5456

5557
find_program(LDLLD_PATH "ld.lld")

0 commit comments

Comments
 (0)