[Ocemp-CVS] papi setup.py,1.10,1.11
Status: Beta
Brought to you by:
marcusva
From: Marcus v. A. <mar...@us...> - 2007-05-26 12:38:07
|
Update of /cvsroot/ocemp/papi In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv17838 Modified Files: setup.py Log Message: Made warnings optional if not compiled with PAPI_DEBUG='1' Index: setup.py =================================================================== RCS file: /cvsroot/ocemp/papi/setup.py,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- setup.py 22 Mar 2007 22:41:33 -0000 1.10 +++ setup.py 26 May 2007 12:38:05 -0000 1.11 @@ -149,13 +149,16 @@ defines = get_papi_defines () docfiles = get_documentation_files () - - warn_flags = ["-W", "-Wall", "-Wpointer-arith", "-Wcast-qual", - "-Winline", "-Wcast-align", "-Wconversion", - "-Wstrict-prototypes", "-Wmissing-prototypes", - "-Wmissing-declarations", "-Wnested-externs", - "-Wshadow", "-Wredundant-decls" - ] + + if PAPI_DEBUG != "0": + warn_flags = ["-W", "-Wall", "-Wpointer-arith", "-Wcast-qual", + "-Winline", "-Wcast-align", "-Wconversion", + "-Wstrict-prototypes", "-Wmissing-prototypes", + "-Wmissing-declarations", "-Wnested-externs", + "-Wshadow", "-Wredundant-decls" + ] + else: + warn_flags = [] compile_args = warn_flags + ["-std=c99", "-g"] papi = Extension ("papi", sources=get_papi_files (), include_dirs=includes, library_dirs=libdirs, |