compiler: add default implementation of openmp_flag() and css11_flag()

This commit is contained in:
Denis Davydov 2016-05-03 17:26:43 +02:00
parent 6a418cfb8d
commit d5a760776a

View File

@ -120,6 +120,20 @@ def check(exe):
def version(self):
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
# specific compiler executables. This is used when discovering compilers.