Way to --clean only the Swift parts of Swift?


(Alexis) #1

I find that build-script tends to get corrupted state very easily, forcing me to do a —clean build. This is usually because of git, but seemingly from benign things like checking out HEAD~1. Since I’m working on the stdlib, the corruption often shows up in there, so —clean is needlessly heavy-handed. I don’t need to rebuild clang or llvm, and I probably don’t need to rebuild swiftc. Is there any way to do this?


(Greg Parker) #2

The build directory has separate subdirectories for the build products of llvm and clang and swift. Deleting the swift directory will safely preserve llvm and clang, but not swiftc.

···

On Dec 12, 2016, at 9:30 AM, Alexis via swift-dev <swift-dev@swift.org> wrote:

I find that build-script tends to get corrupted state very easily, forcing me to do a —clean build. This is usually because of git, but seemingly from benign things like checking out HEAD~1. Since I’m working on the stdlib, the corruption often shows up in there, so —clean is needlessly heavy-handed. I don’t need to rebuild clang or llvm, and I probably don’t need to rebuild swiftc. Is there any way to do this?

--
Greg Parker gparker@apple.com Runtime Wrangler