aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/swift.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/swift.ts')
-rw-r--r--lib/compilers/swift.ts14
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/compilers/swift.ts b/lib/compilers/swift.ts
index caa07237e..6b4406aeb 100644
--- a/lib/compilers/swift.ts
+++ b/lib/compilers/swift.ts
@@ -24,19 +24,29 @@
import {BaseCompiler} from '../base-compiler.js';
-import {ClangParser} from './argument-parsers.js';
+import {SwiftParser} from './argument-parsers.js';
+
+import type {PreliminaryCompilerInfo} from '../../types/compiler.interfaces.js';
export class SwiftCompiler extends BaseCompiler {
static get key() {
return 'swift';
}
+ constructor(info: PreliminaryCompilerInfo, env) {
+ super(info, env);
+ this.compiler.supportsLLVMOptPipelineView = true;
+ this.compiler.llvmOptArg = ['-Xllvm', '-print-after-all', '-Xllvm', '-print-before-all'];
+ this.compiler.llvmOptModuleScopeArg = ['-Xllvm', '-print-module-scope'];
+ this.compiler.llvmOptNoDiscardValueNamesArg = [];
+ }
+
override getSharedLibraryPathsAsArguments() {
return [];
}
override getArgumentParser() {
- return ClangParser;
+ return SwiftParser;
}
override isCfgCompiler(/*compilerVersion*/) {