]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind: check arguments also when searching for "clang" 33177/head
authorKefu Chai <kchai@redhat.com>
Mon, 10 Feb 2020 14:06:24 +0000 (22:06 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 10 Feb 2020 14:10:04 +0000 (22:10 +0800)
commit956c6f3e50b4bd96e3263aad7f92f8f3b0c520c6
tree7d75cfaa7f4acf67b265653ebdcf711d0db8a35c
parentc35ac57e2787d28772df3f4b8b10c7d71eed8637
pybind: check arguments also when searching for "clang"

if "ccache" is used, compiler[0] would be "ccache", and compiler[1]
would be "clang", in this case, we should search for "clang" until
an argument starting with "-" is found. it signals be the first
cflag passed to the compiler.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/cephfs/setup.py
src/pybind/rados/setup.py
src/pybind/rbd/setup.py
src/pybind/rgw/setup.py