Added @property stdcxx_libs to return -lstdc++ for AOCC compiler (#21145)

This commit is contained in:
AMD Toolchain Support 2021-01-22 21:28:04 +05:30 committed by GitHub
parent 14f6d64edf
commit 2c1bb64594
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -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++', )

View file

@ -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")