build settings for linux x86/x64

This commit is contained in:
Jaquee
2016-12-15 14:56:33 +01:00
parent 160a042165
commit 05a6f9cb6d
2 changed files with 11 additions and 3 deletions

View File

@@ -6,7 +6,11 @@ function get_platform {
if [ "$(uname)" == "Darwin" ]; then
platform="darwin"
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
platform="linux"
if [ "$(expr substr $(uname -m) 1 6)" == "x86_64" ]; then
platform="linux64"
else
platform="linux32"
fi
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then
platform="mingw64"
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then