Skip to content

Commit

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

if [[ "$OSTYPE" == "linux-gnu"* ]]; then
# these switches are necessary for internal centos builds
if [[ -z "$CC" ]]; then export CC=gcc-13; fi
if [[ -z "$CXX" ]]; then export CXX=g++-13; fi
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 0e2646d

Please sign in to comment.