@@ -54,11 +54,6 @@ static bool buildSwiftPackages(const std::vector<std::filesystem::path>& swiftPa
54
54
return any_successful;
55
55
}
56
56
57
- static void installDependencies (const CLIArgs& args) {
58
- auto structure = scanProjectStructure (args.workingDir );
59
- installDependencies (structure, args.dryRun );
60
- }
61
-
62
57
static bool autobuild (const CLIArgs& args) {
63
58
auto structure = scanProjectStructure (args.workingDir );
64
59
auto & xcodeTargets = structure.xcodeTargets ;
@@ -87,6 +82,7 @@ static bool autobuild(const CLIArgs& args) {
87
82
return false ;
88
83
} else if (!xcodeTargets.empty ()) {
89
84
LOG_INFO (" Building Xcode target: {}" , xcodeTargets.front ());
85
+ installDependencies (structure, args.dryRun );
90
86
auto buildSucceeded = buildXcodeTarget (xcodeTargets.front (), args.dryRun );
91
87
// If build failed, try to build Swift packages
92
88
if (!buildSucceeded && !swiftPackages.empty ()) {
@@ -117,7 +113,6 @@ static CLIArgs parseCLIArgs(int argc, char** argv) {
117
113
118
114
int main (int argc, char ** argv) {
119
115
auto args = parseCLIArgs (argc, argv);
120
- installDependencies (args);
121
116
auto success = autobuild (args);
122
117
codeql::Log::flush ();
123
118
if (!success) {
0 commit comments