]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
fix compilation with distcc and other compiler wrappers 24605/head
authorAlexey Sheplyakov <asheplyakov@mirantis.com>
Thu, 29 Sep 2016 15:25:04 +0000 (18:25 +0300)
committerKefu Chai <kchai@redhat.com>
Tue, 16 Oct 2018 03:33:29 +0000 (11:33 +0800)
commit2eeb48dd33484ffcb83abb4fd7efff77c12e78cd
tree492b9485982e95b61d96922ea6b9b71d266f8f9f
parent1d92788f711ef870d58317376436992e13f6b8f0
fix compilation with distcc and other compiler wrappers

When building with ccache, distcc, and other compiler wrappers (such
as STLFilt):

CC='ccache gcc' CXX='ccache g++' cmake /path/to/ceph
make

python modules fail to compile since distutils try to execute the
wrapper itself without specifying the actual compiler.
Although cmake has a special magic switch for compiling with ccache
(cmake -DWITH_CCACHE=ON) other tools (distcc) are not supported, and
specifying the compiler as

CC=/whatever/compiler/is

used to work for decades, and it's a good idea to keep it working

Signed-off-by: Alexey Sheplyakov <asheplyakov@mirantis.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/Distutils.cmake