def METHOD_NAME(self):
    spec = self.spec
    args = [
        self.define("SPACK_BUILD", True),
        self.define("OMNITRACE_BUILD_PAPI", False),
        self.define("OMNITRACE_BUILD_PYTHON", True),
        self.define("OMNITRACE_BUILD_DYNINST", False),
        self.define("OMNITRACE_BUILD_LIBUNWIND", False),
        self.define("OMNITRACE_BUILD_STATIC_LIBGCC", False),
        self.define("OMNITRACE_BUILD_STATIC_LIBSTDCXX", False),
        self.define_from_variant("OMNITRACE_BUILD_LTO", "ipo"),
        self.define_from_variant("OMNITRACE_USE_HIP", "rocm"),
        self.define_from_variant("OMNITRACE_USE_MPI", "mpi"),
        self.define_from_variant("OMNITRACE_USE_OMPT", "ompt"),
        self.define_from_variant("OMNITRACE_USE_PAPI", "papi"),
        self.define_from_variant("OMNITRACE_USE_RCCL", "rocm"),
        self.define_from_variant("OMNITRACE_USE_ROCM_SMI", "rocm"),
        self.define_from_variant("OMNITRACE_USE_ROCTRACER", "rocm"),
        self.define_from_variant("OMNITRACE_USE_ROCPROFILER", "rocm"),
        self.define_from_variant("OMNITRACE_USE_PYTHON", "python"),
        self.define_from_variant("OMNITRACE_USE_MPI_HEADERS", "mpi_headers"),
        self.define_from_variant("OMNITRACE_STRIP_LIBRARIES", "strip"),
        self.define_from_variant("OMNITRACE_INSTALL_PERFETTO_TOOLS", "perfetto_tools"),
        # timemory arguments
        self.define("TIMEMORY_UNITY_BUILD", False),
        self.define("TIMEMORY_BUILD_CALIPER", False),
        self.define_from_variant("TIMEMORY_USE_TAU", "tau"),
        self.define_from_variant("TIMEMORY_USE_CALIPER", "caliper"),
    ]
    if "+tau" in spec:
        tau_root = spec["tau"].prefix
        args.append(self.define("TAU_ROOT_DIR", tau_root))
    if "+python" in spec:
        pyexe = spec["python"].command.path
        args.append(self.define("PYTHON_EXECUTABLE", pyexe))
        args.append(self.define("Python3_EXECUTABLE", pyexe))
    if "+mpi" in spec:
        args.append(self.define("MPI_C_COMPILER", spec["mpi"].mpicc))
        args.append(self.define("MPI_CXX_COMPILER", spec["mpi"].mpicxx))
    return args