[setup] check if darwin

This commit is contained in:
Max Zwiessele 2015-09-10 15:06:15 +01:00
parent 2a48ee99dd
commit b8b77aef95
2 changed files with 1 additions and 7 deletions

View file

@ -26,11 +26,7 @@ del version_dummy
#Mac OS X Clang doesn't support OpenMP at the current time.
#This detects if we are building on a Mac
def ismac():
platform = sys.platform
ismac = False
if platform[:6] == 'darwin':
ismac = True
return ismac
return sys.platform[:6] == 'darwin'
if ismac():
compile_flags = [ '-O3', ]