[swift-users] Help on how to compile a project.

Dmitri Gribenko gribozavr at gmail.com
Mon Feb 22 12:13:37 CST 2016


On Mon, Feb 22, 2016 at 10:08 AM, Max Howell via swift-users
<swift-users at swift.org> wrote:
> So, first, I would like to know if there is a way to compile xcode projects
> (and all classes within it) using the Swift version that I built from
> sources.
>
>
> Hi Marcel,
>
> I actually do this.
>
> What I did is:
>
> 1. Make a recursive copy of a xctoolchain.
> 2. Replace all the parts in that new toolchain with symlinks to the built
> versions
> 3. Edit the Info.plist to give the toolchain a unique name
>
> It’s a hack, but currently it is otherwise quite problematic to build your
> own toolchain. There is a ticket open to make the build-script capable of
> this however, so hopefully this will be implemented.

build-script can do this.  See my last comment in
https://github.com/apple/swift/pull/1267 for an example.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/


More information about the swift-users mailing list