Skip to content

Commit b839386

Browse files
committed
Revert "[CompilerRT] Remove sanitizer support for i386 watchsim (llvm#117013)"
This reverts commit 762dc7d. This broke the swift build.
1 parent 086b115 commit b839386

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake

+6-5
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,14 @@ 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 simulators. We should drop it.
139+
# a valid or useful architecture for the iOS simulator we should drop it.
140140
if(${os} MATCHES "^(iossim|tvossim|watchossim)$")
141141
list(REMOVE_ITEM archs "x86_64h")
142-
if ("i386" IN_LIST archs)
143-
list(REMOVE_ITEM archs "i386")
144-
message(STATUS "Disabling i386 slice for simulator")
145-
endif()
142+
endif()
143+
144+
if(${os} MATCHES "iossim")
145+
message(STATUS "Disabling i386 slice for iossim")
146+
list(REMOVE_ITEM archs "i386")
146147
endif()
147148

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

0 commit comments

Comments
 (0)