diff --git a/eosio_build.sh b/eosio_build.sh index 784ac3f3b7de725c72cb12d245cb716de71ab54e..8f90521f38efe9b1719c995d16b965f7bc391673 100755 --- a/eosio_build.sh +++ b/eosio_build.sh @@ -68,6 +68,11 @@ C_COMPILER=gcc export LLVM_DIR=${HOME}/opt/wasm/lib/cmake/llvm ;; + "Linux Mint") + FILE=${WORK_DIR}/scripts/eosio_build_ubuntu.sh + CXX_COMPILER=clang++-4.0 + C_COMPILER=clang-4.0 + ;; "CentOS Linux") FILE=${WORK_DIR}/scripts/eosio_build_centos.sh export CMAKE=${HOME}/opt/cmake/bin/cmake diff --git a/scripts/eosio_build_ubuntu.sh b/scripts/eosio_build_ubuntu.sh index 154430f30d7d5f696b832fc22e522224d25c7eda..d13c1b962aa03b20e2dd11e0a6c64eb39b70e1b8 100644 --- a/scripts/eosio_build_ubuntu.sh +++ b/scripts/eosio_build_ubuntu.sh @@ -24,11 +24,22 @@ exit 1 fi - if [ $OS_MIN -lt 4 ]; then - printf "\tYou must be running Ubuntu 16.04.x or higher to install EOSIO.\n" - printf "\tExiting now.\n" - exit 1 - fi + case $OS_NAME in + "Linux Mint") + if [ $OS_MAJ -lt 18 ]; then + printf "\tYou must be running Linux Mint 18.x or higher to install EOSIO.\n" + printf "\tExiting now.\n" + exit 1 + fi + ;; + "Ubuntu") + if [ $OS_MIN -lt 4 ]; then + printf "\tYou must be running Ubuntu 16.04.x or higher to install EOSIO.\n" + printf "\tExiting now.\n" + exit 1 + fi + ;; + esac if [ $DISK_AVAIL -lt $DISK_MIN ]; then printf "\tYou must have at least ${DISK_MIN}GB of available storage to install EOSIO.\n"