From 06cec0e97f506e05a6a77831485eb129da68007f Mon Sep 17 00:00:00 2001 From: Alonso Schaich Date: Sun, 18 Feb 2024 17:06:33 +0900 Subject: [PATCH] Properly test for variable definition --- scripts/bootstrap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index a5140ccd4be902..caf0d4f98275a2 100644 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -103,10 +103,10 @@ fi if [ "$UNAME" = "OpenBSD" ]; then vcpkgUseSystem="ON" - if [ -z "$CXX" ]; then + if [ -z ${$CXX+x} ]; then CXX=/usr/bin/clang++ fi - if [ -z "$CC" ]; then + if [ -z ${CC+x} ]; then CC=/usr/bin/clang fi fi