Added @property stdcxx_libs to return -lstdc++ for AOCC compiler (#21145)
This commit is contained in:
parent
14f6d64edf
commit
2c1bb64594
2 changed files with 6 additions and 0 deletions
|
@ -114,3 +114,7 @@ def fc_version(cls, fortran_compiler):
|
|||
@classmethod
|
||||
def f77_version(cls, f77):
|
||||
return cls.fc_version(f77)
|
||||
|
||||
@property
|
||||
def stdcxx_libs(self):
|
||||
return ('-lstdc++', )
|
||||
|
|
|
@ -453,6 +453,8 @@ def test_aocc_flags():
|
|||
'-Os', '-Oz', '-Og',
|
||||
'-O', '-O4'],
|
||||
'aocc@2.2.0')
|
||||
|
||||
supported_flag_test("stdcxx_libs", ("-lstdc++",), "aocc@2.2.0")
|
||||
supported_flag_test("openmp_flag", "-fopenmp", "aocc@2.2.0")
|
||||
supported_flag_test("cxx11_flag", "-std=c++11", "aocc@2.2.0")
|
||||
supported_flag_test("cxx14_flag", "-std=c++14", "aocc@2.2.0")
|
||||
|
|
Loading…
Reference in a new issue