Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ac5aea4

Browse files
thomasjpfanglemaitre
authored andcommitted
CI Fixes MAC ar build error (#19968)
1 parent 8c558fc commit ac5aea4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build_tools/azure/install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ if [[ "$DISTRIB" == "conda" ]]; then
5151
# sklearn/svm/_libsvm.cpython-38-darwin.so,
5252
# 2): Symbol not found: _svm_check_parameter error
5353
TO_INSTALL="$TO_INSTALL compilers>=1.0.4,!=1.1.0 llvm-openmp"
54+
else
55+
# Without openmp, we use the system clang. Here we use /usr/bin/ar
56+
# instead because llvm-ar errors
57+
export AR=/usr/bin/ar
5458
fi
5559
fi
5660
make_conda $TO_INSTALL

0 commit comments

Comments
 (0)