File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,14 @@ class Observer : public swift::FrontendObserver {
16
16
public:
17
17
explicit Observer (const codeql::SwiftExtractorConfiguration& config) : config{config} {}
18
18
19
+ void parsedArgs (swift::CompilerInvocation& invocation) override {
20
+ // Original compiler and the extractor-compiler get into conflicts when
21
+ // both produce the same output files.
22
+ // TODO: change the final arifact destinations instead of disabling
23
+ // the artifact generation completely?
24
+ invocation.getFrontendOptions ().RequestedAction = swift::FrontendOptions::ActionType::Typecheck;
25
+ }
26
+
19
27
void performedSemanticAnalysis (swift::CompilerInstance& compiler) override {
20
28
codeql::extractSwiftFiles (config, compiler);
21
29
}
You can’t perform that action at this time.
0 commit comments