Skip to content

Commit

Permalink
fix: find_msvc_environment argument order (#628)
Browse files Browse the repository at this point in the history
Co-authored-by: curryyzheng <curryyzheng@tencent.com>
  • Loading branch information
CurryPseudo and curryyzheng committed Nov 2, 2021
1 parent b2f6b14 commit 8858713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows_registry.rs
Expand Up @@ -223,7 +223,7 @@ mod impl_ {
}

/// Attempt to find the tool using environment variables set by vcvars.
pub fn find_msvc_environment(target: &str, tool: &str) -> Option<Tool> {
pub fn find_msvc_environment(tool: &str, target: &str) -> Option<Tool> {
// Early return if the environment doesn't contain a VC install.
if env::var_os("VCINSTALLDIR").is_none() {
return None;
Expand Down

0 comments on commit 8858713

Please sign in to comment.