[swift-dev] Swiftc and -parse-sil?
Mark Lacey
mark.lacey at apple.com
Tue Oct 18 08:58:55 CDT 2016
> On Oct 18, 2016, at 3:43 AM, Alex Blewitt via swift-dev <swift-dev at swift.org> wrote:
>
> The swift compiler has an option '-parse-sil' which could previously be used to parse SIL code. However, it looks like the swift compiler is assuming it's still Swift code:
I just opened a PR with a very minimal fix: https://github.com/apple/swift/pull/5345 <https://github.com/apple/swift/pull/5345>
The problem is that it was still looking for a filename ending in ‘.sil’ even with -parse-sil specified.
Mark
>
> $ echo "sil_stage canonical" | xcrun swiftc -parse-sil -
> <stdin>:1:10: error: consecutive statements on a line must be separated by ';'
> sil_stage canonical
> ^
> ;
> <stdin>:1:1: error: use of unresolved identifier 'sil_stage'
> sil_stage canonical
> ^~~~~~~~~
> <stdin>:1:11: error: use of unresolved identifier 'canonical'
> sil_stage canonical
> ^~~~~~~~~
> A similar message was posted to the list at the end of last year, indicating that it should work: https://lists.swift.org/pipermail/swift-dev/Week-of-Mon-20151228/000615.html <https://lists.swift.org/pipermail/swift-dev/Week-of-Mon-20151228/000615.html> but no indication that there was a bug raised or fixed at the time.
>
> Is this a known issue or should I rase a bug?
>
> Alex
> _______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20161018/6068f7e8/attachment.html>
More information about the swift-dev
mailing list