From c1fa1961b870dbcae21969449b34dfeaf7dcf458 Mon Sep 17 00:00:00 2001 From: Matthew Johnson <matthewj@netflix.com> Date: Sun, 8 Dec 2024 15:26:00 -0500 Subject: [PATCH] allow overrides for CC and CXX variables --- build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index e69bc1c..f98c770 100755 --- a/build.sh +++ b/build.sh @@ -34,8 +34,9 @@ if [[ "$1" == "clean" ]]; then fi if [[ "$OSTYPE" == "linux-gnu"* ]]; then - export CC=gcc-13 - export CXX=g++-13 + # 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 fi if [[ ! -f "$HOME/.conan2/profiles/default" ]]; then