Skip to content

Commit ad9f5ef

Browse files
committed
Swift: stream directly instead of using intermediate string
1 parent eba7f1a commit ad9f5ef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

swift/xcode-autobuilder/XcodeBuildRunner.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,10 @@ void buildTarget(Target& target, bool dryRun) {
5252
argv.push_back("CODE_SIGNING_ALLOWED=NO");
5353

5454
if (dryRun) {
55-
std::string s;
5655
for (auto& arg : argv) {
57-
s += arg + " ";
56+
std::cout << arg + " ";
5857
}
59-
std::cout << s << "\n";
58+
std::cout << "\n";
6059
} else {
6160
if (!exec(argv)) {
6261
std::cerr << "Build failed\n";

0 commit comments

Comments
 (0)