SConscript (9556:463684ff6fd1) SConscript (9618:d57e7fe9f2a2)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 878 unchanged lines hidden (view full) ---

887 exename = 'gem5.' + label
888 secondary_exename = 'm5.' + label
889
890 new_env = env.Clone(OBJSUFFIX=objsfx, SHOBJSUFFIX=objsfx + 's')
891 new_env.Label = label
892 new_env.Append(**kwargs)
893
894 swig_env = new_env.Clone()
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 878 unchanged lines hidden (view full) ---

887 exename = 'gem5.' + label
888 secondary_exename = 'm5.' + label
889
890 new_env = env.Clone(OBJSUFFIX=objsfx, SHOBJSUFFIX=objsfx + 's')
891 new_env.Label = label
892 new_env.Append(**kwargs)
893
894 swig_env = new_env.Clone()
895 swig_env.Append(CCFLAGS='-Werror')
896
897 # Both gcc and clang have issues with unused labels and values in
898 # the SWIG generated code
899 swig_env.Append(CCFLAGS=['-Wno-unused-label', '-Wno-unused-value'])
900
901 # Add additional warnings here that should not be applied to
902 # the SWIG generated code
903 new_env.Append(CXXFLAGS='-Wmissing-declarations')
904
905 if env['GCC']:
906 # Depending on the SWIG version, we also need to supress
895
896 # Both gcc and clang have issues with unused labels and values in
897 # the SWIG generated code
898 swig_env.Append(CCFLAGS=['-Wno-unused-label', '-Wno-unused-value'])
899
900 # Add additional warnings here that should not be applied to
901 # the SWIG generated code
902 new_env.Append(CXXFLAGS='-Wmissing-declarations')
903
904 if env['GCC']:
905 # Depending on the SWIG version, we also need to supress
907 # warnings about missing field initializers.
908 swig_env.Append(CCFLAGS='-Wno-missing-field-initializers')
906 # warnings about uninitialized variables and missing field
907 # initializers.
908 swig_env.Append(CCFLAGS=['-Wno-uninitialized',
909 '-Wno-missing-field-initializers'])
909
910 if compareVersions(env['GCC_VERSION'], '4.6') >= 0:
911 swig_env.Append(CCFLAGS='-Wno-unused-but-set-variable')
912
913 # If gcc supports it, also warn for deletion of derived
914 # classes with non-virtual desctructors. For gcc >= 4.7 we
915 # also have to disable warnings about the SWIG code having
916 # potentially uninitialized variables.

--- 181 unchanged lines hidden ---
910
911 if compareVersions(env['GCC_VERSION'], '4.6') >= 0:
912 swig_env.Append(CCFLAGS='-Wno-unused-but-set-variable')
913
914 # If gcc supports it, also warn for deletion of derived
915 # classes with non-virtual desctructors. For gcc >= 4.7 we
916 # also have to disable warnings about the SWIG code having
917 # potentially uninitialized variables.

--- 181 unchanged lines hidden ---