def METHOD_NAME(self):
    if is_msvc(self):
        tc = MSBuildToolchain(self)
        tc.configuration = self._msbuild_configuration
        tc.properties["WholeProgramOptimization"] = "false"
        tc.METHOD_NAME()
    else:
        VirtualBuildEnv(self).METHOD_NAME()
        tc = AutotoolsToolchain(self)
        if self.settings.os in ["Linux", "Android"]:
            tc.configure_args.append("--enable-udev" if self.options.enable_udev else "--disable-udev")
        tc.METHOD_NAME()