Skip to content

Commit 2bfeaa7

Browse files
authored
Merge pull request #9717 from cyndyishida/backOutOfi386
Revert "[CompilerRT] Remove sanitizer support for i386 watchsim (#11
2 parents 99f0b04 + b839386 commit 2bfeaa7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake

Lines changed: 6 additions & 5 deletions
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)