add macros support to setup_xxhash

This commit is contained in:
Thomas Waldmann 2021-07-23 15:45:08 +02:00
parent 0f477282c3
commit f79d5b0d35

View file

@ -67,7 +67,9 @@ def xxhash_ext_kwargs(bundled_path, system_prefix=None, system=False, **kwargs):
if not use_system:
extra_compile_args += [] # not used yet
define_macros = kwargs.get('define_macros', [])
ret = dict(**kwargs)
ret.update(dict(sources=sources, extra_compile_args=extra_compile_args,
ret.update(dict(sources=sources, extra_compile_args=extra_compile_args, define_macros=define_macros,
include_dirs=include_dirs, library_dirs=library_dirs, libraries=libraries))
return ret