From 2960e19e928b948f4ee769c6dc2cdc46583a71b5 Mon Sep 17 00:00:00 2001 From: Juan Jose Santamaria Flecha Date: Mon, 18 Jan 2021 17:12:09 -0500 Subject: [PATCH] WIN32 Make x64 arquitecture detection more resilient --- src/tools/msvc/Solution.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm index 59a42be..2f28de0 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -62,7 +62,7 @@ sub DeterminePlatform if ($^O eq "MSWin32") { # Examine CL help output to determine if we are in 32 or 64-bit mode. - my $output = `cl /? 2>&1`; + my $output = `cl /help 2>&1`; $? >> 8 == 0 or die "cl command not found"; $self->{platform} = ($output =~ /^\/favor:<.+AMD64/m) ? 'x64' : 'Win32'; -- 2.11.0