Implement '-main'.

This commit is contained in:
David Nadlinger
2013-06-15 23:09:59 +02:00
parent bed6243481
commit 46b6fdd531
2 changed files with 22 additions and 1 deletions

View File

@@ -204,6 +204,10 @@ static cl::list<std::string, StringsAdapter> stringImportPaths("J",
cl::location(strImpPathStore),
cl::Prefix);
static cl::opt<bool, true> addMain("main",
cl::desc("add empty main() (e.g. for unittesting)"),
cl::ZeroOrMore,
cl::location(global.params.addMain));
// -d-debug is a bit messy, it has 3 modes: