[swift-corelibs-dev] swift-corelibs-dev build-script with --foundation is not working for me
Philippe Hausler
phausler at apple.com
Thu Jan 26 10:44:57 CST 2017
Currently swift-corelibs-foundation only builds as a dynamic library. I wonder if the option —build-swift-static-stdlib is causing issue with that.
> On Jan 26, 2017, at 12:57 AM, Kris Simon via swift-corelibs-dev <swift-corelibs-dev at swift.org> wrote:
>
> Hi,
>
> a couple of days ago i ran into swift on linux. The whole thing makes so much sense for us. Developing our tools in swift could be a huge benefit. I am excited to get deeper into swift for linux.
>
> I build swift on Ubuntu successfully (without errors) from scratch with this options:
>
> ./utils/build-script --release --foundation --verbose-build --build-stdlib-deployment-targets all -l -b -p --skip-test-linux --build-swift-static-stdlib --build-swift-static-sdk-overlay --xctest -c
>
> My goal is to have Foundation in static compiled binaries.
> As mentioned everything in the build process works fine, but the execution of a simple script as shown below failed.
>
> import Foundation
>
> print("Hello Swift.")
> I get the following error:
> /bin/swiftc /home/hello.swift -o /home/hello
> /home/hello.swift:1:8: error: no such module 'Foundation'
> How to build Swift with the current state of foundation?
> Can you please give me a little kick into the right direction? The web is not very useful in this early state, but i am really want to get into it.
>
> Thanks a lot,
> Kris
> _______________________________________________
> swift-corelibs-dev mailing list
> swift-corelibs-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20170126/948b3bbf/attachment.html>
More information about the swift-corelibs-dev
mailing list