From df89676a5a905ced4cae2be987742c1d4d91c563 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 25 Oct 2021 16:34:07 +0800 Subject: Fix install for mac M1 --- makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index e848a2eda..63d019542 100644 --- a/makefile +++ b/makefile @@ -117,7 +117,8 @@ install: @if [ ! -d $(destdir)/bin ]; then mkdir -p $(destdir)/bin; fi @# install the xmake directory @cp -r xmake/* $(xmake_dir_install) - @# install the xmake core file + @# install the xmake core file, @note we need remove old binary first on mac M1, otherwise it will be killed + @if [ -f $(xmake_core_install) ]; then rm $(xmake_core_install); fi @cp -p $(xmake_core) $(xmake_core_install) @chmod 755 $(xmake_core_install) @# install the xrepo bin file -- cgit v1.3.1