Skip to content

Commit 788020a

Browse files
committed
[RELEASE ONLY CHANGES] Use prebuilt torch in MacOS CI jobs
1 parent a9b0cab commit 788020a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.ci/scripts/utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ install_pytorch_and_domains() {
107107
TORCHVISION_VERSION=$(cat .github/ci_commit_pins/vision.txt)
108108
export TORCHVISION_VERSION
109109

110-
install_domains
110+
#install_domains
111111

112112
popd || return
113113
# Print sccache stats for debugging

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,11 @@ if(EXECUTORCH_BUILD_PYBIND)
877877
portable_lib PROPERTIES BUILD_RPATH "@loader_path/../../../torch/lib"
878878
INSTALL_RPATH "@loader_path/../../../torch/lib"
879879
)
880+
if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang"
881+
and CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "16.0"
882+
)
883+
target_link_options(portable_lib PRIVATE -Wl,-ldclassic)
884+
endif()
880885
else()
881886
set_target_properties(
882887
portable_lib PROPERTIES BUILD_RPATH "$ORIGIN/../../../torch/lib"

0 commit comments

Comments
 (0)