File tree 1 file changed +24
-9
lines changed
1 file changed +24
-9
lines changed Original file line number Diff line number Diff line change @@ -22,17 +22,32 @@ To build it (most of these instructions come from [here](https://gcc.gnu.org/onl
22
22
23
23
``` bash
24
24
$ git clone https://github.com/antoyo/gcc
25
- $ cd gcc
26
25
$ 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
26
+ $ mkdir gcc-build gcc-install
27
+ $ cd gcc-build
28
+ $ ../gcc/configure \
29
+ --enable-host-shared \
30
+ --enable-languages=jit \
31
+ --enable-checking=release \ # it enables extra checks which allow to find bugs
32
+ --disable-bootstrap \
33
+ --disable-multilib \
34
+ --prefix=$( pwd) /../gcc-install
34
35
$ make -j4 # You can replace `4` with another number depending on how many cores you have.
35
- $ cd ..
36
+ ```
37
+
38
+ If you want to run libgccjit tests, you will need to also enable the C++ language in the ` configure ` :
39
+
40
+ ``` bash
41
+ --enable-languages=jit,c++
42
+ ```
43
+
44
+ Then to run libgccjit tests:
45
+
46
+ ``` bash
47
+ $ cd gcc # from the `gcc-build` folder
48
+ $ make check-jit
49
+ # To run one specific test:
50
+ $ make check-jit RUNTESTFLAGS=" -v -v -v jit.exp=jit.dg/test-asm.cc"
36
51
```
37
52
38
53
** Put the path to your custom build of libgccjit in the file ` gcc_path ` .**
You can’t perform that action at this time.
0 commit comments