aboutsummaryrefslogtreecommitdiff
path: root/scripts/ue_build_linux/get_ue_toolchain.sh
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2025-10-06 13:37:39 +0200
committerGitHub Enterprise <[email protected]>2025-10-06 13:37:39 +0200
commitca5ae7c4756ea82b13ec571d33c8da59cd391b92 (patch)
treea4453c59504b78cfbe3bffe9353c3b36edc9bcfb /scripts/ue_build_linux/get_ue_toolchain.sh
parentfixed issue in compactcas.restart test due to std::vector<bool> (#559) (diff)
downloadzen-ca5ae7c4756ea82b13ec571d33c8da59cd391b92.tar.xz
zen-ca5ae7c4756ea82b13ec571d33c8da59cd391b92.zip
added default Linux UE toolchain directory (#558)
Instead of forcing user to specify a suitable directory for the UE toolchain, we offer a default which matches what the Github runners use and which is also covered by the root `.gitignore` file
Diffstat (limited to 'scripts/ue_build_linux/get_ue_toolchain.sh')
-rwxr-xr-xscripts/ue_build_linux/get_ue_toolchain.sh16
1 files changed, 9 insertions, 7 deletions
diff --git a/scripts/ue_build_linux/get_ue_toolchain.sh b/scripts/ue_build_linux/get_ue_toolchain.sh
index dab87cf88..c2538b09a 100755
--- a/scripts/ue_build_linux/get_ue_toolchain.sh
+++ b/scripts/ue_build_linux/get_ue_toolchain.sh
@@ -5,21 +5,23 @@ ZEN_ROOT=$(realpath $SCRIPT_DIR/../..)
die() { echo "ERROR: $1"; exit; }
-if [ -z $1 ]; then
+toolchain_dir="${1:-${ZEN_ROOT}/.tmp-ue-toolchain}"
+
+if [[ $toolchain_dir == "--help" ]]; then
echo "usage: $(basename ${BASH_SOURCE[0]}) <output_dir>"
exit
fi
-if [ -e $1 ]; then
- rmdir $1
+if [ -e $toolchain_dir ]; then
+ rmdir $toolchain_dir
if [ $? -gt 0 ]; then
- die "$1 is not empty"
+ die "$toolchain_dir is not empty"
exit
fi
fi
-mkdir -p $1
-cd $1
+mkdir -p $toolchain_dir
+cd $toolchain_dir
mkdir -p tmp
cd tmp
@@ -27,7 +29,7 @@ cd tmp
CLANG_VERSION=v25_clang-18.1.0-rockylinux8
TOOLCHAIN_PLATFORM=x86_64-unknown-linux-gnu
-echo "Fetching UE toolchain $CLANG_VERSION..."
+echo "Fetching UE toolchain $CLANG_VERSION into '$toolchain_dir'..."
wget -q --show-progress http://cdn.unrealengine.com/Toolchain_Linux/native-linux-$CLANG_VERSION.tar.gz
echo "Extracting toolchain $TOOLCHAIN_PLATFORM..."