aocc: add missing attributes (#50082)

Co-authored-by: viveshar <vivek.sharma2@amd.com>
This commit is contained in:
AMD Toolchain Support 2025-04-17 13:34:12 +05:30 committed by GitHub
parent eab1d6df80
commit 4024200d61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,7 +64,7 @@ class Aocc(Package, LlvmDetection, CompilerPackage):
# Licensing
license_url = "https://www.amd.com/en/developer/aocc/aocc-compiler/eula.html"
depends_on("c", type="build") # generated
depends_on("c", type="build")
depends_on("cxx", type="build")
depends_on("libxml2")
@ -116,6 +116,15 @@ def cfg_files(self):
with open(join_path(self.prefix.bin, "{}.cfg".format(compiler)), "w") as f:
f.write(compiler_options)
def _cc_path(self):
return os.path.join(self.spec.prefix.bin, "clang")
def _cxx_path(self):
return os.path.join(self.spec.prefix.bin, "clang++")
def _fortran_path(self):
return os.path.join(self.spec.prefix.bin, "flang")
compiler_version_regex = r"AOCC_(\d+[._]\d+[._]\d+)"
fortran_names = ["flang"]