diff options
author | Marcus Holland-Moritz <mhx-perl@gmx.net> | 2003-09-23 17:04:35 +0200 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-09-23 12:31:08 +0000 |
commit | 06d57135c3576e5e9f97d6e4dad25b75f34d779f (patch) | |
tree | b526027e94e8d5528f842800a48bfe7fc9b214ac /hints/linux.sh | |
parent | ac6c51b859bf3bdb964745162899c282192e42f0 (diff) | |
download | perl-06d57135c3576e5e9f97d6e4dad25b75f34d779f.tar.gz |
Re: [PATCH] RC5 and Intel's ICC
From: "Marcus Holland-Moritz" <mhx-perl@gmx.net>
Message-ID: <00d101c381d3$3d761fe0$0c2f1fac@R2D2>
(add -we147 to ccflags if cc = ICC so that prototype
detection works right)
p4raw-id: //depot/perl@21339
Diffstat (limited to 'hints/linux.sh')
-rw-r--r-- | hints/linux.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hints/linux.sh b/hints/linux.sh index caf380a5ab..bc7d49ad82 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -67,6 +67,18 @@ case "$usemymalloc" in '') usemymalloc='n' ;; esac +# Check if we're about to use Intel's ICC compiler +case "`${cc:-cc} -V 2>&1`" in +*"Intel(R) C++ Compiler"*) + # This is needed for Configure's prototype checks to work correctly + ccflags="-we147 $ccflags" + # If we're using ICC, we usually want the best performance + case "$optimize" in + '') optimize='-O3' ;; + esac + ;; +esac + case "$optimize" in '') # If we have modern enough gcc and well-supported enough CPU, # crank up the optimization level. |