From 1f3692f6c8cf644f234cb5444c30be8ce03d9d51 Mon Sep 17 00:00:00 2001 From: Matthew Johnson Date: Sun, 8 Dec 2024 16:16:27 -0500 Subject: [PATCH] skip setting CC and CXX when building in CentOS --- build.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index f98c770..029d60d 100755 --- a/build.sh +++ b/build.sh @@ -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