зеркало из https://github.com/github/codeql.git
Swift: teach extractor to not produce artifacts
This commit is contained in:
Родитель
5b75b4db79
Коммит
9c73ae5a97
|
@ -16,6 +16,14 @@ class Observer : public swift::FrontendObserver {
|
|||
public:
|
||||
explicit Observer(const codeql::SwiftExtractorConfiguration& config) : config{config} {}
|
||||
|
||||
void parsedArgs(swift::CompilerInvocation& invocation) override {
|
||||
// Original compiler and the extractor-compiler get into conflicts when
|
||||
// both produce the same output files.
|
||||
// TODO: change the final arifact destinations instead of disabling
|
||||
// the artifact generation completely?
|
||||
invocation.getFrontendOptions().RequestedAction = swift::FrontendOptions::ActionType::Typecheck;
|
||||
}
|
||||
|
||||
void performedSemanticAnalysis(swift::CompilerInstance& compiler) override {
|
||||
codeql::extractSwiftFiles(config, compiler);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче