]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
script: add discover_compiler function to lib-build.sh
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 1 Nov 2022 18:51:57 +0000 (14:51 -0400)
committerKamoltat Sirivadhna <ksirivad@redhat.com>
Fri, 10 Oct 2025 18:22:08 +0000 (18:22 +0000)
commit1163570dd4873f9782d38e547bc1f7e974d8ea80
treee89f1342de76ebc7c6f67e986df541f4e5fc6f41
parent3cc4ae4f5a56ad0f60c2cd2d7364feac38e024c2
script: add discover_compiler function to lib-build.sh

The discover_compiler function is an abstraction over the current
compiler detection code in run-make.sh. It is intended to be flexible
enough to work on {centos,rhel} systems, but currently is just an
updated version of the logic from run-make.sh. The intent is that this
function will grow and become useful for other scripts used for
building (possibly do_cmake.sh for example).

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 561bf4ea9b4dd8f6710a959c5bd38eb4085a9d52)
(cherry picked from commit 8dae1c161c4d3bc3a1ef3cd48de0da9a89e44e65)
src/script/lib-build.sh