From faf2b80ed8bf87ad90e6c87454ec323ba88f36f9 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 27 Nov 2025 10:45:56 +0100 Subject: [PATCH] build-system: set CC and CXX if not defined --- Pmodules/libpbuild.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pmodules/libpbuild.bash b/Pmodules/libpbuild.bash index 20c84ca..1d7667b 100644 --- a/Pmodules/libpbuild.bash +++ b/Pmodules/libpbuild.bash @@ -648,8 +648,8 @@ pbuild::compile() { unset V fi (( JOBS == 0 )) && JOBS=$(_get_num_cores) - std::info "CC=$CC" - std::info "CXX=$CXX" + [[ -v CC ]] || CC=cc + [[ -v CXX ]] || CXX=c++ /bin/bash -c "CC=$CC CXX=$CXX ${make} -j${JOBS} -e" || \ std::die 3 \ "%s " "${module_name}/${module_version}:" \