diff --git a/.githubmap b/.githubmap index 0f70169b658..bc354aaab1e 100644 --- a/.githubmap +++ b/.githubmap @@ -113,3 +113,4 @@ bk201 Kiefer Chang alimaredia Ali Maredia ideepika Deepika Upadhyay p-se Patrick Seidensal +ronen-fr Ronen Friedman diff --git a/src/pybind/cephfs/setup.py b/src/pybind/cephfs/setup.py index 3ba67a272c7..5edaaaae89d 100755 --- a/src/pybind/cephfs/setup.py +++ b/src/pybind/cephfs/setup.py @@ -19,7 +19,10 @@ def filter_unsupported_flags(flags): if clang: return [f for f in flags if not (f == '-mcet' or f.startswith('-fcf-protection') or - f == '-fstack-clash-protection')] + f == '-fstack-clash-protection' or + f == '-fno-var-tracking-assignments' or + f == '-Wno-deprecated-register' or + f == '-Wno-gnu-designator')] else: return flags @@ -55,7 +58,7 @@ def get_python_flags(libs): include_dirs=[distutils.sysconfig.get_python_inc()], library_dirs=distutils.sysconfig.get_config_vars('LIBDIR', 'LIBPL'), libraries=libs + [lib.replace('-l', '') for lib in py_libs], - extra_compile_args=distutils.sysconfig.get_config_var('CFLAGS').split(), + extra_compile_args=filter_unsupported_flags(distutils.sysconfig.get_config_var('CFLAGS').split()), extra_link_args=(distutils.sysconfig.get_config_var('LDFLAGS').split() + distutils.sysconfig.get_config_var('LINKFORSHARED').split())) diff --git a/src/pybind/rados/setup.py b/src/pybind/rados/setup.py index 1a7db0091f1..771a455eed2 100755 --- a/src/pybind/rados/setup.py +++ b/src/pybind/rados/setup.py @@ -27,7 +27,10 @@ def filter_unsupported_flags(flags): if clang: return [f for f in flags if not (f == '-mcet' or f.startswith('-fcf-protection') or - f == '-fstack-clash-protection')] + f == '-fstack-clash-protection' or + f == '-fno-var-tracking-assignments' or + f == '-Wno-deprecated-register' or + f == '-Wno-gnu-designator')] else: return flags @@ -55,7 +58,7 @@ def get_python_flags(libs): include_dirs=[distutils.sysconfig.get_python_inc()], library_dirs=distutils.sysconfig.get_config_vars('LIBDIR', 'LIBPL'), libraries=libs + [lib.replace('-l', '') for lib in py_libs], - extra_compile_args=distutils.sysconfig.get_config_var('CFLAGS').split(), + extra_compile_args=filter_unsupported_flags(distutils.sysconfig.get_config_var('CFLAGS').split()), extra_link_args=(distutils.sysconfig.get_config_var('LDFLAGS').split() + distutils.sysconfig.get_config_var('LINKFORSHARED').split())) diff --git a/src/pybind/rbd/setup.py b/src/pybind/rbd/setup.py index f48432f0cd4..7f3983d6bfe 100755 --- a/src/pybind/rbd/setup.py +++ b/src/pybind/rbd/setup.py @@ -19,7 +19,10 @@ def filter_unsupported_flags(flags): if clang: return [f for f in flags if not (f == '-mcet' or f.startswith('-fcf-protection') or - f == '-fstack-clash-protection')] + f == '-fstack-clash-protection' or + f == '-fno-var-tracking-assignments' or + f == '-Wno-deprecated-register' or + f == '-Wno-gnu-designator')] else: return flags @@ -55,7 +58,7 @@ def get_python_flags(libs): include_dirs=[distutils.sysconfig.get_python_inc()], library_dirs=distutils.sysconfig.get_config_vars('LIBDIR', 'LIBPL'), libraries=libs + [lib.replace('-l', '') for lib in py_libs], - extra_compile_args=distutils.sysconfig.get_config_var('CFLAGS').split(), + extra_compile_args=filter_unsupported_flags(distutils.sysconfig.get_config_var('CFLAGS').split()), extra_link_args=(distutils.sysconfig.get_config_var('LDFLAGS').split() + distutils.sysconfig.get_config_var('LINKFORSHARED').split())) diff --git a/src/pybind/rgw/setup.py b/src/pybind/rgw/setup.py index ab9f3a88e90..ce77605c7db 100755 --- a/src/pybind/rgw/setup.py +++ b/src/pybind/rgw/setup.py @@ -19,7 +19,10 @@ def filter_unsupported_flags(flags): if clang: return [f for f in flags if not (f == '-mcet' or f.startswith('-fcf-protection') or - f == '-fstack-clash-protection')] + f == '-fstack-clash-protection' or + f == '-fno-var-tracking-assignments' or + f == '-Wno-deprecated-register' or + f == '-Wno-gnu-designator')] return flags def monkey_with_compiler(compiler): @@ -58,7 +61,7 @@ def get_python_flags(libs): include_dirs=[distutils.sysconfig.get_python_inc()], library_dirs=distutils.sysconfig.get_config_vars('LIBDIR', 'LIBPL'), libraries=libs + [lib.replace('-l', '') for lib in py_libs], - extra_compile_args=distutils.sysconfig.get_config_var('CFLAGS').split(), + extra_compile_args=filter_unsupported_flags(distutils.sysconfig.get_config_var('CFLAGS').split()), extra_link_args=(distutils.sysconfig.get_config_var('LDFLAGS').split() + distutils.sysconfig.get_config_var('LINKFORSHARED').split()))