File tree 1 file changed +5
-6
lines changed
compiler-rt/cmake/Modules
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -136,14 +136,13 @@ function(darwin_test_archs os valid_archs)
136
136
137
137
# The simple program will build for x86_64h on the simulator because it is
138
138
# compatible with x86_64 libraries (mostly), but since x86_64h isn't actually
139
- # a valid or useful architecture for the iOS simulator we should drop it.
139
+ # a valid or useful architecture for the simulators. We should drop it.
140
140
if (${os} MATCHES "^(iossim|tvossim|watchossim)$" )
141
141
list (REMOVE_ITEM archs "x86_64h" )
142
- endif ()
143
-
144
- if (${os} MATCHES "iossim" )
145
- message (STATUS "Disabling i386 slice for iossim" )
146
- list (REMOVE_ITEM archs "i386" )
142
+ if ("i386" IN_LIST archs)
143
+ list (REMOVE_ITEM archs "i386" )
144
+ message (STATUS "Disabling i386 slice for simulator" )
145
+ endif ()
147
146
endif ()
148
147
149
148
if (${os} MATCHES "^ios$" )
You can’t perform that action at this time.
0 commit comments