Commit Graph

11 Commits

Author SHA1 Message Date
wchresta
788e6943a4 Split bootstrap into separate build and test stage
* Refactor bootstrap and bootstrap-rkt scripts
* Move the execution of the test phase after bootstrapping from bootstrap
  scripts into the Makefile. This allows separate execution of build
  and test seperately.
* Solves #125
2020-05-25 00:59:12 -04:00
Edwin Brady
ad9a2a187f Fix Char casting
For the same behaviour as Idris 1, the primitive cast should return 0 if
the integer is out of bounds. (We should probably drop the Cast
implementation though, since ideally they won't be lossy in general, but
that's an issue for another time...)

All the tests pass in racket now, for me.
2020-05-23 22:19:10 +01:00
Edwin Brady
0d5c709fc6 Add IDRIS2_CG environment variable
This allows setting code generators globally, which makes building with
alternative back ends smoother.
2020-05-23 19:03:56 +01:00
Edwin Brady
e17f66244a Move network support to libidris2_support
This makes the support stuff much simpler, and also makes the racket
bootstrap process easier
2020-05-23 15:52:33 +01:00
Edwin Brady
9baa5385d4 Drop testing step from racket bootstrap step
I'll put it back when the tests actually pass on racket. Also when
making the test.ipkg pays attention to the CG setting in the makefile so
it doesn't try to build via Chez.
2020-05-20 18:10:11 +01:00
Edwin Brady
32263883ee Update bootstrapping scripts for new exec name
(Also, hopefully, this will poke travis to build the repo in its new
location!)
2020-05-20 14:00:15 +01:00
Edwin Brady
87f0c1c6be Bootstrap script needs to know library path
This is for locating the libraries for copying to the chez executable.
If they're not installed yet, it'll look in the wrong place.
2020-05-20 10:52:18 +01:00
Edwin Brady
65f7fb6ab8 Minor edit to bootstrap script
It's better if the tests aren't interactive, since they're intended for
running on CI as well as to give an idea of whether building was
successful, rather than to give an idea of what has gone wrong.
2020-05-20 10:38:56 +01:00
Edwin Brady
9eba9113dd Update racket bootstrap scripts
Need to pass the LD_LIBRARY_PATH all the way through or racket doesn't
know where to look. I really don't know why it doesn't work to just set
it at the top level in the script, but it didn't (on my Mac, at least).
2020-05-20 00:03:39 +01:00
Edwin Brady
746df34470 Don't overwrite idris2sh.rkt
Better to copy and update the new version with the prefix
2020-05-19 23:01:04 +01:00
Edwin Brady
5b88afb3ef Add racket bootstrap script 2020-05-19 22:56:27 +01:00