Skip to content

Commit 2102502

Browse files
committed
Merge branch 'master' of github.com:atrejut/simioniser
2 parents f716595 + a1911b0 commit 2102502

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

readSimion.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ def __init__(self, ndim=2, verbose=False):
8989
commonopts = ['-c', '-Ofast', '-march=native', '-std=c99', '-fno-exceptions', '-fomit-frame-pointer']
9090
compiler = 'C:\\MinGW\\bin\\gcc'
9191
extension = '.dll'
92+
elif sys.platform == 'darwin':
93+
compiler = 'gcc'
94+
commonopts = ['-c', '-fPIC', '-Ofast', '-std=c99', '-fno-exceptions', '-fomit-frame-pointer']
95+
extension = '.so'
9296
else:
9397
raise RuntimeError('Platform not supported!')
9498

0 commit comments

Comments
 (0)