[swift-users] libswift frontend ios

Ramakrishna Mallireddy ramakrishna.malli at gmail.com
Tue Feb 23 14:06:28 CST 2016


While trying to build for iOS, I am stuck here...I am using the
build-script to compile, iOS simulator builds are done and for arm all libs
are generate except libSwiftIRGen.a, libSwiftSILOptimizer &
libSwiftImmediate.a

*swift/swift/lib/Immediate/REPL.cpp:39:10: **fatal error: **'histedit.h'
file not found*

#include <histedit.h>

this file is not there for iOS, how to get around this.

On Tue, Feb 23, 2016 at 7:23 AM, Joe Groff <jgroff at apple.com> wrote:

>
> On Feb 22, 2016, at 5:49 PM, Ramakrishna Mallireddy <
> ramakrishna.malli at gmail.com> wrote:
>
> Hi Joe,
>
> I am not looking to build the llvm back-end, I am only looking to build
> front-ends to generate llvm IR on iOS.
>
> have build the swift-llvm & swift-clang static libraries for iOS using
> cmake,
> now I am looking to build the swift front-end for iOS,  do you have any
> instructions that makes my job easier going forward.
>
>
> We don't build any of the compiler for iOS, either the backend or
> frontend. I'd start by adding targets to the build system for the
> compiler's libraries (libswiftAST, libswiftSema, etc.) targeting iOS and
> seeing what breaks.
>
> -Joe
>
> Thanks
> Ramakrishna
>
> On Mon, Feb 22, 2016 at 11:20 PM, Joe Groff <jgroff at apple.com> wrote:
>
>> On Feb 22, 2016, at 4:29 AM, Ramakrishna Mallireddy via swift-users <
>> swift-users at swift.org> wrote:
>>
>>
>> HI,
>>
>> How can I compile the swift front-end for iOS.
>> the build-script mentioned only Swift Standard Library for iOS.
>>
>> I have read the build-script-impl, it does have the iOS build flags, but
>> are they only for building the standard library  or am I missing something.
>>
>>
>> That's right, the build script only builds the runtime libraries for iOS,
>> not the compiler itself. We don't build or test the compiler on iOS since
>> that's not normally useful for Xcode development.
>>
>> -Joe
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160224/15023026/attachment.html>


More information about the swift-users mailing list