mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-11 15:15:15 +02:00
[setup] check if darwin
This commit is contained in:
parent
2a48ee99dd
commit
b8b77aef95
2 changed files with 1 additions and 7 deletions
6
setup.py
6
setup.py
|
|
@ -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', ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue