From 0744d56fee865bed14adea3afb2533940fef53d1 Mon Sep 17 00:00:00 2001 From: dpasukhi Date: Thu, 14 Nov 2024 07:43:25 +0000 Subject: [PATCH] Coding - Update env.sh to handle aarch64 #158 Fix architecture check to include aarch64 in build and install scripts --- adm/templates/env.build.sh.in | 2 +- adm/templates/env.install.sh.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/adm/templates/env.build.sh.in b/adm/templates/env.build.sh.in index 3026d4c1f1..5eda5a5b35 100644 --- a/adm/templates/env.build.sh.in +++ b/adm/templates/env.build.sh.in @@ -21,7 +21,7 @@ shopt -u nocasematch # ----- Set path to 3rd party and OCCT libraries ----- anArch=`uname -m` -if [ "$anArch" != "x86_64" ] && [ "$anArch" != "ia64" ]; then +if [ "$anArch" != "x86_64" ] && [ "$anArch" != "ia64" ] && [ "$anArch" != "aarch64"]; then export ARCH="32"; else export ARCH="64"; diff --git a/adm/templates/env.install.sh.in b/adm/templates/env.install.sh.in index 36254ff8cb..8bb43081bd 100644 --- a/adm/templates/env.install.sh.in +++ b/adm/templates/env.install.sh.in @@ -23,7 +23,7 @@ shopt -u nocasematch # ----- Set path to 3rd party and OCCT libraries ----- anArch=`uname -m` -if [ "$anArch" != "x86_64" ] && [ "$anArch" != "ia64" ]; then +if [ "$anArch" != "x86_64" ] && [ "$anArch" != "ia64" ] && [ "$anArch" != "aarch64"]; then export ARCH="32"; else export ARCH="64";