diff --git a/Util/BuildTools/Setup.sh b/Util/BuildTools/Setup.sh index 81b4a0fed..4947c267b 100755 --- a/Util/BuildTools/Setup.sh +++ b/Util/BuildTools/Setup.sh @@ -37,6 +37,8 @@ done # -- Set up environment -------------------------------------------------------- # ============================================================================== +source $(dirname "$0")/Environment.sh + command -v /usr/bin/clang++-$CARLA_CLANG_VERSION_MAJOR >/dev/null 2>&1 || { echo >&2 "clang-$CARLA_CLANG_VERSION_MAJOR is required, but it's not installed."; exit 1; @@ -46,8 +48,6 @@ CXX_TAG=c$CARLA_CLANG_VERSION_MAJOR export CC=/usr/bin/clang-$CARLA_CLANG_VERSION_MAJOR export CXX=/usr/bin/clang++-$CARLA_CLANG_VERSION_MAJOR -source $(dirname "$0")/Environment.sh - # Convert comma-separated string to array of unique elements. IFS="," read -r -a PY_VERSION_LIST <<< "${PY_VERSION_LIST}"