Преглед на файлове

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