aocc: add missing attributes (#50082)
Co-authored-by: viveshar <vivek.sharma2@amd.com>
This commit is contained in:
parent
eab1d6df80
commit
4024200d61
@ -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"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user