Skip to content

Commit 49a62bf

Browse files
author
Karim Alweheshy
committed
Symlink all .o files in derived data
1 parent 075e220 commit 49a62bf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

xcodeproj/internal/bazel_integration_files/copy_outputs.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ readonly test_frameworks=(
2121
)
2222

2323
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 -sfh "$PWD/$1" "$OBJECT_FILE_DIR_normal/arm64/$(basename "$1" | sed "s/\.swift//")"
27+
' _ {} \;
28+
29+
2430
# Copy product
2531
if [[ -n ${BAZEL_OUTPUTS_PRODUCT:-} ]]; then
2632
cd "${BAZEL_OUTPUTS_PRODUCT%/*}"

0 commit comments

Comments
 (0)