File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
xcodeproj/internal/bazel_integration_files Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,6 @@ readonly test_frameworks=(
2121)
2222
2323if [[ " $ACTION " != indexbuild ]]; then
24- # Symlink .o files from BAZEL_PACKAGE_BIN_DIR to OBJECT_FILE_DIR_normal/arm64
25- find " $BAZEL_PACKAGE_BIN_DIR " -name ' *.o' -exec sh -c '
26- ln -shfF "$PWD/$1" "$OBJECT_FILE_DIR_normal/arm64/$(basename "$1" | sed "s/\.swift//")"
27- ' _ {} \;
28-
29-
3024 # Copy product
3125 if [[ -n ${BAZEL_OUTPUTS_PRODUCT:- } ]]; then
3226 cd " ${BAZEL_OUTPUTS_PRODUCT%/* } "
@@ -83,6 +77,15 @@ if [[ "$ACTION" != indexbuild ]]; then
8377 find " $plugins_dir " -depth 2 -name " Info.plist" -exec touch {} \;
8478 fi
8579
80+ if [[ " ${ENABLE_PREVIEWS:- } " == " YES" ]]; then
81+ # Symlink .o files from BAZEL_PACKAGE_BIN_DIR to OBJECT_FILE_DIR_normal/arm64
82+ find " $BAZEL_PACKAGE_BIN_DIR " -name ' *.o' -exec sh -c '
83+ TARGET_FILE="$OBJECT_FILE_DIR_normal/arm64/$(basename "$1" | sed "s/\.swift//")"
84+ ln -shfF "$PWD/$1" $TARGET_FILE
85+ chmod 755 $TARGET_FILE
86+ ' _ {} \;
87+ fi
88+
8689 # Xcode Previews has a hard time finding frameworks (`@rpath`) when using
8790 # framework schemes, so let's symlink them into
8891 # `$TARGET_BUILD_DIR` (since we modify `@rpath` to always include
You can’t perform that action at this time.
0 commit comments