From 0e2646d4aef26a73cb00937cf07ae15a6a68e60e Mon Sep 17 00:00:00 2001 From: Matthew Johnson Date: Sun, 8 Dec 2024 16:42:58 -0500 Subject: [PATCH] skip setting CC and CXX when building in CentOS (#115) --- 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