def METHOD_NAME(self):
    env = VirtualBuildEnv(self)
    env.METHOD_NAME()
    tc = AutotoolsToolchain(self)
    yes_no = lambda v: "yes" if v else "no"
    if is_msvc(self):
        tc.extra_cflags.append("-EHsc")
        if check_min_vs(self, "180", raise_invalid=False):
            tc.extra_cflags.append("-FS")
    tc.METHOD_NAME()
    if is_msvc(self):
        env = Environment()
        automake_conf = self.dependencies.build["automake"].conf_info
        compile_wrapper = unix_path(self, automake_conf.get("user.automake:compile-wrapper", check_type=str))
        ar_wrapper = unix_path(self, automake_conf.get("user.automake:lib-wrapper", check_type=str))
        env.define("CC", f"{compile_wrapper} cl -nologo")
        env.define("CXX", f"{compile_wrapper} cl -nologo")
        env.define("LD", "link -nologo")
        env.define("AR", f"{ar_wrapper} \"lib -nologo\"")
        env.define("NM", "dumpbin -symbols")
        env.define("OBJDUMP", ":")
        env.define("RANLIB", ":")
        env.define("STRIP", ":")
        env.vars(self).save_script("conanbuild_msvc")