From f79d5b0d35cbdcec802958c0fa9a943b26f30e03 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 23 Jul 2021 15:45:08 +0200 Subject: [PATCH] add macros support to setup_xxhash --- setup_xxhash.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup_xxhash.py b/setup_xxhash.py index 244e2323b..03ff9b496 100644 --- a/setup_xxhash.py +++ b/setup_xxhash.py @@ -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