Skip to content

Commit 25d4828

Browse files
Improve installation documentation
1 parent e84f9a1 commit 25d4828

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Readme.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,21 @@ The patches in [this repository](https://github.com/antoyo/libgccjit-patches) ne
1818
(Those patches should work when applied on master, but in case it doesn't work, they are known to work when applied on 079c23cfe079f203d5df83fea8e92a60c7d7e878.)
1919
You can also use my [fork of gcc](https://github.com/antoyo/gcc) which already includes these patches.**
2020

21+
To build it (most of these instructions come from [here](https://gcc.gnu.org/onlinedocs/jit/internals/index.html), so don't hesitate to take a look there if you encounter an issue):
22+
23+
```bash
24+
$ cd gcc
25+
$ ./contrib/download_prerequisites
26+
$ sudo apt install flex libmpfr-dev libgmp-dev libmpc3 libmpc-dev
27+
$ ./configure \
28+
--enable-host-shared \
29+
--enable-languages=jit \
30+
--disable-bootstrap \
31+
--enable-checking=release \
32+
--prefix=$(pwd)/install \
33+
--disable-multilib
34+
```
35+
2136
**Put the path to your custom build of libgccjit in the file `gcc_path`.**
2237

2338
```bash

0 commit comments

Comments
 (0)