aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/argument-parsers.js
diff options
context:
space:
mode:
authorMarc Poulhiès <dkm@kataplop.net>2021-05-27 21:51:33 +0200
committerGitHub <noreply@github.com>2021-05-27 21:51:33 +0200
commitb283b7eef3f3a8c13f5730aa7cf894654e60a2f7 (patch)
treec8a0a622c0e15ccddf0ba8c85d0749a2dfb272e5 /lib/compilers/argument-parsers.js
parentb00511ea102a80b43c705b0149f25251276e7bfa (diff)
downloadcompiler-explorer-b283b7eef3f3a8c13f5730aa7cf894654e60a2f7.tar.gz
compiler-explorer-b283b7eef3f3a8c13f5730aa7cf894654e60a2f7.zip
Initial support for mrustc (#2681)
Add the needed base for new mrustc compiler. https://github.com/thepowersgang/mrustc mrustc is transpiling Rust to C and is mainly used for bootstraping rustc. This change treats the C output as the final product (as is assembly for GCC/clang). It is not easily possible to automatically plug this C to other C compilers to get assembly or executable. fixes #2643
Diffstat (limited to 'lib/compilers/argument-parsers.js')
-rw-r--r--lib/compilers/argument-parsers.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/compilers/argument-parsers.js b/lib/compilers/argument-parsers.js
index 8a62c9d1d..523b37f4d 100644
--- a/lib/compilers/argument-parsers.js
+++ b/lib/compilers/argument-parsers.js
@@ -283,6 +283,13 @@ export class RustParser extends BaseParser {
}
}
+export class MrustcParser extends BaseParser {
+ static async parse(compiler) {
+ await MrustcParser.getOptions(compiler, '--help');
+ return compiler;
+ }
+}
+
export class NimParser extends BaseParser {
static async parse(compiler) {
await NimParser.getOptions(compiler, '-help');