mirror of
https://github.com/ceph/ceph
synced 2025-02-22 02:27:29 +00:00
Merge pull request #29080 from tchaikov/wip-pybind
pybind: check "CEPH_LIBDIR" not "MAKEFLAGS" Reviewed-by: Neha Ojha <nojha@redhat.com> Reviewed-by: Jason Dillaman <dillaman@redhat.com> Reviewed-by: Josh Durgin <jdurgin@redhat.com> Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
commit
893030e51a
@ -89,10 +89,9 @@ def check_sanity():
|
||||
compiler = new_compiler()
|
||||
distutils.sysconfig.customize_compiler(compiler)
|
||||
|
||||
if {'MAKEFLAGS', 'MFLAGS', 'MAKELEVEL'}.issubset(set(os.environ.keys())):
|
||||
if 'CEPH_LIBDIR' in os.environ:
|
||||
# The setup.py has been invoked by a top-level Ceph make.
|
||||
# Set the appropriate CFLAGS and LDFLAGS
|
||||
|
||||
compiler.set_library_dirs([os.environ.get('CEPH_LIBDIR')])
|
||||
|
||||
try:
|
||||
|
@ -88,10 +88,9 @@ def check_sanity():
|
||||
compiler = new_compiler()
|
||||
distutils.sysconfig.customize_compiler(compiler)
|
||||
|
||||
if {'MAKEFLAGS', 'MAKELEVEL'}.issubset(set(os.environ.keys())):
|
||||
if 'CEPH_LIBDIR' in os.environ:
|
||||
# The setup.py has been invoked by a top-level Ceph make.
|
||||
# Set the appropriate CFLAGS and LDFLAGS
|
||||
|
||||
compiler.set_include_dirs([os.path.join(CEPH_SRC_DIR, 'include')])
|
||||
compiler.set_library_dirs([os.environ.get('CEPH_LIBDIR')])
|
||||
|
||||
|
@ -88,13 +88,11 @@ def check_sanity():
|
||||
compiler = new_compiler()
|
||||
distutils.sysconfig.customize_compiler(compiler)
|
||||
|
||||
if {'MAKEFLAGS', 'MFLAGS', 'MAKELEVEL'}.issubset(set(os.environ.keys())):
|
||||
if 'CEPH_LIBDIR' in os.environ:
|
||||
# The setup.py has been invoked by a top-level Ceph make.
|
||||
# Set the appropriate CFLAGS and LDFLAGS
|
||||
|
||||
compiler.set_include_dirs([os.path.join(CEPH_SRC_DIR, 'include')])
|
||||
compiler.set_library_dirs([os.environ.get('CEPH_LIBDIR')])
|
||||
|
||||
try:
|
||||
compiler.define_macro('_FILE_OFFSET_BITS', '64')
|
||||
|
||||
|
@ -91,13 +91,11 @@ def check_sanity():
|
||||
compiler = new_compiler()
|
||||
distutils.sysconfig.customize_compiler(compiler)
|
||||
|
||||
if {'MAKEFLAGS', 'MFLAGS', 'MAKELEVEL'}.issubset(set(os.environ.keys())):
|
||||
if 'CEPH_LIBDIR' in os.environ:
|
||||
# The setup.py has been invoked by a top-level Ceph make.
|
||||
# Set the appropriate CFLAGS and LDFLAGS
|
||||
|
||||
compiler.set_include_dirs([os.path.join(CEPH_SRC_DIR, 'include')])
|
||||
compiler.set_library_dirs([os.environ.get('CEPH_LIBDIR')])
|
||||
|
||||
try:
|
||||
compiler.define_macro('_FILE_OFFSET_BITS', '64')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user