Added sane default compiler options for the Intel compiler
This commit is contained in:
parent
c3ba91ca6f
commit
5343eea5f1
1 changed files with 7 additions and 0 deletions
|
|
@ -92,6 +92,13 @@ elif env['CC'] == 'cl': # Visual Studio
|
|||
defaults.releaseCcFlags = '/O2 /MD /DNDEBUG'
|
||||
defaults.debugLinkFlags = '/DEBUG'
|
||||
defaults.fPIC = ''
|
||||
elif env['CC'] == 'icc':
|
||||
defaults.cxxFlags = '-ftemplate-depth-128'
|
||||
defaults.ccFlags = '-Wcheck -g -vec-report0'
|
||||
defaults.debugCcFlags = '-O0 -fno-inline'
|
||||
defaults.releaseCcFlags = '-O3 -finline-functions -DNDEBUG'
|
||||
defaults.debugLinkFlags = ''
|
||||
defaults.fPIC = '-fPIC'
|
||||
else:
|
||||
print "Warning: Unrecognized C compiler '%s'" % env['CC']
|
||||
defaults.cxxFlags = ''
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue