File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,8 @@ add_swift_library(XCTest
88
88
Sources /XCTest/Public/Asynchronous/XCTWaiter.swift
89
89
Sources /XCTest/Public/Asynchronous/XCTestCase+Asynchronous.swift
90
90
Sources /XCTest/Public/Asynchronous/XCTestExpectation.swift
91
+ TARGET
92
+ ${CMAKE_C_COMPILER_TARGET}
91
93
SWIFT_FLAGS
92
94
$< $< NOT:$< CONFIG:Debug> > :-O>
93
95
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ function(add_swift_target target)
9
9
cmake_parse_arguments (AST "${options} " "${single_value_options} " "${multiple_value_options} " ${ARGN} )
10
10
11
11
set (compile_flags ${CMAKE_SWIFT_FLAGS} )
12
- set (link_flags )
12
+ set (link_flags ${CMAKE_SWIFT_LINK_FLAGS} )
13
13
14
14
if (AST_TARGET )
15
15
list (APPEND compile_flags -target;${AST_TARGET} )
@@ -219,7 +219,7 @@ function(add_swift_executable executable)
219
219
add_swift_target (${executable} ${ARGN} )
220
220
endfunction ()
221
221
222
- # Returns the current achitecture name in a variable
222
+ # Returns the current architecture name in a variable
223
223
#
224
224
# Usage:
225
225
# get_swift_host_arch(result_var_name)
@@ -241,6 +241,8 @@ function(get_swift_host_arch result_var_name)
241
241
set ("${result_var_name} " "armv6" PARENT_SCOPE )
242
242
elseif ("${CMAKE_SYSTEM_PROCESSOR} " STREQUAL "armv7l" )
243
243
set ("${result_var_name} " "armv7" PARENT_SCOPE )
244
+ elseif ("${CMAKE_SYSTEM_PROCESSOR} " STREQUAL "armv7-a" )
245
+ set ("${result_var_name} " "armv7" PARENT_SCOPE )
244
246
elseif ("${CMAKE_SYSTEM_PROCESSOR} " STREQUAL "AMD64" )
245
247
set ("${result_var_name} " "x86_64" PARENT_SCOPE )
246
248
elseif ("${CMAKE_SYSTEM_PROCESSOR} " STREQUAL "IA64" )
You can’t perform that action at this time.
0 commit comments