mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 18:28:21 -06:00
Prevent colourisation of AST dump in clang. Fixes #696
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user