Skip to content

Commit 833a2bd

Browse files
committed
include ARM linux build in the bdist
1 parent b07555c commit 833a2bd

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ if [ "$os_type" = "Linux" ]; then
606606
if [ $release_arm -eq 1 ]; then
607607
########################## Linux release|arm
608608

609-
cpp_compiler=g++-arm-linux-gnueabihf
609+
cpp_compiler=arm-linux-gnueabihf-g++
610610

611611
printf "%s\n" "Compiling libebm with $cpp_compiler for Linux release|arm"
612612
obj_path_unsanitized="$tmp_path_unsanitized/gcc/obj/release/linux/arm/libebm"
@@ -634,7 +634,7 @@ if [ "$os_type" = "Linux" ]; then
634634
########################## Linux debug|arm
635635
printf "%s\n" "Compiling libebm with $cpp_compiler for Linux debug|arm"
636636

637-
cpp_compiler=g++-arm-linux-gnueabihf
637+
cpp_compiler=arm-linux-gnueabihf-g++
638638

639639
obj_path_unsanitized="$tmp_path_unsanitized/gcc/obj/debug/linux/arm/libebm"
640640
bin_path_unsanitized="$tmp_path_unsanitized/gcc/bin/debug/linux/arm/libebm"

python/interpret-core/interpret/utils/_native.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,8 @@ def _get_ebm_lib_path(debug=False):
929929
lib_file = None
930930
if plat == "Linux" and machine == "x86_64" and is_64_bit:
931931
lib_file = "libebm_linux_x64"
932+
elif plat == "Linux" and machine == "arm64":
933+
lib_file = "libebm_linux_arm"
932934
elif plat == "Windows" and machine == "AMD64" and is_64_bit:
933935
lib_file = "libebm_win_x64"
934936
elif plat == "Darwin" and machine == "x86_64" and is_64_bit:
@@ -961,6 +963,8 @@ def _get_ebm_lib_path(debug=False):
961963
lib_file = None
962964
if plat == "Linux" and machine == "x86_64" and is_64_bit:
963965
lib_file = "libebm_linux_x64"
966+
elif plat == "Linux" and machine == "arm64":
967+
lib_file = "libebm_linux_arm"
964968
elif plat == "Windows" and machine == "AMD64" and is_64_bit:
965969
lib_file = "libebm_win_x64"
966970
elif plat == "Darwin" and machine == "x86_64" and is_64_bit:

python/interpret-core/setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ def run(self):
193193
"root/bld/lib/libebm_win_x64_debug.pdb",
194194
"root/bld/lib/libebm_linux_x64.so",
195195
"root/bld/lib/libebm_linux_x64_debug.so",
196+
"root/bld/lib/libebm_linux_arm.so",
197+
"root/bld/lib/libebm_linux_arm_debug.so",
196198
"root/bld/lib/libebm_mac_x64.dylib",
197199
"root/bld/lib/libebm_mac_x64_debug.dylib",
198200
"root/bld/lib/libebm_mac_arm.dylib",

0 commit comments

Comments
 (0)