Remove build-gccjit.sh script

This commit is contained in:
Jakub Beránek 2025-01-24 14:16:56 +01:00
parent bdc97d1046
commit 87fbd4e5df
4 changed files with 0 additions and 46 deletions

View file

@ -55,9 +55,6 @@ ENV RUST_CONFIGURE_ARGS \
--set rust.thin-lto-import-instr-limit=10
COPY scripts/shared.sh /scripts/
COPY scripts/build-gccjit.sh /scripts/
RUN /scripts/build-gccjit.sh /scripts
ARG SCRIPT_ARG

View file

@ -55,9 +55,6 @@ ENV RUST_CONFIGURE_ARGS \
--set rust.thin-lto-import-instr-limit=10
COPY scripts/shared.sh /scripts/
COPY scripts/build-gccjit.sh /scripts/
RUN /scripts/build-gccjit.sh /scripts
ARG SCRIPT_ARG

View file

@ -90,9 +90,6 @@ ENV HOST_TARGET x86_64-unknown-linux-gnu
#ENV FORCE_CI_RUSTC 1
COPY scripts/shared.sh /scripts/
COPY scripts/build-gccjit.sh /scripts/
RUN /scripts/build-gccjit.sh /scripts
# For now, we need to use `--unsafe-perm=true` to go around an issue when npm tries
# to create a new folder. For reference:

View file

@ -1,37 +0,0 @@
#!/usr/bin/env bash
GIT_REPO="https://github.com/rust-lang/gcc"
# This commit hash needs to be updated to use a more recent gcc fork version.
GIT_COMMIT="45648c2edd4ecd862d9f08196d3d6c6ccba79f07"
set -ex
cd $1
source shared.sh
# Setting up folders for GCC
curl -L "$GIT_REPO/archive/$GIT_COMMIT.tar.gz" |
tar -xz --transform "s/gcc-$GIT_COMMIT/gcc-src/"
mkdir gcc-build gcc-install
pushd gcc-build
# Building GCC.
hide_output \
../gcc-src/configure \
--enable-host-shared \
--enable-languages=jit \
--enable-checking=release \
--disable-bootstrap \
--disable-multilib \
--prefix=$(pwd)/../gcc-install \
hide_output make -j$(nproc)
hide_output make install
popd
rm -rf gcc-src gcc-build
ln -s /scripts/gcc-install/lib/libgccjit.so /usr/lib/x86_64-linux-gnu/libgccjit.so
ln -s /scripts/gcc-install/lib/libgccjit.so /usr/lib/x86_64-linux-gnu/libgccjit.so.0