compilers: minor fixes to Clang::cxx11_flag() and Clang::openmp_flag()
This commit is contained in:
parent
c078deaab1
commit
3cd3052c56
@ -51,15 +51,16 @@ class Clang(Compiler):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def openmp_flag(self):
|
def openmp_flag(self):
|
||||||
ver = '%s' % self.version
|
ver_string = '%s' % self.version
|
||||||
if ver.endswith('-apple'):
|
if ver_string.endswith('-apple'):
|
||||||
tty.die("Clang from Apple does not support Openmp yet.")
|
tty.die("Clang from Apple does not support Openmp yet.")
|
||||||
else:
|
else:
|
||||||
return "-fopenmp"
|
return "-fopenmp"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def cxx11_flag(self):
|
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
|
# FIXME: figure out from which version Apple's clang supports c++11
|
||||||
return "-std=c++11"
|
return "-std=c++11"
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user