From 5343eea5f14bf3e197079c78a4ede2377c18038d Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Fri, 23 Dec 2011 16:48:33 +0000 Subject: [PATCH] Added sane default compiler options for the Intel compiler --- SConstruct | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SConstruct b/SConstruct index 0a01db140..83bbdc16b 100644 --- a/SConstruct +++ b/SConstruct @@ -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 = ''