Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Healpy won't compile under Mac OS Lion #32
Mac OS X 10.7 uses clang as its default C/C++ compiler. As clang has no support for OpenMP yet (see http://www.phoronix.com/scan.php?page=news_item&px=MTA0Mzc), script
The quickest workaround is to run the
Users of older versions of Mac OS X should have no problems, as they use GCC by default.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
You are right, I noticed the INSTALL after I sent this bug report. Regarding the detection of clang, I think we can use the fact that
on Lion reports
I do no longer have Snow Leopard, but I believe its output is similar to the one produced by
only with a different build number. So we might capture the first line of the output of
def is_clang_the_default_cc(): 'Check if the `cc'' command runs clang or not. Return true if it does.' import subprocess import re try: cc_output = subprocess.check_output(['cc', '--version'], stderr = subprocess.STDOUT) except: return False return re.search('clang', cc_output) is not None
Of course, this works as long as
I believe this check would be helpful in other situations too: FreeBSD is going to substitute