Skip to content

Commit 672d5aa

Browse files
authored
[Build] Fix Python 2 incompatibility in cmake_product.py (#37659)
1 parent fe74c86 commit 672d5aa

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
@@ -60,7 +60,7 @@ def build_with_cmake(self, build_targets, build_type, build_args):
6060
if self.args.cmake_generator == "Xcode":
6161
# Xcode generator uses "ALL_BUILD" instead of "all".
6262
# Also, xcodebuild uses -target instead of bare names.
63-
build_targets = build_targets.copy()
63+
build_targets = build_targets[:]
6464
build_targets = [val for target in build_targets
6565
for val in ["-target",
6666
target if target != "all"

0 commit comments

Comments
 (0)