diff --git a/lib/base-compiler.js b/lib/base-compiler.js index 4981934c9..14425c735 100644 --- a/lib/base-compiler.js +++ b/lib/base-compiler.js @@ -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