-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross compile to Scala Native #114
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just two small changes and we're good.
- Now that native 0.3.0 is out can we drop the -SNAPSHOTs?
- Can you update .travis.yml please?
Also great work on the ScalaNative side!
Thanks @xuwei-k |
Thanks for the report @xuwei-k! These bugs will be fixed in Scala Native 0.3.1. And thank you for your fix 😉 @japgolly I've updated the PR with the changes you requested. Note that I also needed to modify some of the tests:
|
Could someone restart the build, please? |
Just kicked it |
After several more kicks, it has turned green |
@japgolly up to you to merge/publish this, if you so desire |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Mergerino! |
Maybe I was too care-free in merging this. I just gave it a try locally. It compiles fine but when I run it:
I don't really have time for this :( |
@japgolly Can you please file an issue on Scala Native with steps to reproduce and with the details on the environment? This looks like either an environment misconfiguration or a bug with should be able to fix in |
Sorry to hear this isn't flawless but for some positive feedback for the work you are all doing, I used it this weekend and it was great, made my day to be able to write a command line application with unit tests and then see the app run and do real work in 0.035s 👍 |
Raised scala-native/scala-native#881 And for what it's worth, I think all the work being done in this space is fucking awesome! I harbour much appreciation to all involved. Love seeing the progress 👍 |
The next release of Scala Native is coming soon, and it will add support for test frameworks using sbt's test interface (scala-native/scala-native#755). While implementing the test interface, I cross compiled utest to Scala Native.
Here are the changes that I did to get it to cross compile and work with Scala Native. Obviously, Scala Native 0.3.0 is not released yet, and you'll need to build Scala Native locally to test it. Here's what it looks like: https://travis-ci.org/Duhemm/scala-native/jobs/242582498#L2665-L2697
How to try it
master
branch if you happen to read that before the aforementioned PR is merged).After your system is set up, you can build Scala Native locally:
Then, build and
publishLocal
ly this PR. You can use the published artifact in a Scala Native project as shown here. Write your tests as usual and run them usingtest
in sbt.It would be great if we could get this PR in soon after Scala Native is released (I'll update it with the correct version numbers). Do you see things that need to be addressed in this PR while we wait for the next release of Scala Native?