diff options
author | nickpdemarco <nickpdemarco@gmail.com> | 2023-10-11 14:43:05 -0400 |
---|---|---|
committer | nickpdemarco <nickpdemarco@gmail.com> | 2023-10-11 14:43:05 -0400 |
commit | 9cda199e40c920fcc9c53082b0dabb17d31a8b7f (patch) | |
tree | a4e9a03a9feea17376f5990e19c12818d32ec95e /lib/compilers/swift.ts | |
parent | 55a2b1455f823026c78b9219f93799af00ef60ae (diff) | |
parent | 10796b3696cf1eef928de8c750b4d3350ee0c2db (diff) | |
download | compiler-explorer-9cda199e40c920fcc9c53082b0dabb17d31a8b7f.tar.gz compiler-explorer-9cda199e40c920fcc9c53082b0dabb17d31a8b7f.zip |
Merge main, resolve conflicts with vala
Diffstat (limited to 'lib/compilers/swift.ts')
-rw-r--r-- | lib/compilers/swift.ts | 14 |
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*/) { |