[njs] Fix compiler detection when CC has a wrapper.

Dmitry Volyntsev xeioex at nginx.com
Thu Mar 23 05:43:15 UTC 2023


details:   https://hg.nginx.org/njs/rev/ec007866a53b
branches:  
changeset: 2076:ec007866a53b
user:      Orgad Shaneh <orgad.shaneh at audiocodes.com>
date:      Wed Mar 22 15:22:37 2023 +0200
description:
Fix compiler detection when CC has a wrapper.

For example CC='ccache gcc'.

diffstat:

 auto/cc |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 8e6a2cb0c23d -r ec007866a53b auto/cc
--- a/auto/cc	Wed Mar 22 09:36:58 2023 -0700
+++ b/auto/cc	Wed Mar 22 15:22:37 2023 +0200
@@ -13,7 +13,7 @@ END
 # Allow error exit status.
 set +e
 
-if [ -z `which $CC` ]; then
+if [ -z "$(which $CC)" ]; then
     echo
     echo $0: error: $CC not found.
     echo


More information about the nginx-devel mailing list