compiler: add default implementation of openmp_flag() and css11_flag()
This commit is contained in:
parent
6a418cfb8d
commit
d5a760776a
@ -120,6 +120,20 @@ def check(exe):
|
|||||||
def version(self):
|
def version(self):
|
||||||
return self.spec.version
|
return self.spec.version
|
||||||
|
|
||||||
|
# default implementation of OpenMP linking flag.
|
||||||
|
# Override in derived classes if needed
|
||||||
|
@property
|
||||||
|
def openmp_flag(self):
|
||||||
|
return "-fopenmp"
|
||||||
|
|
||||||
|
|
||||||
|
# default implementation of c++11 linking flag.
|
||||||
|
# raise an error to force derived classes implement it when used
|
||||||
|
@property
|
||||||
|
def cxx11_flag(self):
|
||||||
|
return "-std=c++11"
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Compiler classes have methods for querying the version of
|
# Compiler classes have methods for querying the version of
|
||||||
# specific compiler executables. This is used when discovering compilers.
|
# specific compiler executables. This is used when discovering compilers.
|
||||||
|
Loading…
Reference in New Issue
Block a user