Skip to content

Commit

Permalink
WIP xxhash
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasWaldmann committed Jan 22, 2022
1 parent e2ae2c2 commit 6a381ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def detect_openssl(prefixes):
include_dirs = []
library_dirs = []
define_macros = []
define_macros.append(('XXH_PRIVATE_API', 'YES')) # for zstd lib (includes xxh64) and xxh64

possible_openssl_prefixes = ['/usr', '/usr/local', '/usr/local/opt/openssl', '/usr/local/ssl', '/usr/local/openssl',
'/usr/local/borg', '/opt/local', '/opt/pkg', '/opt/homebrew/opt/openssl@1.1', ]
Expand Down
5 changes: 4 additions & 1 deletion setup_xxhash.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ def multi_join(paths, *path_segments):
if not use_system:
extra_compile_args += [] # not used yet

define_macros = kwargs.get('define_macros', [])
#define_macros.append(('XXH_PRIVATE_API', 'YES'))

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

0 comments on commit 6a381ad

Please sign in to comment.