build-system: set CC and CXX if not defined

This commit is contained in:
2025-11-27 10:45:56 +01:00
parent eba7cd8bd2
commit faf2b80ed8
+2 -2
View File
@@ -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}:" \