comparison auto/cc/msvc @ 8127:17b3efb45b17

Win32: handling of localized MSVC cl output. Output examples in English, Russian, and Spanish: Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86 Оптимизирующий 32-разрядный компилятор Microsoft (R) C/C++ версии 16.00.30319.01 для 80x86 Compilador de optimización de C/C++ de Microsoft (R) versión 16.00.30319.01 para x64 Since most of the words are translated, instead of looking for the words "Compiler Version" we now search for "C/C++" and the version number.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 23 Feb 2023 18:15:57 +0300
parents 955c4b186354
children 3c4d81ea1338
comparison
equal deleted inserted replaced
8126:9bcc5cc94ff4 8127:17b3efb45b17
9 # MSVC 2008 Express Edition (9.0) cl 15.00 9 # MSVC 2008 Express Edition (9.0) cl 15.00
10 # MSVC 2010 (10.0) cl 16.00 10 # MSVC 2010 (10.0) cl 16.00
11 # MSVC 2015 (14.0) cl 19.00 11 # MSVC 2015 (14.0) cl 19.00
12 12
13 13
14 NGX_MSVC_VER=`$NGX_WINE $CC 2>&1 | grep 'Compiler Version' 2>&1 \ 14 NGX_MSVC_VER=`$NGX_WINE $CC 2>&1 | grep 'C/C++.* [0-9][0-9]*\.[0-9]' 2>&1 \
15 | sed -e 's/^.* Version \(.*\)/\1/'` 15 | sed -e 's/^.* \([0-9][0-9]*\.[0-9].*\)/\1/'`
16 16
17 echo " + cl version: $NGX_MSVC_VER" 17 echo " + cl version: $NGX_MSVC_VER"
18 18
19 have=NGX_COMPILER value="\"cl $NGX_MSVC_VER\"" . auto/define 19 have=NGX_COMPILER value="\"cl $NGX_MSVC_VER\"" . auto/define
20 20