def build(self, project_file, targets=None, upgrade_project=True, build_type=None, arch=None, parallel=True, force_vcvars=False, toolset=None): with tools.environment_append(self.build_env.vars): command = msvc_build_command(self._conanfile.settings, project_file, targets=targets, upgrade_project=upgrade_project, build_type=build_type, arch=arch, parallel=parallel, force_vcvars=force_vcvars, toolset=toolset) return self._conanfile.run(command)
def msvc_build_command(*args, **kwargs): return tools_win.msvc_build_command(output=_global_output, *args, **kwargs)