Prevent colourisation of AST dump in clang. Fixes #696

This commit is contained in:
Matt Godbolt
2017-12-21 07:07:41 -06:00
parent e873bb4b11
commit 500557c4e9
+2 -1
View File
@@ -165,7 +165,8 @@ Compile.prototype.prepareArguments = function (userOptions, filters, backendOpti
Compile.prototype.generateAST = function (inputFilename, options) {
// These options make Clang produce an AST dump
let newOptions = options.concat(["-Xclang", "-ast-dump", "-fsyntax-only"]);
let newOptions = _.filter(options, option => option !== '-fcolor-diagnostics')
.concat(["-Xclang", "-ast-dump", "-fsyntax-only"]);
let execOptions = this.getDefaultExecOptions();
// A higher max output is needed for when the user includes headers