Using nginx 1.1 with the intel compiler

Ryan Brown mp3geek at gmail.com
Sat Feb 25 04:28:58 UTC 2012


Okay, it managed to compile with your suggested patch, its safe to
push into trunk :)

nginx-dev+openssl-dev compiled under icc and working


>> diff --git a/auto/cc/name b/auto/cc/name
>> --- a/auto/cc/name
>> +++ b/auto/cc/name
>> @@ -64,16 +64,16 @@ if [ "$CC" = bcc32 ]; then
>>     echo " + using Borland C++ compiler"
>>
>>  else
>> +if `$CC -V 2>&1 | grep '^Intel(R) C' >/dev/null 2>&1`; then
>> +    NGX_CC_NAME=icc
>> +    echo " + using Intel C++ compiler"
>> +
>> +else
>>  if `$CC -v 2>&1 | grep 'gcc version' >/dev/null 2>&1`; then
>>     NGX_CC_NAME=gcc
>>     echo " + using GNU C compiler"
>>
>>  else
>> -if `$CC -V 2>&1 | grep '^Intel(R) C' >/dev/null 2>&1`; then
>> -    NGX_CC_NAME=icc
>> -    echo " + using Intel C++ compiler"
>> -
>> -else
>>  if `$CC -V 2>&1 | grep 'Sun C' >/dev/null 2>&1`; then
>>     NGX_CC_NAME=sunc
>>     echo " + using Sun C compiler"
>>



More information about the nginx mailing list