Skip to content

Commit

Permalink
Add compile arg for building on MacOS Catalina / Xcode 11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
taldcroft committed Jan 7, 2020
1 parent 4dc4e8c commit d237dd2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from setuptools import setup, Extension

import os
import platform
from Cython.Build import cythonize

if (os.name == "nt"):
os_name = platform.system()
if (os_name == "Windows"):
compile_args = ['/EHs', '/D_CRT_SECURE_NO_DEPRECATE']
else:
compile_args = ['-Wno-switch-enum', '-Wno-switch', '-Wno-switch-default',
'-Wno-deprecated', '-Wno-parentheses']
if os_name == 'Darwin':
compile_args += ['-stdlib=libc++']

extensions = [Extension("*", ["Chandra/Time/_axTime3.pyx"],
extra_compile_args=compile_args)]
Expand Down

0 comments on commit d237dd2

Please sign in to comment.