]> git.sesse.net Git - x264/commitdiff
msvs: Fix cl detection in non-English environments
author장영훈 <mieabby@gmail.com>
Fri, 7 Aug 2015 05:43:24 +0000 (14:43 +0900)
committerAnton Mitrofanov <BugMaster@narod.ru>
Tue, 18 Aug 2015 22:00:21 +0000 (01:00 +0300)
configure

index 2ab09a0fd39e7e16d3690728da976e30c975b993..aa2a368d26d92496ea3a741c8a5a14a666d9073f 100755 (executable)
--- a/configure
+++ b/configure
@@ -532,8 +532,8 @@ if [[ $host_os = mingw* || $host_os = cygwin* ]]; then
         compiler=CL
         compiler_style=MS
         CFLAGS="$CFLAGS -nologo -DHAVE_STRING_H -I\$(SRCPATH)/extras"
-        `$CC 2>&1 | grep -q 'for x86'` && host_cpu=i486
-        `$CC 2>&1 | grep -q 'for x64'` && host_cpu=x86_64
+        `$CC 2>&1 | grep -q 'x86'` && host_cpu=i486
+        `$CC 2>&1 | grep -q 'x64'` && host_cpu=x86_64
         cpp_check '' '' '_MSC_VER > 1800 || (_MSC_VER == 1800 && _MSC_FULL_VER >= 180030324)' || die "Microsoft Visual Studio support requires Visual Studio 2013 Update 2 or newer"
     fi
 else