Skip to content

Commit 381ce6f

Browse files
committed
fix(bin/install.sh): use 'libomp_path'
1 parent 006a9e5 commit 381ce6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -625,13 +625,13 @@ function _install {
625625
fi
626626

627627
mkdir -p "$SOCKET_HOME/lib/$arch-desktop/codesign"
628-
cp -f "$libomp" "$SOCKET_HOME/lib/$arch-desktop/codesign/$(basename "$libomp")"
628+
cp -f "$libomp_path" "$SOCKET_HOME/lib/$arch-desktop/codesign/$(basename "$libomp_path")"
629629
echo "# copied '$libomp_path'"
630630

631631
echo "# modifying the install name of the copied 'libomp.dylib'"
632-
quiet install_name_tool -id "@rpath/$(basename "$libomp_path")" "$SOCKET_HOME/lib/$arch-desktop/codesign/$(basename "$libomp")"
632+
quiet install_name_tool -id "@rpath/$(basename "$libomp_path")" "$SOCKET_HOME/lib/$arch-desktop/codesign/$(basename "$libomp_path")"
633633
if (( $? != 0 )); then
634-
sudo install_name_tool -id "@rpath/$(basename "$libomp_path")" "$SOCKET_HOME/lib/$arch-desktop/codesign/$(basename "$libomp")"
634+
sudo install_name_tool -id "@rpath/$(basename "$libomp_path")" "$SOCKET_HOME/lib/$arch-desktop/codesign/$(basename "$libomp_path")"
635635
die $? "not ok - failed to modify the install name of copied 'libomp.dylib'"
636636
fi
637637
else

0 commit comments

Comments
 (0)