Skip to content

Commit f40229c

Browse files
committed
Only valid playgrounds when a target is set
1 parent a043517 commit f40229c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

script/build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ if [ "$result" -ne 0 ]; then
4545
exit $result
4646
fi
4747

48-
# Compile code in playgrounds
49-
if [[ $XCODE_SDK = "macosx" ]]; then
50-
echo "SDK is $XCODE_SDK, validating playground..."
48+
# Compile code in playgrounds
49+
if [[ -z $XCODE_PLAYGROUND_TARGET ]]; then
50+
echo "Validating playground..."
5151
. script/validate-playground.sh
5252
fi

0 commit comments

Comments
 (0)