Use pushd
and popd
Co-authored-by: Urgau <3616612+Urgau@users.noreply.github.com>
This commit is contained in:
parent
7936e18213
commit
f512f9e949
@ -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 \
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user