Add -enable-color/-disable-color switches

This commit is contained in:
Alexey Prokhin 2014-09-06 20:23:36 +04:00
parent a7e7304d0e
commit a81c6c6f48
3 changed files with 37 additions and 1 deletions

View file

@ -8,6 +8,7 @@
//===----------------------------------------------------------------------===//
#include "module.h"
#include "color.h"
#include "doc.h"
#include "id.h"
#include "hdrgen.h"
@ -267,6 +268,7 @@ static void parseCommandLine(int argc, char **argv, Strings &sourceFiles, bool &
// Set some default values.
global.params.useSwitchError = 1;
global.params.useArrayBounds = 2;
global.params.color = isConsoleColorSupported();
global.params.linkswitches = new Strings();
global.params.libfiles = new Strings();