/[escript]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2027 by phornby, Tue Nov 11 02:52:24 2008 UTC revision 2040 by phornby, Sat Nov 15 12:43:11 2008 UTC
# Line 172  if env["CC"] == "icc": Line 172  if env["CC"] == "icc":
172    fatalwarning      = ""        # Switch to turn warnings into errors    fatalwarning      = ""        # Switch to turn warnings into errors
173  elif env["CC"] == "gcc":  elif env["CC"] == "gcc":
174    # GNU C on any system    # GNU C on any system
175    cc_flags      = "-Wall -fPIC -ansi -ffast-math -Wno-unknown-pragmas -DBLOCKTIMER -isystem /usr/include/boost/ -isystem /usr/include/python2.5/ -Wno-sign-compare"    cc_flags      = "-pedantic -Wall -fPIC -ansi -ffast-math -Wno-unknown-pragmas -DBLOCKTIMER -isystem " + env['boost_path'] + " -isystem " + env['python_path'] + " -Wno-sign-compare -Wno-system-headers -Wno-strict-aliasing"
176    #the strict aliasing warning is triggered by some type punning in the boost headers for version 1.34
177    #isystem does not seem to prevent this
178    cc_optim      = "-O3"    cc_optim      = "-O3"
179    cc_debug      = "-g -O0 -DDOASSERT -DDOPROF -DBOUNDS_CHECK"    cc_debug      = "-g -O0 -DDOASSERT -DDOPROF -DBOUNDS_CHECK"
180    omp_optim     = ""    omp_optim     = ""
# Line 272  if env['usepedantic']: env.Append(CCFLAG Line 274  if env['usepedantic']: env.Append(CCFLAG
274  if IS_WINDOWS_PLATFORM:  if IS_WINDOWS_PLATFORM:
275    env.PrependENVPath('PATH',    [env['boost_lib_path']])    env.PrependENVPath('PATH',    [env['boost_lib_path']])
276    env.PrependENVPath('PATH',    [env['libinstall']])    env.PrependENVPath('PATH',    [env['libinstall']])
277      env.Append(CPPDEFINES = ['ESYSUTILS_STATIC_LIB'])
278    
279    if env['usenetcdf']:    if env['usenetcdf']:
280      env.PrependENVPath('PATH',  [env['netCDF_lib_path']])      env.PrependENVPath('PATH',  [env['netCDF_lib_path']])
281    

Legend:
Removed from v.2027  
changed lines
  Added in v.2040

  ViewVC Help
Powered by ViewVC 1.1.26