-
Notifications
You must be signed in to change notification settings - Fork 12.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7151f60
commit 0024930
Showing
5 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
src/ci/docker/host-x86_64/dist-x86_64-linux/build-gccjit.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
apt-get install flex libmpfr-dev libgmp-dev libmpc3 libmpc-dev | ||
|
||
# Setting up folders for GCC | ||
git clone https://github.com/antoyo/gcc gcc-src | ||
cd gcc-src | ||
git checkout $(head -1 /scripts/libgccjit.version) | ||
|
||
mkdir ../gcc-build ../gcc-install | ||
cd ../gcc-build | ||
|
||
# Building GCC. | ||
../gcc-src/configure \ | ||
--enable-host-shared \ | ||
--enable-languages=jit \ | ||
--enable-checking=release \ | ||
--disable-bootstrap \ | ||
--disable-multilib \ | ||
--prefix=$(pwd)/../gcc-install | ||
make | ||
make install | ||
|
||
# Making the generated `.so` library available to linker. | ||
ln -s ../gcc-install/libgccjit.so /usr/lib/libgccjit.so | ||
|
||
rm -rf ../gcc-src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
compiler/rustc_codegen_gcc/libgccjit.version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters