Commit e7599d6b authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

On x86_64 /lib64 folder is required for stage0 cargo - add a symlink temporarily

parent 3b99c1d7
......@@ -6,16 +6,24 @@ all: config-toml
tar xf rustc-1.47.0-src.tar.gz
mkdir rustc-home
if [ `uname -m` = "armv7l" ]; then \
echo "$$CONFIG_TOML" | sed "s/TARGET/ARM/" > rustc-1.47.0-src/config.toml ; \
elif [ `uname -m` = "aarch64" ]; then \
echo "$$CONFIG_TOML" | sed "s/TARGET/AArch64/" > rustc-1.47.0-src/config.toml ; \
else \
echo "$$CONFIG_TOML" | sed "s/TARGET/X86/" > rustc-1.47.0-src/config.toml ; \
ln -s /lib /lib64 ; \
fi
cd rustc-1.47.0-src && HOME=$(CURDIR)/rustc-home python3 ./x.py build
-cd rustc-1.47.0-src && HOME=$(CURDIR)/rustc-home python3 ./x.py test --verbose --no-fail-fast
cd rustc-1.47.0-src && HOME=$(CURDIR)/rustc-home python3 ./x.py install
if [ `uname -m` != "armv7l" ] && [ `uname -m` != "aarch64" ]; then \
rm -rf /lib64 ; \
fi
rm -rf rustc-home
rm -rf rustc-1.47.0-src
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment