summaryrefslogtreecommitdiff
path: root/src/python/swig
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2008-06-15 20:56:35 -0700
committerNathan Binkert <nate@binkert.org>2008-06-15 20:56:35 -0700
commit6dedc645f7f54df021e0aa9a5b48015f984a2e39 (patch)
tree79ed84014771e893eb5cdd72a0711de4937810ba /src/python/swig
parentb2036bfda88aa99304e48f26541e5d84ada34db9 (diff)
downloadgem5-6dedc645f7f54df021e0aa9a5b48015f984a2e39.tar.xz
add compile flags to m5
Diffstat (limited to 'src/python/swig')
-rw-r--r--src/python/swig/core.i7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/python/swig/core.i b/src/python/swig/core.i
index 567eff591..53d992ac6 100644
--- a/src/python/swig/core.i
+++ b/src/python/swig/core.i
@@ -39,12 +39,14 @@
#include "sim/startup.hh"
extern const char *compileDate;
+std::vector<std::string> compileFlags();
extern const char *hgRev;
extern const char *hgDate;
%}
%include "stdint.i"
%include "std_string.i"
+%include "std_vector.i"
%include "sim/host.hh"
void setOutputDir(const std::string &dir);
@@ -52,7 +54,12 @@ void setOutputFile(const std::string &file);
void SimStartup();
void doExitCleanup();
+%immutable compileDate;
char *compileDate;
+
+namespace std { %template(StringVector) vector<string>; }
+std::vector<std::string> compileFlags();
+
char *hgRev;
char *hgDate;