SWIG: Make gem5 compile and link with swig 2.0.4
authorAndreas Hansson <andreas.hansson@arm.com>
Tue, 10 Jan 2012 00:08:20 +0000 (18:08 -0600)
committerAndreas Hansson <andreas.hansson@arm.com>
Tue, 10 Jan 2012 00:08:20 +0000 (18:08 -0600)
commit59b7cad3ec6ae02f53b53865b365101b1856bb93
treec10cc7a6de4aa21d3cfc53a28b88529182733fbd
parentc2dbfc1d6ca677f9b6fb8eaa60e4003a903e26bd
SWIG: Make gem5 compile and link with swig 2.0.4

To make gem5 compile and run with swig 2.0.4 a few minor fixes are
necessary, the fail label issues by swig must not be treated as an
error by gcc (tested with gcc 4.2.1), and the vector wrappers must
have SWIGPY_SLICE_ARG defined which happens in pycontainer.swg,
included through std_container.i. By adding the aforementioned include
to the vector wrappers everything seems to work.
src/SConscript
src/python/m5/params.py