diff options
author | namrata-ibm <bhavenamrata@gmail.com> | 2016-10-11 09:59:27 +0000 |
---|---|---|
committer | Yue Gan <yueg@google.com> | 2016-10-11 13:26:24 +0000 |
commit | 155bd6457c7426faa84b5acba991a1c80cdcf920 (patch) | |
tree | 3f4db04a5f52722548cd3b0d6f45fce20d5df5bd /scripts/bootstrap/buildenv.sh | |
parent | 22d36737aa2a37edecf6c855e61f82df3c79596b (diff) |
Adding support for Linux s390x
We have added support for Linux s390x platform in Bazel.
Closes #1891.
--
Reviewed-on: https://github.com/bazelbuild/bazel/pull/1891
MOS_MIGRATED_REVID=135777047
Diffstat (limited to 'scripts/bootstrap/buildenv.sh')
-rwxr-xr-x | scripts/bootstrap/buildenv.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/bootstrap/buildenv.sh b/scripts/bootstrap/buildenv.sh index 4a946878c2..8345dc307d 100755 --- a/scripts/bootstrap/buildenv.sh +++ b/scripts/bootstrap/buildenv.sh @@ -40,7 +40,7 @@ PLATFORM="$(uname -s | tr 'A-Z' 'a-z')" MACHINE_TYPE="$(uname -m)" MACHINE_IS_64BIT='no' -if [ "${MACHINE_TYPE}" = 'amd64' -o "${MACHINE_TYPE}" = 'x86_64' ]; then +if [ "${MACHINE_TYPE}" = 'amd64' -o "${MACHINE_TYPE}" = 'x86_64' -o "${MACHINE_TYPE}" = 's390x' ]; then MACHINE_IS_64BIT='yes' fi @@ -49,6 +49,11 @@ if [ "${MACHINE_TYPE}" = 'arm' -o "${MACHINE_TYPE}" = 'armv7l' -o "${MACHINE_TYP MACHINE_IS_ARM='yes' fi +MACHINE_IS_Z='no' +if [ "${MACHINE_TYPE}" = 's390x' ]; then + MACHINE_IS_Z='yes' +fi + # Extension for executables. EXE_EXT="" case "${PLATFORM}" in |