compilers: minor fixes to Clang::cxx11_flag() and Clang::openmp_flag()

This commit is contained in:
Denis Davydov 2016-05-03 11:26:03 +02:00
parent c078deaab1
commit 3cd3052c56

View File

@ -51,15 +51,16 @@ class Clang(Compiler):
@property
def openmp_flag(self):
ver = '%s' % self.version
if ver.endswith('-apple'):
ver_string = '%s' % self.version
if ver_string.endswith('-apple'):
tty.die("Clang from Apple does not support Openmp yet.")
else:
return "-fopenmp"
@property
def cxx11_flag(self):
if ver.endswith('-apple'):
ver_string = '%s' % self.version
if ver_string.endswith('-apple'):
# FIXME: figure out from which version Apple's clang supports c++11
return "-std=c++11"
else: