Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions build_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Help
echo " other ports, vcpkg-specific options, etc."
}

if [[ -n "${VCPKG_ROOT+x}" ]]; then
if [[ -n "${VCPKG_ROOT+unset}" ]]; then
unset VCPKG_ROOT
fi

Expand Down Expand Up @@ -92,7 +92,7 @@ do
done

# check if CC is not set or a null string
if [[ ! -v "CC" || -z "${CC}" ]]; then
if [[ -z "${CC+unset}" || -z "${CC}" ]]; then
if type clang &>/dev/null; then
export CC="${CC:-$(which clang)}"
msg "Using default clang as CC=${CC}"
Expand All @@ -104,7 +104,7 @@ else
fi

# check if CXX is not set or a null string
if [[ ! -v "CXX" || -z "${CXX}" ]]; then
if [[ -z "${CXX+unset}" || -z "${CXX}" ]]; then
if type clang++ &>/dev/null; then
export CXX="${CXX:-$(which clang++)}"
msg "Using default clang++ as CXX=${CXX}"
Expand Down Expand Up @@ -154,7 +154,7 @@ else
fi

host_triplet="${triplet_arch}-${triplet_os}-rel"
if [[ -v TARGET_ARCH ]]; then
if [[ -n ${TARGET_ARCH+unset} ]]; then
triplet_arch=${TARGET_ARCH}
fi
target_triplet="${triplet_arch}-${triplet_os}"
Expand Down