aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/ldc.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/ldc.js')
-rw-r--r--lib/compilers/ldc.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/compilers/ldc.js b/lib/compilers/ldc.js
index 2ab8e7cce..15bbd584f 100644
--- a/lib/compilers/ldc.js
+++ b/lib/compilers/ldc.js
@@ -42,16 +42,13 @@ export class LDCCompiler extends BaseCompiler {
this.compiler.supportsIntel = true;
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.
-
- const asanSymbolizerPath = path.join(path.dirname(this.compiler.exe), 'llvm-symbolizer');
- if (fs.existsSync(asanSymbolizerPath)) {
- this.asanSymbolizerPath = asanSymbolizerPath;
- }
+
+ this.asanSymbolizerPath = this.compilerProps('llvmSymbolizer');
}
runExecutable(executable, executeParameters, homeDir) {