/[escript]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

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

revision 2297 by jfenwick, Fri Mar 6 04:46:14 2009 UTC revision 2300 by gross, Wed Mar 11 08:17:57 2009 UTC
# Line 15  Line 15 
15  EnsureSConsVersion(0,96,91)  EnsureSConsVersion(0,96,91)
16  EnsurePythonVersion(2,3)  EnsurePythonVersion(2,3)
17    
18  import sys, os, re, socket, platform  import sys, os, re, socket, platform, stat
19    
20  # Add our extensions  # Add our extensions
21  if os.path.isdir('scons'): sys.path.append('scons')  if os.path.isdir('scons'): sys.path.append('scons')
# Line 189  elif env["CC"] == "gcc": Line 189  elif env["CC"] == "gcc":
189  #the long long warning occurs on the Mac  #the long long warning occurs on the Mac
190    cc_optim      = "-O3"    cc_optim      = "-O3"
191    cc_debug      = "-g -O0 -DDOASSERT -DDOPROF -DBOUNDS_CHECK"    cc_debug      = "-g -O0 -DDOASSERT -DDOPROF -DBOUNDS_CHECK"
192    omp_optim     = ""    omp_optim     = "-fopenmp"
193    omp_debug     = ""    omp_debug     = "-fopenmp"
194    omp_libs      = []    omp_libs      = ['gomp']
195    pedantic      = "-pedantic-errors -Wno-long-long"    pedantic      = "-pedantic-errors -Wno-long-long"
196    fatalwarning      = "-Werror"    fatalwarning      = "-Werror"
197    sysheaderopt      = "-isystem "    sysheaderopt      = "-isystem "
# Line 656  print "" Line 656  print ""
656  Execute(Delete(env['libinstall'] + "/Compiled.with.debug"))  Execute(Delete(env['libinstall'] + "/Compiled.with.debug"))
657  Execute(Delete(env['libinstall'] + "/Compiled.with.mpi"))  Execute(Delete(env['libinstall'] + "/Compiled.with.mpi"))
658  Execute(Delete(env['libinstall'] + "/Compiled.with.openmp"))  Execute(Delete(env['libinstall'] + "/Compiled.with.openmp"))
659    Execute(Delete(env['libinstall'] + "pyversion"))
660  if not env['usempi']: Execute(Delete(env['libinstall'] + "/pythonMPI"))  if not env['usempi']: Execute(Delete(env['libinstall'] + "/pythonMPI"))
661    
662    
# Line 780  if not IS_WINDOWS_PLATFORM: Line 781  if not IS_WINDOWS_PLATFORM:
781      for tests in TestGroups:      for tests in TestGroups:
782          utest.write(tests.makeString())          utest.write(tests.makeString())
783      utest.close()      utest.close()
784        os.chmod("utest.sh",stat.S_IRWXU|stat.S_IRGRP|stat.S_IXGRP|stat.S_IROTH|stat.S_IXOTH)
785      print "utest.sh written"      print "utest.sh written"
786     except IOError:     except IOError:
787      print "Error attempting to write unittests file."      print "Error attempting to write unittests file."

Legend:
Removed from v.2297  
changed lines
  Added in v.2300

  ViewVC Help
Powered by ViewVC 1.1.26