Skip to content

Commit

Permalink
Fix build for OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
standage committed Feb 21, 2019
1 parent 55ec12a commit d982f54
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,12 @@ def build_dir():
"MurmurHash3"])

# Don't forget to update lib/Makefile with these flags!
EXTRA_COMPILE_ARGS = ['-O3', '-std=c++11', '-pedantic',
'-fno-omit-frame-pointer']
EXTRA_LINK_ARGS = ['-fno-omit-frame-pointer']
EXTRA_COMPILE_ARGS = ['-O3', '-std=c++11']
EXTRA_LINK_ARGS = []

if sys.platform == 'darwin':
# force 64bit only builds
EXTRA_COMPILE_ARGS.extend(['-arch', 'x86_64', '-mmacosx-version-min=10.7',
'-stdlib=libc++'])
EXTRA_LINK_ARGS.append('-mmacosx-version-min=10.7')
EXTRA_COMPILE_ARGS.extend(['-arch', 'x86_64', '-mmacosx-version-min=10.9'])
EXTRA_LINK_ARGS.append('-mmacosx-version-min=10.9')

if check_for_openmp():
EXTRA_COMPILE_ARGS.extend(['-fopenmp'])
Expand Down

0 comments on commit d982f54

Please sign in to comment.