[Bootstrap] Fix spaces in Xcode issue#669
Conversation
Utilities/bootstrap
Outdated
| '-o', pipes.quote(link_output_path)] | ||
| if args.sysroot: | ||
| link_command.extend(["-sdk", args.sysroot]) | ||
| link_command.extend(["-sdk", pipes.quote(args.sysroot)]) |
There was a problem hiding this comment.
This doesn't feel right, something else must be wrong here... we should be passing each argument in this array literally.
I think the actual probably might be in how we pass this command to swift-build-tool, maybe we are using the old arguments form?
There was a problem hiding this comment.
Yes its using the old arguments form but using array literal did not work because of some commands were separated by a ;
There was a problem hiding this comment.
args: rm -f /Users/ankit/workspace/opensource/swift.org/swiftpm/.build/.bootstrap/lib/PackageDescription.a ; ar cr /Users/ankit/workspace/opensource/swift.org/swiftpm/.build/.bootstrap/lib/PackageDescription.a /Users/ankit/workspace/opensource/swift.org/swiftpm/.build/.bootstrap/PackageDescription.build/JSON.o /Users/ankit/workspace/opensource/swift.org/swiftpm/.build/.bootstrap/PackageDescription.build/Package.o /Users/ankit/workspace/opensource/swift.org/swiftpm/.build/.bootstrap/PackageDescription.build/Product.o /Users/ankit/workspace/opensource/swift.org/swiftpm/.build/.bootstrap/PackageDescription.build/Target.o /Users/ankit/workspace/opensource/swift.org/swiftpm/.build/.bootstrap/PackageDescription.build/Version+StringLiteralConvertible.o /Users/ankit/workspace/opensource/swift.org/swiftpm/.build/.bootstrap/PackageDescription.build/Version.o
There was a problem hiding this comment.
Good news: llbuild now has an archive tool which embeds this logic, so we can just switch to that.
Part of this bug: - https://bugs.swift.org/browse/SR-2650 - <rdar://problem/28318153> SR-2650 Can't build swiftpm with using Xcode that has a whitespace in its name
- https://bugs.swift.org/browse/SR-2650 - <rdar://problem/28318153> SR-2650 Can't build swiftpm with using Xcode that has a whitespace in its name
96c3cef to
cb30c86
Compare
|
@ddunbar done |
|
LGTM |
|
@swift-ci please test |
|
@swift-ci please test linux |
1 similar comment
|
@swift-ci please test linux |
|
LGTM |
|
@swift-ci please test linux |
sdk and compiler path needed escaping.
that has a whitespace in its name