]> git.apps.os.sepia.ceph.com Git - ceph.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)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 18 Feb 2025 22:58:08 +0000 (17:58 -0500)
commit8dae1c161c4d3bc3a1ef3cd48de0da9a89e44e65
tree62d6bf5e38c0324a25ec7766bba5c8df66a7cddf
parent58ca27984b672877bb0434313fe8a078bdd9bf46
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)
src/script/lib-build.sh
src/script/run-make.sh