Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
saagarjha
· 7y ago · 0 comments
Why can’t you build Swift from your build.rs?
Comments
[–]
raphlinus
7y ago
Maybe I can, I just haven't found an example of it. Certainly the "cc" crate doesn't seem to know how to compile Swift files. This might be more of a documentation issue than a real technical limitation though.
[–]
saagarjha
OP
7y ago
If you can figure out a way to run arbitrary commands, I’d suggest looking at swift -frontend, which works like you’d expect a normal compiler to.