Skip to content

Commit

Permalink
[Feature] support mac m1
Browse files Browse the repository at this point in the history
  • Loading branch information
luohaha committed Oct 8, 2022
1 parent 27f32d1 commit 8ac2599
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ IMAGE_NAME_TOOLCHAIN='toolchain'
IMAGE_NAME_THIRDPARTY='dev-env'

MACHINE_TYPE=$(uname -m)
# handle mac m1 platform, change arm64 to aarch64
if [[ "${MACHINE_TYPE}" == "arm64" ]]; then
MACHINE_TYPE="aarch64"
fi

echo "===== build image on $MACHINE_TYPE"

PARAMS_TARGET=params_source_$MACHINE_TYPE.sh
Expand Down
2 changes: 1 addition & 1 deletion install_env_gcc_aarch64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ yum install centos-release-scl -y
yum install devtoolset-10 -y
ln -sf /opt/rh/devtoolset-10/root/bin/* /usr/bin/

yum install -y epel-release
#yum install -y epel-release
yum install -y ccache python3
yum install -y bzip2 wget git libstdc++-static byacc flex automake libtool binutils-devel bison ncurses-devel make mlocate unzip patch which vim-common redhat-lsb-core zip libcurl-devel updatedb
7 changes: 6 additions & 1 deletion sr-thirdparty/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,9 @@ COPY thirdparty ${DEFAULT_DIR}/thirdparty
ENV STARROCKS_THIRDPARTY /var/local/thirdparty
ENV STARROCKS_GCC_HOME /usr

CMD top
# reinstall maven and ccache because this two libs counld be installed failed before.
RUN yum install -y epel-release
RUN yum install -y maven
RUN yum install -y ccache

CMD top

0 comments on commit 8ac2599

Please sign in to comment.