summaryrefslogtreecommitdiffhomepage
path: root/auto/cc (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2023-02-23Win32: OpenSSL compilation for x64 targets with MSVC.Maxim Dounin1-0/+15
To ensure proper target selection the NGX_MACHINE variable is now set based on the MSVC compiler output, and the OpenSSL target is set based on it. This is not important as long as "no-asm" is used (as in misc/GNUmakefile and win32 build instructions), but might be beneficial if someone is trying to build OpenSSL with assembler code.
2023-02-23Win32: handling of localized MSVC cl output.Maxim Dounin1-2/+2
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.
2023-02-23Win32: removed unneeded wildcard in NGX_CC_NAME test for msvc.Maxim Dounin1-1/+1
Wildcards for msvc in NGX_CC_NAME tests are not needed since 78f8ac479735.
2019-04-04Win32: defined pdb path.Maxim Dounin1-1/+1
By default, MSVC uses vc<version>.pdb in the current directory. With the "-Fd" switch it is directed to be in the objs directory instead.
2018-04-24Configure: fixed clang version detection (closes #1539).Ruslan Ermilov1-1/+2
While 325b3042edd6 fixed it on MINIX, it broke it on systems that output the word "version" on several lines with "cc -v". The fix is to only consider "clang version" or "LLVM version" as clang version, but this time only using sed(1).
2017-11-23Configure: fixed clang detection on MINIX.Maxim Dounin2-2/+6
As per POSIX, basic regular expressions have no alternations, and the interpretation of the "\|" construct is undefined. At least on MINIX and Solaris grep interprets "\|" as literal "|", and not as an alternation as GNU grep does. Removed such constructs introduced in f1daa0356a1d. This fixes clang detection on MINIX.
2017-06-06Configure: use .exe for binaries for all win32 compilers.Orgad Shaneh3-3/+0
2017-05-15Configure: recent Sun C versions.Maxim Dounin1-1/+4
2017-05-15Configure: disabled gcc atomics with Sun C (ticket #1261).Maxim Dounin1-15/+19
Oracle Developer Studio 12.5 introduced GCC-compatible __sync builtins. Unfortunately, these builtins are neither GCC-compatible (they generate warnings when used with volatile), nor working (unexpectedly fail on unpredictable combinations of code layout and compiler flags). As such, the gcc builtin atomic operations configure test explicitly disabled when compiling with Sun C.
2017-05-15Configure: style.Maxim Dounin1-1/+1
2016-06-27Configure: fix build with -Werror=old-style-definition.Piotr Sikora1-1/+4
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2016-06-27Configure: fix build with -Werror=unused-value.Piotr Sikora1-1/+1
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
2016-06-30Internal md5 and sha1 implementations are now always used.Maxim Dounin5-21/+0
This reduces the number of moving parts in ABI compatibility checks. Additionally, it also allows to use OpenSSL in FIPS mode while still using md5 for non-security tasks.
2016-06-07Configure: revised GCC version processing.Sergey Kandaurov1-7/+6
Now GCC 6 and onwards will use -Wno-unused-parameter.
2016-04-07Fixed spelling.Josh Soref1-2/+2
2016-02-13Win32: simplified and improved handling of MSVC versions.Maxim Dounin2-33/+25
Now we always set NGX_CC_NAME to "msvc", and additionally test compiler version as reported by "cl" in auto/cc/msvc (the same version is also available via the _MSC_VER define). In particular, this approach allows to properly check for C99 variadic macros support, which previously was not used with MSVC versions not explicitly recognized. Now unneeded wildcards in NGX_CC_NAME tests for msvc removed accordingly, as well as unused wildcards for owc and icc.
2016-02-11HTTP/2: implemented HPACK Huffman encoding for response headers.Valentin Bartenev1-0/+10
This reduces the size of headers by over 30% on average. Based on the patch by Vlad Krasnov: http://mailman.nginx.org/pipermail/nginx-devel/2015-December/007682.html
2016-02-04Dynamic modules.Maxim Dounin3-0/+31
The auto/module script is extended to understand ngx_module_link=DYNAMIC. When set, it links the module as a shared object rather than statically into nginx binary. The module can later be loaded using the "load_module" directive. New auto/module parameter ngx_module_order allows to define module loading order in complex cases. By default the order is set based on ngx_module_type. 3rd party modules can be compiled dynamically using the --add-dynamic-module configure option, which will preset ngx_module_link to "DYNAMIC" before calling the module config script. Win32 support is rudimentary, and only works when using MinGW gcc (which is able to handle exports/imports automatically). In collaboration with Ruslan Ermilov.
2015-06-10Configure: added gcc5 to the list of known GCC versions.Valentin Bartenev1-1/+1
2014-05-28Configure: added -Wno-deprecated-declarations on OS X.Maxim Dounin2-0/+10
Previous workaround to avoid warnings on OS X due to deprecated system OpenSSL library (introduced in a3870ea96ccd) no longer works, as the MAC_OS_X_VERSION_MIN_REQUIRED macro is ignored on OS X 10.9 if a compiler used supports __attribute__(availability).
2014-04-07Win32: fixed link flags with MSVC, broken by bfe536716dbf.Maxim Dounin1-1/+1
Notably, "-debug" was omitted, resulting in an executable without debug symbols.
2014-02-13Win32: MSVC 2013 compatibility.Maxim Dounin1-0/+1
Warnings about GetVersionEx() deprecation silenced. Precompiled object linked in.
2014-01-28Configure: enabled -Werror for clang.Ruslan Ermilov1-1/+1
Modern clang versions seem to no longer produce warnings for system headers on Linux (at least clang 3.3 works), hence the change. For older versions --with-cc-opt="-Wno-error" can be used as a workaround.
2013-12-06Configure: enable -Wconditional-uninitialized with clang.Ruslan Ermilov1-0/+1
2013-09-04Configure: fixed building with Sun C if CFLAGS set (ticket #65).Maxim Dounin1-0/+23
2013-09-04Win32: Open Watcom C compatibility fixes.Maxim Dounin1-4/+4
Precompiled headers are disabled as they lead to internal compiler errors with long configure lines. Couple of false positive warnings silenced. Various win32 typedefs are adjusted to work with Open Watcom C 1.9 headers. With this patch, it's now again possible to compile nginx using owc386, with options we normally compile on win32 minus ipv6 and ssl.
2013-07-31Configure: fixed autotest cleanup commands.Sergey Kandaurov1-1/+1
Previously, if configured with --with-cc="clang -g", the autotest.dSYM directories were left unremoved.
2013-04-29Configure: fixed detection of newer Apple clang compilers.Ruslan Ermilov2-3/+3
2013-01-21Removed redundant variable assignment.Sergey Budnevitch1-3/+0
2012-07-29Removed extraneous GCC warning flags.Ruslan Ermilov1-3/+0
2012-07-24Added the Clang compiler support.Ruslan Ermilov3-0/+108
The -Werror is commented out to not break builds on Linux.
2012-07-24Added a commented out -Wmissing-prototypes to CFLAGS.Ruslan Ermilov1-0/+1
It is commented out to not break builds with 3rd party modules.
2012-07-24Replaced a number of "else if" with "elif".Ruslan Ermilov1-26/+10
2012-02-27Configure: moved icc detection before gcc.Maxim Dounin1-5/+5
New versions of icc confuse auto/cc/name due to introduced handling of a "icc -v": $ icc -v icc version 12.1.3 (gcc version 4.6.0 compatibility) $ icc -V Intel(R) C Compiler XE for applications running on IA-32, Version 12.1.3.293 Build 20120212 Copyright (C) 1985-2012 Intel Corporation. All rights reserved. FOR NON-COMMERCIAL USE ONLY See report here: http://mailman.nginx.org/pipermail/nginx/2012-February/032177.html
2012-01-18Copyright updated.Maxim Konovalov10-0/+10
2011-12-29Some questionable optomizations flags for icc were removedMaxim Konovalov1-29/+4
in order to simplify support of its future versions.
2011-10-26Fix of building by Microsoft Visual C++ 10 compiler.Igor Sysoev1-0/+8
2011-08-18Lower optimization level for Sun Studio before 12.1.Maxim Dounin1-5/+17
At least Sun Studio 12 has problems with bit-fields exposed by nginx code (caught by test suite). They seems to be fixed in Sun Studio 12.1. As a workaround use "-fast -xalias_level=any" for older versions, it resolves the problem.
2010-07-05try to use C99 variadic macros first:Igor Sysoev1-13/+13
AIX 5.3's XL C has problems with GCC style variadic macros
2009-12-21do not add NGX_GCC_OPT twice: it is added later with -WIgor Sysoev1-2/+0
2009-11-27test invalid --with-ld-opt in right placeIgor Sysoev1-0/+1
2009-11-27atomic operations test-runIgor Sysoev1-4/+9
2009-11-25GCC 4.1 builtin atomic operationsIgor Sysoev2-4/+14
2009-05-28use tab in MakefileIgor Sysoev1-1/+1
2009-05-12add miltilines in OpenWatcom makefilesIgor Sysoev1-5/+13
2009-05-10remove BMAKE (build make): a cc compiler should use own makeIgor Sysoev2-15/+10
2009-05-08preserve Solaris binary hardware capabilitiesIgor Sysoev1-15/+0
2009-04-24update gcc warningsIgor Sysoev1-1/+2
2009-04-20Win32 master/workers modelIgor Sysoev3-4/+7
2009-04-19add variadic macros support for msvc8Igor Sysoev1-0/+6