Skip to content

Commit

Permalink
skip setting CC and CXX when building in CentOS (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
copperlight authored Dec 8, 2024
1 parent 63a1ccc commit 8def11c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ if [[ "$1" == "clean" ]]; then
fi

if [[ "$OSTYPE" == "linux-gnu"* ]]; then
export CC=gcc-13
export CXX=g++-13
source /etc/os-release
if [[ "$NAME" == "Ubuntu" ]]; then
if [[ -z "$CC" ]]; then export CC=gcc-13; fi
if [[ -z "$CXX" ]]; then export CXX=g++-13; fi
fi
fi

if [[ ! -f "$HOME/.conan2/profiles/default" ]]; then
Expand Down

0 comments on commit 8def11c

Please sign in to comment.