/[escript]/branches/cookbookdev/SConstruct
ViewVC logotype

Diff of /branches/cookbookdev/SConstruct

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

revision 1887 by ksteube, Wed Oct 15 03:26:25 2008 UTC revision 1930 by phornby, Fri Oct 24 09:35:55 2008 UTC
# Line 60  opts.AddOptions( Line 60  opts.AddOptions(
60    BoolOption('usedebug', 'Do you want a debug build?', 'no'),    BoolOption('usedebug', 'Do you want a debug build?', 'no'),
61    BoolOption('usevtk', 'Do you want to use VTK?', 'yes'),    BoolOption('usevtk', 'Do you want to use VTK?', 'yes'),
62    ('options_file', 'File of paths/options. Default: scons/<hostname>_options.py', options_file),    ('options_file', 'File of paths/options. Default: scons/<hostname>_options.py', options_file),
63      ('win_cc_name', 'windows C compiler name if needed', 'msvc'),
64    # The strings -DDEFAULT_ get replaced by scons/<hostname>_options.py or by defaults below    # The strings -DDEFAULT_ get replaced by scons/<hostname>_options.py or by defaults below
65    ('cc_flags', 'C compiler flags to use', '-DEFAULT_1'),    ('cc_flags', 'C compiler flags to use', '-DEFAULT_1'),
66    ('cc_optim', 'C compiler optimization flags to use', '-DEFAULT_2'),    ('cc_optim', 'C compiler optimization flags to use', '-DEFAULT_2'),
# Line 134  opts.AddOptions( Line 135  opts.AddOptions(
135    
136  if IS_WINDOWS_PLATFORM:  if IS_WINDOWS_PLATFORM:
137        env = Environment(tools = ['default', 'msvc'], options = opts)        env = Environment(tools = ['default', 'msvc'], options = opts)
138          #env = Environment(tools = ['default', 'intelc'], options = opts)
139  else:  else:
140     if socket.gethostname().split('.')[0] == 'service0':     if socket.gethostname().split('.')[0] == 'service0':
141        env = Environment(tools = ['default', 'intelc'], options = opts)        env = Environment(tools = ['default', 'intelc'], options = opts)
# Line 181  elif env["CC"] == "cl": Line 183  elif env["CC"] == "cl":
183    omp_debug     = ""    omp_debug     = ""
184    omp_libs      = []    omp_libs      = []
185    pedantic      = ""    pedantic      = ""
186    elif env["CC"] == "icl":
187      # intel C on Windows, see windows_msvc71_options.py for a start
188      pedantic      = ""
189    
190  # If not specified in hostname_options.py then set them here  # If not specified in hostname_options.py then set them here
191  if env["cc_flags"]  == "-DEFAULT_1": env['cc_flags'] = cc_flags  if env["cc_flags"]  == "-DEFAULT_1": env['cc_flags'] = cc_flags

Legend:
Removed from v.1887  
changed lines
  Added in v.1930

  ViewVC Help
Powered by ViewVC 1.1.26