Merge pull request #1361 from Pmodules/1360-build-system-dont-set-cc-and-cxx-in-pbuildcompile

build-system: don't set CC and CXX in pbuild::compile()
This commit is contained in:
2026-01-29 17:05:24 +01:00
committed by GitHub
co-authored by GitHub
2 changed files with 6 additions and 3 deletions
+2
View File
@@ -10,6 +10,8 @@
(#1354)
### build system
* Don't set CC and CXX in pbuild::compile()
(#1360)
* Don't pass an empty string as argument to configure/cmake.
(#1356)
+4 -3
View File
@@ -652,9 +652,10 @@ pbuild::compile() {
unset V
fi
(( JOBS == 0 )) && JOBS=$(_get_num_cores)
[[ -v CC ]] || CC=cc
[[ -v CXX ]] || CXX=c++
/bin/bash -c "CC=$CC CXX=$CXX ${make} -j${JOBS} -e" || \
#[[ -v CC ]] || CC=cc
#[[ -v CXX ]] || CXX=c++
#CC=$CC CXX=$CXX
${make} -j${JOBS} -e || \
std::die 3 \
"%s " "${module_name}/${module_version}:" \
"compilation failed!"