Revert "More Setup.sh changes."

This reverts commit ff82140d70.
This commit is contained in:
Marcel Pi 2022-04-22 13:20:24 +02:00 committed by bernat
parent dfc799a5d3
commit 9a005e9c7c
1 changed files with 2 additions and 2 deletions

View File

@ -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}"