Skip to content

Commit 2a58198

Browse files
committed
Disable wheel delocation on macos
The executorch build system will ensure that .dylib/.so files have LC_LOAD_DYLIB and LC_RPATH entries that will work when they're installed. Delocating (i.e., making copies of the .dylibs that ET's libs depend on) will break any libs that depend on the torch libraries if users ever import both `torch` and the executorch library. Both import paths must load exactly the same file, not just a copy of it.
1 parent c8722f7 commit 2a58198

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/build-wheels-m1.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
# "recursive" default to do less work, and to give the buck daemon fewer
5656
# files to look at.
5757
submodules: true
58+
delocate-wheel: false
5859
env-var-script: build/packaging/env_var_script_m1.sh
5960
pre-script: ${{ matrix.pre-script }}
6061
post-script: ${{ matrix.post-script }}

0 commit comments

Comments
 (0)