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=(
21
21
)
22
22
23
23
if [[ " $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
-
30
24
# Copy product
31
25
if [[ -n ${BAZEL_OUTPUTS_PRODUCT:- } ]]; then
32
26
cd " ${BAZEL_OUTPUTS_PRODUCT%/* } "
@@ -83,6 +77,15 @@ if [[ "$ACTION" != indexbuild ]]; then
83
77
find " $plugins_dir " -depth 2 -name " Info.plist" -exec touch {} \;
84
78
fi
85
79
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
+
86
89
# Xcode Previews has a hard time finding frameworks (`@rpath`) when using
87
90
# framework schemes, so let's symlink them into
88
91
# `$TARGET_BUILD_DIR` (since we modify `@rpath` to always include
You can’t perform that action at this time.
0 commit comments