def METHOD_NAME(self, spec, prefix):
    args = ["-j{0}".format(make_jobs)]
    if spec.satisfies("build_type=debug"):
        args.append("debug=1")
    elif spec.satisfies("build_type=release"):
        args.append("debug=0")
    if spec.satisfies("threads=openmp"):
        args.append("cppthreads=0")
        args.append("openmp=1")
    elif spec.satisfies("threads=cppthreads"):
        args.append("cppthreads=1")
        args.append("openmp=0")
    arch_value = spec.variants["target_arch"].value
    arch_value += "-sve" if spec.variants["sve"].value else ""
    arch_value += "-sve2" if spec.variants["sve2"].value else ""
    args.append("arch={}".format(arch_value))
    args.append("multi_isa={}".format(int(spec.variants["multi_isa"].value)))
    args.append("neon={}".format(int(spec.variants["neon"].value)))
    args.append(
        "experimental_dynamic_fusion={}".format(
            int(spec.variants["experimental_dynamic_fusion"].value)
        )
    )
    args.append(
        "experimental_fixed_format_kernels={}".format(
            int(spec.variants["experimental_fixed_format_kernels"].value)
        )
    )
    args.append("benchmark_examples={}".format(int(spec.variants["benchmark_examples"].value)))
    args.append("validate_examples={}".format(int(spec.variants["validate_examples"].value)))
    args.append("validation_tests={}".format(int(spec.variants["validation_tests"].value)))
    args.append("benchmark_tests={}".format(int(spec.variants["benchmark_tests"].value)))
    args.append("build=native")
    args.append("install_dir={0}".format(prefix))
    return args