From 6dedc645f7f54df021e0aa9a5b48015f984a2e39 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Sun, 15 Jun 2008 20:56:35 -0700 Subject: add compile flags to m5 --- src/python/swig/core.i | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/python/swig') 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 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; } +std::vector compileFlags(); + char *hgRev; char *hgDate; -- cgit v1.2.3