build-system: don't set CC and CXX in pbuild::compile()

This commit is contained in:
2026-01-29 17:04:25 +01:00
parent e4e3f6850e
commit e803d8fc98
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!"