Skip to content

Commit b2f1fbe

Browse files
authored
Merge pull request #15305 from github/alexdenisov/revert-swift-change
Revert "Swift: separate installation of dependencies and autobuilding"
2 parents b209ea6 + 28dd2e9 commit b2f1fbe

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy