Skip to content

Commit

Permalink
Use pushd and popd
Browse files Browse the repository at this point in the history
Co-authored-by: Urgau <3616612+Urgau@users.noreply.github.com>
  • Loading branch information
cuviper and Urgau authored Mar 17, 2024
1 parent 7936e18 commit f512f9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ci/docker/host-x86_64/dist-x86_64-linux/build-gccjit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ curl -L "$GIT_REPO/archive/$GIT_COMMIT.tar.gz" |
tar -xz --transform "s/gcc-$GIT_COMMIT/gcc-src/"

mkdir gcc-build gcc-install
cd gcc-build
pushd gcc-build

# Building GCC.
hide_output \
Expand All @@ -31,7 +31,7 @@ hide_output \
hide_output make -j$(nproc)
hide_output make install

cd ..
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

0 comments on commit f512f9e

Please sign in to comment.