summaryrefslogtreecommitdiffstats
path: root/github_build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'github_build.sh')
-rw-r--r--github_build.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/github_build.sh b/github_build.sh
index 357989ccc..c35cff192 100644
--- a/github_build.sh
+++ b/github_build.sh
@@ -15,10 +15,15 @@ if [[ "" == "${TARGETARCH}" ]]; then
TARGETARCH=${ARCH}
fi
+glslangBuildFlag=""
+if [[ "aarch64" == "${TARGETARCH}" && "release" == "${CONFIGURATION}" ]]; then
+ glslangBuildFlag="--build-glslang=true"
+fi
+
if [[ "${ARCH}" != "${TARGETARCH}" ]]; then
# Create the makefile
-./premake5 gmake2 --cc=${CC} --enable-embed-stdlib=true --arch=${ARCH} --deps=true --no-progress=true
+./premake5 gmake2 --cc=${CC} --enable-embed-stdlib=true --arch=${ARCH} --deps=true --no-progress=true ${glslangBuildFlag}
# Build the configuration
make config=${CONFIGURATION}_${ARCH} -j`nproc`
@@ -26,11 +31,11 @@ make config=${CONFIGURATION}_${ARCH} -j`nproc`
rm -rf ./bin
# Create the makefile
-./premake5 gmake2 --cc=${CC} --enable-embed-stdlib=true --arch=${TARGETARCH} --deps=true --no-progress=true --skip-source-generation=true --deploy-slang-llvm=false --deploy-slang-glslang=false
+./premake5 gmake2 --cc=${CC} --enable-embed-stdlib=true --arch=${TARGETARCH} --deps=true --no-progress=true --skip-source-generation=true --deploy-slang-llvm=false --deploy-slang-glslang=false ${glslangBuildFlag}
else
# Create the makefile
-./premake5 gmake2 --cc=${CC} --enable-embed-stdlib=true --arch=${TARGETARCH} --deps=true --no-progress=true
+./premake5 gmake2 --cc=${CC} --enable-embed-stdlib=true --arch=${TARGETARCH} --deps=true --no-progress=true ${glslangBuildFlag}
fi
# Build the configuration