aboutsummaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorMatt Godbolt <mgodbolt@drw.com>2016-12-19 18:01:16 -0600
committerMatt Godbolt <mgodbolt@drw.com>2016-12-19 18:01:27 -0600
commit7990e42f7ccad1f9ff8e90d425831d173f9992a4 (patch)
tree8b57477b26762924ba0190666a0df6896b55028f /app.js
parent9cac3033d92f185216d23a939198da63e512f0de (diff)
downloadcompiler-explorer-7990e42f7ccad1f9ff8e90d425831d173f9992a4.tar.gz
compiler-explorer-7990e42f7ccad1f9ff8e90d425831d173f9992a4.zip
Refactor individual compilation types into their own files
Diffstat (limited to 'app.js')
-rwxr-xr-xapp.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/app.js b/app.js
index 2921cb61e..a82002747 100755
--- a/app.js
+++ b/app.js
@@ -28,7 +28,7 @@
var nopt = require('nopt'),
os = require('os'),
props = require('./lib/properties'),
- CompileHandler = require('./lib/compile').CompileHandler,
+ CompileHandler = require('./lib/compile-handler').CompileHandler,
buildDiffHandler = require('./lib/diff').buildDiffHandler,
express = require('express'),
child_process = require('child_process'),
@@ -104,9 +104,8 @@ function compilerProps(property, defaultValue) {
// My kingdom for ccs... [see Matt's github page]
var forCompiler = compilerPropsFunc(property, undefined);
if (forCompiler !== undefined) return forCompiler;
- return gccProps(property, defaultValue); // gccProps comes from lib/compile.js
+ return gccProps(property, defaultValue); // gccProps comes from lib/compile-handler.js
}
-require('./lib/compile').initialise(gccProps, compilerProps);
var staticMaxAgeSecs = gccProps('staticMaxAgeSecs', 0);
var awsProps = props.propsFor("aws");
@@ -138,7 +137,7 @@ fileSources.forEach(function (source) {
var clientOptionsHandler = new ClientOptionsHandler(fileSources);
var apiHandler = new ApiHandler();
-var compileHandler = new CompileHandler();
+var compileHandler = new CompileHandler(gccProps, compilerProps);
// auxiliary function used in clientOptionsHandler
function compareOn(key) {