aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/default.js
diff options
context:
space:
mode:
authorMatt Godbolt <matt@godbolt.org>2017-07-12 15:12:49 -0500
committerMatt Godbolt <matt@godbolt.org>2017-07-12 15:12:49 -0500
commit3c80c6eff0a66604c0dc8529aa99a744f9edfba2 (patch)
tree747268b5c4e84735d896c14953635fe3e09acb5f /lib/compilers/default.js
parentdf22d86a02f15e09d7349ce1e99a1ad5365d7896 (diff)
downloadcompiler-explorer-3c80c6eff0a66604c0dc8529aa99a744f9edfba2.tar.gz
compiler-explorer-3c80c6eff0a66604c0dc8529aa99a744f9edfba2.zip
Fix some minor issues with compiler type determination.
Remove 'compiler.type' in favour of the comiler itself being given an option to say what type it is. Default for that does the same guess that the old code did (plus some bug fixes). Fixed up (I hope!) some of the parsing of the output. I should write some tests really. CC @jaredw for further comment
Diffstat (limited to 'lib/compilers/default.js')
-rw-r--r--lib/compilers/default.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/compilers/default.js b/lib/compilers/default.js
index fe55b9998..759d2bbe8 100644
--- a/lib/compilers/default.js
+++ b/lib/compilers/default.js
@@ -22,10 +22,9 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
-const Compile = require('../base-compiler'),
- argumentParsers = require("./argument-parsers");
+const Compile = require('../base-compiler');
module.exports = function (info, env) {
var comp = new Compile(info, env);
- return comp.initialise(argumentParsers[info.type]);
+ return comp.initialise();
}; \ No newline at end of file