Skip to content

Commit

Permalink
Use rpath for pypi artifact and try smoke
Browse files Browse the repository at this point in the history
  • Loading branch information
kirklandsign committed Jul 25, 2024
1 parent dbf7d6e commit 047808f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,15 @@ if(EXECUTORCH_BUILD_PYBIND)
BUILD_RPATH "@loader_path/../../../torch/lib"
INSTALL_RPATH "@loader_path/../../../torch/lib"
)
else()
set_target_properties(
portable_lib
PROPERTIES # Assume that this library will be installed in
# `site-packages/executorch/extension/pybindings`, and that
# the custom_ops_aot_lib should be found with relative path.
BUILD_RPATH "$ORIGIN:$ORIGIN/../../examplesmodels/llama2/custom_ops"

)
endif()

install(TARGETS portable_lib
Expand Down
1 change: 1 addition & 0 deletions build/packaging/post_build_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@

set -eux

rm -rf pip-out/
echo "This script is run after building ExecuTorch binaries"

0 comments on commit 047808f

Please sign in to comment.