Skip to content

Commit 34a331e

Browse files
committed
Fix march flag in unittest
1 parent 6db05fd commit 34a331e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/AddSwiftUnittests.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ 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-
"-march=core2")
52+
"-Xcc -march=core2")
5353
endif()
5454

5555
find_program(LDLLD_PATH "ld.lld")

0 commit comments

Comments
 (0)