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
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user