Skip to content

Commit 762dc7d

Browse files
committed
[CompilerRT] Remove sanitizer support for i386 watchsim (llvm#117013)
This patch removes remaining support for i386 simulators, watch was the only one left though. resolves: rdar://102741146 (cherry picked from commit 877b934)
1 parent 2e8a41f commit 762dc7d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake

+5-6
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,13 @@ function(darwin_test_archs os valid_archs)
136136

137137
# The simple program will build for x86_64h on the simulator because it is
138138
# 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.
140140
if(${os} MATCHES "^(iossim|tvossim|watchossim)$")
141141
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()
147146
endif()
148147

149148
if(${os} MATCHES "^ios$")

0 commit comments

Comments
 (0)