nginx/auto/cc
Andrew Clayton 99312be10c Configure: ensure we get the "built by ..." line in nginx -V.
For certain compilers we embed the compiler version used to build nginx
in the binary, retrievable via 'nginx -V', e.g.

  $ ./objs/nginx -V
  ...
  built by gcc 15.2.1 20250808 (Red Hat 15.2.1-1) (GCC)
  ...

However if the CFLAGS environment variable is set this would be omitted.

This is due to the compiler specific auto/cc files not being run when
the CFLAGS environment variable is set, this is so entities can set
their own compiler flags, and thus the NGX_COMPILER variable isn't set.

Nonetheless it is a useful thing to have so re-work the auto scripts to
move the version gathering out of the individual auto/cc/$NGX_CC_NAME
files and merge them into auto/cc/name.

Link: <https://github.com/nginx/nginx/issues/878>
2025-11-04 16:11:53 +00:00
..
acc Internal md5 and sha1 implementations are now always used. 2016-06-30 18:57:39 +03:00
bcc Configure: use .exe for binaries for all win32 compilers. 2017-06-06 19:37:34 +03:00
ccc Copyright updated. 2012-01-18 15:07:43 +00:00
clang Configure: ensure we get the "built by ..." line in nginx -V. 2025-11-04 16:11:53 +00:00
conf Win32: removed unneeded wildcard in NGX_CC_NAME test for msvc. 2023-02-23 18:15:53 +03:00
gcc Configure: ensure we get the "built by ..." line in nginx -V. 2025-11-04 16:11:53 +00:00
icc Configure: ensure we get the "built by ..." line in nginx -V. 2025-11-04 16:11:53 +00:00
msvc Configure: ensure we get the "built by ..." line in nginx -V. 2025-11-04 16:11:53 +00:00
name Configure: ensure we get the "built by ..." line in nginx -V. 2025-11-04 16:11:53 +00:00
owc Configure: use .exe for binaries for all win32 compilers. 2017-06-06 19:37:34 +03:00
sunc Configure: ensure we get the "built by ..." line in nginx -V. 2025-11-04 16:11:53 +00:00