8000 Revert "Swift: separate installation of dependencies and autobuilding" · github/codeql@28dd2e9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 28dd2e9

Browse files
committed
Revert "Swift: separate installation of dependencies and autobuilding"
This reverts commit dd13ea3.
1 parent b209ea6 commit 28dd2e9

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

swift/swift-autobuilder/swift-autobuilder.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ static bool buildSwiftPackages(const std::vector<std::filesystem::path>& swiftPa
5454
return any_successful;
5555
}
5656

57-
static void installDependencies(const CLIArgs& args) {
58-
auto structure = scanProjectStructure(args.workingDir);
59-
installDependencies(structure, args.dryRun);
60-
}
61-
6257
static bool autobuild(const CLIArgs& args) {
6358
auto structure = scanProjectStructure(args.workingDir);
6459
auto& xcodeTargets = structure.xcodeTargets;
@@ -87,6 +82,7 @@ static bool autobuild(const CLIArgs& args) {
8782
return false;
8883
} else if (!xcodeTargets.empty()) {
8984
LOG_INFO("Building Xcode target: {}", xcodeTargets.front());
85+
installDependencies(structure, args.dryRun);
9086
auto buildSucceeded = buildXcodeTarget(xcodeTargets.front(), args.dryRun);
9187
// If build failed, try to build Swift packages
9288
if (!buildSucceeded && !swiftPackages.empty()) {
@@ -117,7 +113,6 @@ static CLIArgs parseCLIArgs(int argc, char** argv) {
117113

118114
int main(int argc, char** argv) {
119115
auto args = parseCLIArgs(argc, argv);
120-
installDependencies(args);
121116
auto success = autobuild(args);
122117
codeql::Log::flush();
123118
if (!success) {

0 commit comments

Comments
 (0)
0