Переглянути джерело

add macros support to setup_xxhash

Thomas Waldmann 3 роки тому
батько
коміт
f79d5b0d35
1 змінених файлів з 3 додано та 1 видалено
  1. 3 1
      setup_xxhash.py

+ 3 - 1
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