mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 09:31:03 +03:00
Add -enable-color/-disable-color switches
This commit is contained in:
parent
a7e7304d0e
commit
a81c6c6f48
3 changed files with 37 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue