Skip to content

Commit

Permalink
Merge pull request #1887 from dib-lab/osx-build
Browse files Browse the repository at this point in the history
Fix build for OS X
  • Loading branch information
ctb authored Mar 13, 2019
2 parents 55ec12a + d982f54 commit fb65d21
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 fb65d21

Please sign in to comment.