/[escript]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

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

revision 3966 by jfenwick, Tue Sep 11 07:21:41 2012 UTC revision 3967 by jfenwick, Mon Sep 17 04:02:58 2012 UTC
# Line 144  vars.AddVariables( Line 144  vars.AddVariables(
144  # in default locations.  # in default locations.
145  env = Environment(tools = ['default'], options = vars,  env = Environment(tools = ['default'], options = vars,
146                    ENV = {'PATH': os.environ['PATH']})                    ENV = {'PATH': os.environ['PATH']})
147                      
148    
149    #set the vars for clang
150    def mkclang(env):
151      env['CC']='clang'
152      env['CXX']='clang++'
153                      
154                      
155  if env['tools_names'] != 'default':  if env['tools_names'] != 'default':
156        zz=env['tools_names']
157        if 'clang' in zz:
158            zz.remove('clang')
159            zz.insert(0, mkclang)
160      env = Environment(tools = ['default'] + env['tools_names'], options = vars,      env = Environment(tools = ['default'] + env['tools_names'], options = vars,
161                        ENV = {'PATH' : os.environ['PATH']})                        ENV = {'PATH' : os.environ['PATH']})
162    

Legend:
Removed from v.3966  
changed lines
  Added in v.3967

  ViewVC Help
Powered by ViewVC 1.1.26