aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/ldc.js
diff options
context:
space:
mode:
authorJohan Engelen <jbc.engelen@gmail.com>2022-07-26 01:40:55 +0200
committerGitHub <noreply@github.com>2022-07-26 01:40:55 +0200
commita0584bcc5e32a4ed37ea6c865943b7fd10b897f7 (patch)
treeb924559f3706b9b84dd8b5276f409ea594b0e196 /lib/compilers/ldc.js
parent473f1fc1c4211c9f83b34762359d9b0953b61c3d (diff)
downloadcompiler-explorer-a0584bcc5e32a4ed37ea6c865943b7fd10b897f7.tar.gz
compiler-explorer-a0584bcc5e32a4ed37ea6c865943b7fd10b897f7.zip
Give LDC its own LDCParser for cmdline options. (#3907)gh-3767
LDC does not quite copy Clang cmdline options, so it's best to implement its own parser.
Diffstat (limited to 'lib/compilers/ldc.js')
-rw-r--r--lib/compilers/ldc.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/compilers/ldc.js b/lib/compilers/ldc.js
index 15bbd584f..0583a0284 100644
--- a/lib/compilers/ldc.js
+++ b/lib/compilers/ldc.js
@@ -30,7 +30,7 @@ import semverParser from 'semver';
import {BaseCompiler} from '../base-compiler';
import {logger} from '../logger';
-import {ClangParser} from './argument-parsers';
+import {LDCParser} from './argument-parsers';
export class LDCCompiler extends BaseCompiler {
static get key() {
@@ -43,11 +43,6 @@ export class LDCCompiler extends BaseCompiler {
this.compiler.supportsIrView = true;
this.compiler.irArg = ['-output-ll'];
- this.compiler.supportsLLVMOptPipelineView = true;
- this.compiler.llvmOptArg = ['--print-after-all', '--print-before-all'];
- this.compiler.llvmOptModuleScopeArg = ['--print-module-scope'];
- this.compiler.llvmOptNoDiscardValueNamesArg = []; // LDC does not have a flag for this yet.
-
this.asanSymbolizerPath = this.compilerProps('llvmSymbolizer');
}
@@ -73,7 +68,7 @@ export class LDCCompiler extends BaseCompiler {
}
getArgumentParser() {
- return ClangParser;
+ return LDCParser;
}
filterUserOptions(userOptions) {