aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatt Godbolt <matt@godbolt.org>2017-12-21 07:07:41 -0600
committerMatt Godbolt <matt@godbolt.org>2017-12-21 07:07:41 -0600
commit500557c4e9ae9bb527384bb0eed71e50ee76d27f (patch)
treec04e6e77dbfa523dad994c06f982db9448f2a90f /lib
parente873bb4b1170631dced0f9ecc7b5bea504d47d21 (diff)
downloadcompiler-explorer-500557c4e9ae9bb527384bb0eed71e50ee76d27f.tar.gz
compiler-explorer-500557c4e9ae9bb527384bb0eed71e50ee76d27f.zip
Prevent colourisation of AST dump in clang. Fixes #696
Diffstat (limited to 'lib')
-rw-r--r--lib/base-compiler.js3
1 files changed, 2 insertions, 1 deletions
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