#!/bin/bash

ARCH=$(uname -m)

case "$ARCH" in 
	x86_64)
	/opt/kaiming-tools/lib/ld-linux-x86-64.so.2 --library-path /opt/kaiming-tools/lib /opt/kaiming-tools/bin/kaiming_ "$@"
	;;
	aarch64)
	/opt/kaiming-tools/lib/ld-linux-aarch64.so.1 --library-path /opt/kaiming-tools/lib /opt/kaiming-tools/bin/kaiming_ "$@"
	;;
	loongarch64)
	/opt/kaiming-tools/lib/ld-linux-loongarch-lp64d.so.1 --library-path /opt/kaiming-tools/lib /opt/kaiming-tools/bin/kaiming_ "$@"
	;;
	sw_64)
	/opt/kaiming-tools/lib/ld-linux.so.2 --library-path /opt/kaiming-tools/lib /opt/kaiming-tools/bin/kaiming_ "$@"
	;;
esac	


