/[escript]/trunk/scons/linux_options_example.py
ViewVC logotype

Annotation of /trunk/scons/linux_options_example.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2026 - (hide annotations)
Tue Nov 11 01:56:54 2008 UTC (11 years ago) by jfenwick
Original Path: trunk/scons/badger_options.py
File MIME type: text/x-python
File size: 3303 byte(s)
I have changed the default scons options for gcc to be much more picky about warnings.
By default warnings will be treated as errors; so a program with warnings won't compile.

If you need to turn this off, usewarnings=no will work.

The previous usepedantic oprtion is no longer turned on by default.

This should have no effect on any of the other compilers.
If anyone wants to jump in and supply sensible values for the fatalwarnings variable for their favourite compiler go ahead.
1 jfenwick 1690
2 ksteube 1810 ########################################################
3 jfenwick 1690 #
4 ksteube 1810 # Copyright (c) 2003-2008 by University of Queensland
5     # Earth Systems Science Computational Center (ESSCC)
6     # http://www.uq.edu.au/esscc
7 jfenwick 1690 #
8 ksteube 1810 # Primary Business: Queensland, Australia
9     # Licensed under the Open Software License version 3.0
10     # http://www.opensource.org/licenses/osl-3.0.php
11     #
12     ########################################################
13 jfenwick 1690
14 ksteube 1810
15 ksteube 1705 # Configuration for shake63 (32-bit Intel running Fedora Linux)
16 jfenwick 1690
17 ksteube 1705 # If you cannot use the default compiler flags set in SConstruct, then change them here
18     # C/C++ Compiler flags (always use cc_flags and either cc_optim or cc_debug)
19     # cc_flags = '-ansi'
20     # cc_optim = '-O2'
21     # cc_debug = '-g'
22     # omp_optim = '-openmp'
23     # omp_debug = '-openmp'
24     # omp_libs = []
25    
26     # Use the default C/C++ flags but add something only for this host:
27 jfenwick 2026 #cc_extra = '-Wall -pedantic -isystem /usr/include/boost/ -isystem /usr/include/python2.5/ -Wno-sign-compare -Wno-long-long'
28 ksteube 1771 # ld_extra = ''
29 ksteube 1705
30     # Be picky about errors
31     # usepedantic = 'no'
32    
33     # Extra libraries
34     # sys_libs = ['guide', 'pthread', 'stdc++']
35    
36     # Python libraries
37 jfenwick 1690 python_path = '/usr/include/python2.5'
38     python_lib_path = '/usr/lib'
39 ksteube 1705 python_libs = 'python2.5'
40     # python_cmd = 'python'
41 jfenwick 1690
42 ksteube 1705 # Boost libraries
43     boost_path = '/usr/include/'
44     boost_lib_path = '/usr/lib'
45     boost_libs = ['boost_python']
46 jfenwick 1690
47 ksteube 1705 # Specify whether or not to use VTK
48     # usevtk = 'yes'
49    
50 jfenwick 1690 # NetCDF
51 ksteube 1705 # usenetcdf = 'yes'
52 jfenwick 1690 netCDF_path = '/usr/include/netcdf-3'
53     netCDF_lib_path = '/usr/lib'
54 ksteube 1705 # netCDF_libs = ['netcdf_c++', 'netcdf']
55 jfenwick 1690
56 ksteube 1705 # MKL
57     # usemkl = 'yes'
58     # mkl_path = '/sw/sdev/cmkl/10.0.2.18/include'
59     # mkl_lib_path = '/sw/sdev/cmkl/10.0.2.18/lib/em64t'
60     # mkl_libs = ['mkl_solver', 'mkl_em64t', 'mkl_core', 'guide', 'pthread']
61    
62     # UMFPACK (requires AMD and BLAS)
63     # useumfpack = 'yes'
64     # ufc_path = '/sw/libs/umfpack/x86_64/gcc-4.1.2/umfpack-5.2/include'
65     # umf_path = '/sw/libs/umfpack/x86_64/gcc-4.1.2/umfpack-5.2/include'
66     # umf_lib_path = '/sw/libs/umfpack/x86_64/gcc-4.1.2/umfpack-5.2/lib'
67     # umf_libs = ['umfpack']
68     # amd_path = '/sw/libs/umfpack/x86_64/gcc-4.1.2/umfpack-5.2/include'
69     # amd_lib_path = '/sw/libs/umfpack/x86_64/gcc-4.1.2/umfpack-5.2/lib'
70     # amd_libs = ['amd']
71     # blas_path = '/sw/libs/umfpack/x86_64/gcc-4.1.2/umfpack-5.2/include'
72     # blas_lib_path = '/sw/libs/umfpack/x86_64/gcc-4.1.2/umfpack-5.2/lib'
73     # blas_libs = ['blas']
74    
75     # OpenMP
76     # useopenmp = 'yes'
77    
78     # MPICH2 (to run Escript use: module load mpich2/gcc-4.1.2/mpich2-1.0.7)
79 ksteube 1771 # usempi = 'no'
80 ksteube 1705 # mpi_path = '/home/Work/InstallArea/mpich2-1.0.7/include'
81     # mpi_lib_path = '/home/Work/InstallArea/mpich2-1.0.7/lib'
82 jfenwick 1690 # mpi_libs = ['mpich', 'rt']
83 ksteube 1705 # mpi_run = 'mpirun -np 1'
84 jfenwick 1690
85 ksteube 1705 # MPICH2 for jumpshot (to run Escript use: module load mpich2/gcc-4.1.2/mpich2-1.0.7)
86     # mpi_path = '/home/Work/InstallArea/mpich2-1.0.7/include'
87     # mpi_lib_path = '/home/Work/InstallArea/mpich2-1.0.7/lib'
88     # mpi_libs = ['lmpe', 'mpe', 'mpich', 'rt']
89     # mpi_run = 'mpirun -np 1'
90 jfenwick 1690
91 ksteube 1705 # ParMETIS (for use with MPI)
92     # useparmetis = 'yes'
93     # parmetis_path = '/home/Work/InstallArea/parmetis-3.1/include'
94     # parmetis_lib_path = '/home/Work/InstallArea/parmetis-3.1/lib'
95     # parmetis_libs = ['parmetis', 'metis']
96    
97     # PAPI
98     # usepapi = 'no'
99     # papi_path = '/usr/include'
100     # papi_lib_path = '/usr/lib'
101     # papi_libs = ['papi']
102     # papi_instrument_solver = 'no'
103    

Properties

Name Value
svn:mergeinfo

  ViewVC Help
Powered by ViewVC 1.1.26