]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
pybind: do not check MFLAGS
authorKefu Chai <kchai@redhat.com>
Thu, 16 Aug 2018 09:25:04 +0000 (17:25 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 16 Aug 2018 10:06:11 +0000 (18:06 +0800)
clang does not check for directories passed by -iquote/path/to/foo.h, if
a header is included using `#include <foo.h>`

it complains:

/home/kefu/ceph/src/pybind/rados/tmpwzjOsS/rados_dummy.c:2:10: error:
'rados/librados.h' file not found with <angled> include; use "quotes"
instead
         ^~~~~~~~~~~~~~~~~~
         "rados/librados.h"
1 error generated.

and MFLAGS does not exist in the env variables of setup.py launched by
the top-level make.

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

index c708c3e145df859f792359b06f5594bfc073e826..75081df70e9b1069c95989470a40fc7e455ad757 100755 (executable)
@@ -108,7 +108,7 @@ def check_sanity():
     compiler = new_compiler()
     distutils.sysconfig.customize_compiler(compiler)
 
-    if {'MAKEFLAGS', 'MFLAGS', 'MAKELEVEL'}.issubset(set(os.environ.keys())):
+    if {'MAKEFLAGS', 'MAKELEVEL'}.issubset(set(os.environ.keys())):
         # The setup.py has been invoked by a top-level Ceph make.
         # Set the appropriate CFLAGS and LDFLAGS