Fix GCC 32-bit script install

This commit is contained in:
Mamy André-Ratsimbazafy 2020-09-01 12:33:41 +02:00
parent 5c1c4e40eb
commit 303ce5b74c
No known key found for this signature in database
GPG Key ID: 7B88AD1FE79492E1
1 changed files with 7 additions and 2 deletions

View File

@ -129,14 +129,19 @@ steps:
sudo apt-fast install --no-install-recommends --allow-downgrades -yq \
g++-multilib gcc-multilib libcurl4-openssl-dev:i386 libgc-dev:i386 \
libffi-dev:i386
cat << EOF > bin/gcc
mkdir -p bin
cat < EOF > bin/gcc
#!/bin/bash
exec $(which gcc) -m32 "\$@"
EOF
cat << EOF > bin/g++
cat < EOF > bin/g++
#!/bin/bash
exec $(which g++) -m32 "\$@"
EOF
chmod 755 bin/gcc
chmod 755 bin/g++