Skip to content

Commit fbe4622

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] Fix aarch64 builds (#7872)
Summary: (Note: this ignores all push blocking failures!) Reviewed By: matteobettini Differential Revision: D48900379 fbshipit-source-id: d3d9556c4313069ef46ff0f26e242a8976cfdcb8
1 parent 13036a8 commit fbe4622

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packaging/pre_build_script.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if [[ "$(uname)" == Darwin ]]; then
1111
conda install -yq wget
1212
fi
1313

14-
if [[ "$(uname)" == Darwin || "$OSTYPE" == "msys" || "$ARCH" == "aarch64" ]]; then
14+
if [[ "$(uname)" == Darwin || "$OSTYPE" == "msys" ]]; then
1515
# Install libpng from Anaconda (defaults)
1616
conda install libpng -yq
1717
conda install -yq ffmpeg=4.2 libjpeg-turbo -c pytorch
@@ -22,8 +22,13 @@ if [[ "$(uname)" == Darwin || "$OSTYPE" == "msys" || "$ARCH" == "aarch64" ]]; th
2222
bin_path=$(dirname $python_exec)
2323
cp "$bin_path/Library/bin/libjpeg.dll" torchvision
2424
fi
25-
2625
else
26+
27+
if [[ "$ARCH" == "aarch64" ]]; then
28+
conda install libpng -yq
29+
conda install -yq ffmpeg=4.2 libjpeg-turbo -c pytorch-nightly
30+
fi
31+
2732
# Install native CentOS libJPEG, freetype and GnuTLS
2833
yum install -y libjpeg-turbo-devel freetype gnutls
2934

0 commit comments

Comments
 (0)