diff options
author | Matt Godbolt <mgodbolt@drw.com> | 2016-12-19 18:01:16 -0600 |
---|---|---|
committer | Matt Godbolt <mgodbolt@drw.com> | 2016-12-19 18:01:27 -0600 |
commit | 7990e42f7ccad1f9ff8e90d425831d173f9992a4 (patch) | |
tree | 8b57477b26762924ba0190666a0df6896b55028f /lib/compilation-env.js | |
parent | 9cac3033d92f185216d23a939198da63e512f0de (diff) | |
download | compiler-explorer-7990e42f7ccad1f9ff8e90d425831d173f9992a4.tar.gz compiler-explorer-7990e42f7ccad1f9ff8e90d425831d173f9992a4.zip |
Refactor individual compilation types into their own files
Diffstat (limited to 'lib/compilation-env.js')
-rw-r--r-- | lib/compilation-env.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/compilation-env.js b/lib/compilation-env.js index 3a19d1ced..0e91da1cf 100644 --- a/lib/compilation-env.js +++ b/lib/compilation-env.js @@ -31,7 +31,9 @@ var LRU = require('lru-cache'), Queue.configure(Promise); -function CompilationEnvironment(gccProps) { +function CompilationEnvironment(gccProps, compilerProps) { + this.gccProps = gccProps; + this.compilerProps = compilerProps; this.okOptions = new RegExp(gccProps('optionsWhitelistRe', '.*')); this.badOptions = new RegExp(gccProps('optionsBlacklistRe', '(?!)')); this.cache = LRU({ |