Commit Graph

24 Commits

Author SHA1 Message Date
Kamil Shakirov
4ca80ab7b0 Refactor bootstrap scripts 2020-06-17 15:43:50 +06:00
Kamil Shakirov
4f0c262ddc Add support for OpenBSD
and probably for other *BSD operating systems with minor tweaks
2020-06-17 15:14:54 +06:00
Edwin Brady
c0d5ff8972 Add a specific error message to bootstrap.sh 2020-05-25 13:47:44 +01:00
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
Niklas Larsson
a8be9206fc Do platform-dependent part a bit better in bootstrap.sh 2020-05-24 16:24:41 +02: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
Niklas Larsson
dbffcce112 Merge bootstrap for unix and windows 2020-05-23 14:51:00 +02:00
Edwin Brady
492a6bc30f Add network to library search paths
I don't know why this works for me locally but not on travis, although
it is harder for me to be sure this machine is completely clean! So the
easiest way to find out if this fixes the problem is probably just to
try it...
2020-05-21 17:47:46 +01:00
Edwin Brady
941c8b1ab5 Point bootstrap tests at the right place
We also need to separate building the runtests binary from running the
tests, because runtests refers to the boostrap libraries, and the tests
refer to the newly built libraries.
This worked locally, using inconsistent TTC versions for the bootstrap
version and new version, but let's see what it does on a clean machine
2020-05-21 17:11:12 +01:00
Edwin Brady
4ed38bd47d Try to fix bootstrap script
I think the tests are using the libraries from the bootstrap Idris 2, not
the just built Idris 2, so if the ttc formats aren't idential the tests
won't work. Let's see if that theory is correct...
2020-05-21 16:32:10 +01:00
Kamil Shakirov
ebb98700bf Remove stale src/IdrisPath.idr on each 'make clean' run
${PREFIX} can now be properly changed on each rebuild
2020-05-21 00:38:43 +06:00
Edwin Brady
4aabc06b31 Fix bootstrap script (again)
I'm doing this in too much of a hurry... but it definitely works for me
locally now!
2020-05-20 14:33:34 +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
d3fab2d28f Fix typo in bootstrap script 2020-05-20 11:12:54 +01:00
Edwin Brady
8fbce0cdc1 Also need to pass through data directory 2020-05-20 11:02:49 +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
b39df83002 Maybe the tests need the library path...
It's surprising because the chez startup script should set it, but let's
see what happens anyway.
2020-05-20 10:48:29 +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
77c218435b Reorganise some bootstrap/travis steps 2020-05-20 10:33:40 +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
ddd3ff151d Fix up bootstrap scripts
They weren't quite right; I've now successfully built from the script on
a machine with only Chez available.
2020-05-19 21:39:36 +01:00
Edwin Brady
7defc40c47 Better bootstrapping process 2020-05-19 21:08:32 +01:00
Edwin Brady
3634ec76b7 Finish bootstrap scripts
I got this working on my Mac, which doesn't have Idris 2 of any form
installed. So it might work... good luck!
2020-05-18 21:18:32 +01:00
Edwin Brady
b69068f4ff Update bootstrap scripts 2020-05-18 20:33:38 +01:00