core/util: indirection to CommandLine class added to make bochs compile

If CommandLine.hpp and (indirectly) optionparser.h is #included in
FailBochsInit.ah, bochs compilation fails (for, e.g., gui/x.cc, at least
on Debian 6).
This commit is contained in:
Horst Schirmeier
2013-03-14 18:13:13 +01:00
parent 06c02e2fa1
commit 422db3e21d
3 changed files with 21 additions and 2 deletions

View File

@ -6,12 +6,11 @@
#ifdef BUILD_BOCHS
#include "../SALInst.hpp"
#include "util/CommandLine.hpp"
aspect FailBochsInit {
advice call("int bxmain()") : before ()
{
fail::CommandLine::Inst().collect_args(bx_startup_flags.argc, bx_startup_flags.argv);
fail::simulator.collectCommandLineArguments(bx_startup_flags.argc, bx_startup_flags.argv);
fail::simulator.startup();
}
};