Skip to content

Commit f512f9e

Browse files
cuviperUrgau
andauthored
Use pushd and popd
Co-authored-by: Urgau <3616612+Urgau@users.noreply.github.com>
1 parent 7936e18 commit f512f9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ci/docker/host-x86_64/dist-x86_64-linux/build-gccjit.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ curl -L "$GIT_REPO/archive/$GIT_COMMIT.tar.gz" |
1616
tar -xz --transform "s/gcc-$GIT_COMMIT/gcc-src/"
1717

1818
mkdir gcc-build gcc-install
19-
cd gcc-build
19+
pushd gcc-build
2020

2121
# Building GCC.
2222
hide_output \
@@ -31,7 +31,7 @@ hide_output \
3131
hide_output make -j$(nproc)
3232
hide_output make install
3333

34-
cd ..
34+
popd
3535
rm -rf gcc-src gcc-build
3636
ln -s /scripts/gcc-install/lib/libgccjit.so /usr/lib/x86_64-linux-gnu/libgccjit.so
3737
ln -s /scripts/gcc-install/lib/libgccjit.so /usr/lib/x86_64-linux-gnu/libgccjit.so.0

0 commit comments

Comments
 (0)