Changeset 2492


Ignore:
Timestamp:
05/11/12 10:21:05 (13 years ago)
Author:
Malte Marquarding
Message:

cleanup of compiler flags

Location:
trunk/distutils
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/distutils/setup.py

    r2490 r2492  
    1212
    1313sources = glob.glob('src/*.cpp')
    14 sources = glob.glob("external-alma/atnf/pks/pks_maths.cc")
     14sources += glob.glob("external-alma/atnf/pks/pks_maths.cc")
    1515sources += glob.glob("external-alma/atnf/PKSIO/*.cc")
    16 
    17 sources = glob.glob("external/libpyrap/pyrap-0.3.2/pyrap/Converters/*.cc")
     16sources += glob.glob("external/libpyrap/pyrap-0.3.2/pyrap/Converters/*.cc")
    1817
    1918headers = glob.glob('src/*.h')
  • trunk/distutils/setupext.py

    r2490 r2492  
    3232              ' e.g. $HOME, to add $HOME/lib etc to the build.'),
    3333             ]
     34
    3435
    3536    def initialize_options(self):
     
    122123
    123124
    124     def run(self):
    125         build_ext.build_ext.run(self)
     125    def build_extensions(self):
     126        delargs = ["-Wstrict-prototypes", "-Wshorten-64-to-32",
     127                   "-fwrapv"]
     128        for comp in [self.compiler.compiler, self.compiler.compiler_so,
     129                     self.compiler.compiler_cxx]:
     130            for arg in comp:
     131                if arg in delargs:
     132                    comp.remove(arg)
     133
     134        build_ext.build_ext.build_extensions(self)
Note: See TracChangeset for help on using the changeset viewer.