def METHOD_NAME(self, spec, prefix):
    """Setting build arguments for amdlibm"""
    args = ["--prefix={0}".format(prefix)]
    if self.spec.satisfies("@4.1: "):
        args.append("--aocl_utils_install_path={0}".format(self.spec["aocl-utils"].prefix))
    if not (
        self.spec.satisfies(r"%aocc@3.2:4.1")
        or self.spec.satisfies(r"%gcc@12.2:13.1")
        or self.spec.satisfies(r"%clang@15:16")
    ):
        tty.warn(
            "AOCL has been tested to work with the following compilers\
                versions - gcc@12.2:13.1, aocc@3.2:4.1, and clang@15:16\
                see the following aocl userguide for details: \
                https://www.amd.com/content/dam/amd/en/documents/developer/version-4-1-documents/aocl/aocl-4-1-user-guide.pdf"
        )
    # we are circumventing the use of
    # Spacks compiler wrappers because
    # SCons wipes out all environment variables.
    if self.spec.satisfies("@:3.0 %aocc"):
        args.append("--compiler=aocc")
    var_prefix = "" if self.spec.satisfies("@:3.0") else "ALM_"
    args.append("{0}CC={1}".format(var_prefix, self.compiler.cc))
    args.append("{0}CXX={1}".format(var_prefix, self.compiler.cxx))
    if "+verbose" in self.spec:
        args.append("--verbose=1")
    else:
        args.append("--verbose=0")
    return args