Index: build/toolchain/win/midl.gni |
diff --git a/build/toolchain/win/midl.gni b/build/toolchain/win/midl.gni |
index ce310d11029c80f093610529cf519a119f334fa3..30bcbf779cef688f4ee149ad0b1d18ca4901848f 100644 |
--- a/build/toolchain/win/midl.gni |
+++ b/build/toolchain/win/midl.gni |
@@ -56,10 +56,10 @@ template("midl") { |
"$out_dir/$proxy_file", |
] |
- if (cpu_arch == "x86") { |
+ if (current_cpu == "x86") { |
win_tool_arch = "environment.x86" |
idl_target_platform = "win32" |
- } else if (cpu_arch == "x64") { |
+ } else if (current_cpu == "x64") { |
win_tool_arch = "environment.x64" |
idl_target_platform = "x64" |
} else { |