aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/compilers/swift.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/compilers/swift.ts b/lib/compilers/swift.ts
index b944dac92..6b4406aeb 100644
--- a/lib/compilers/swift.ts
+++ b/lib/compilers/swift.ts
@@ -26,11 +26,21 @@ import {BaseCompiler} from '../base-compiler.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 [];
}