Skip to content

Commit 9367125

Browse files
committed
[CMake] Also treat builds in Playgrounds trains as "Xcode" builds.
These builds are meant to be as close to Xcode train builds as possible, so it makes sense to treat them this way instead of letting them be treated as OS builds or making a new kind of B&I build for them. Playgrounds trains are identifiable via the `RC_PLAYGROUNDS` environment variable being set to `YES`; if that isn't set, then it's not a Playgrounds train. This addresses <rdar://problem/85511438>.
1 parent cd8da12 commit 9367125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Runtime/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set(SWIFT_BNI_OS_BUILD FALSE)
33
set(SWIFT_BNI_XCODE_BUILD FALSE)
44
if(DEFINED ENV{RC_XBS})
5-
if(NOT DEFINED ENV{RC_XCODE} OR NOT "$ENV{RC_XCODE}")
5+
if((NOT DEFINED ENV{RC_XCODE} OR NOT "$ENV{RC_XCODE}") AND (NOT DEFINED ENV{RC_PLAYGROUNDS} OR NOT "$ENV{RC_PLAYGROUNDS}"))
66
set(SWIFT_BNI_OS_BUILD TRUE)
77
else()
88
set(SWIFT_BNI_XCODE_BUILD TRUE)

0 commit comments

Comments
 (0)