SConscript (5554:e6fabe023fe1) SConscript (5559:660fa7b652f5)
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

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

942# binary. Additional keyword arguments are appended to corresponding
943# build environment vars.
944def makeEnv(label, objsfx, strip = False, **kwargs):
945 newEnv = env.Copy(OBJSUFFIX=objsfx)
946 newEnv.Label = label
947 newEnv.Append(**kwargs)
948
949 swig_env = newEnv.Copy()
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

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

942# binary. Additional keyword arguments are appended to corresponding
943# build environment vars.
944def makeEnv(label, objsfx, strip = False, **kwargs):
945 newEnv = env.Copy(OBJSUFFIX=objsfx)
946 newEnv.Label = label
947 newEnv.Append(**kwargs)
948
949 swig_env = newEnv.Copy()
950 swig_env.Append(CCFLAGS='-Wno-uninitialized')
950 if env['GCC']:
951 swig_env.Append(CCFLAGS='-Wno-uninitialized')
952 swig_env.Append(CCFLAGS='-Wno-sign-compare')
953 swig_env.Append(CCFLAGS='-Wno-parentheses')
951 swig_objs = [ swig_env.Object(s) for s in cc_swig_sources ]
952
953 # First make a library of everything but main() so other programs can
954 # link against m5.
955 #
956 # SCons doesn't know to append a library suffix when there is a '.' in the
957 # name. Use '_' instead.
958

--- 65 unchanged lines hidden ---
954 swig_objs = [ swig_env.Object(s) for s in cc_swig_sources ]
955
956 # First make a library of everything but main() so other programs can
957 # link against m5.
958 #
959 # SCons doesn't know to append a library suffix when there is a '.' in the
960 # name. Use '_' instead.
961

--- 65 unchanged lines hidden ---