Skip to content

Commit 60a09da

Browse files
Merge pull request #37751 from varungandhi-apple/vg-fix-xcode-config-flag
Add missing --config flag when building with --xcode.
2 parents bfef818 + 526b0ef commit 60a09da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/swift_build_support/swift_build_support/products/cmake_product.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def build_with_cmake(self, build_targets, build_type, build_args):
6868

6969
# Xcode can't restart itself if it turns out we need to reconfigure.
7070
# Do an advance build to handle that.
71-
shell.call(cmake_build + [self.build_dir, build_type])
71+
shell.call(cmake_build + [self.build_dir, "--config", build_type])
7272

7373
shell.call(cmake_build + [self.build_dir, "--config", build_type, "--"]
7474
+ build_args + build_targets)

0 commit comments

Comments
 (0)