Commit 3b99c1d7 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initial commit

parents
all: config-toml
dd if=/dev/zero of=swap bs=1048576 count=2048
chmod 600 swap
mkswap swap
swapon swap
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 ; \
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
rm -rf rustc-home
rm -rf rustc-1.47.0-src
swapoff swap
rm -rf swap
config-toml:
define CONFIG_TOML
[llvm]
targets = "TARGET"
# When using system llvm prefer shared libraries
link-shared = true
[build]
# omit docs to save time and space (default is to build them)
docs = false
# install cargo as well as rust
extended = true
[install]
prefix = "/usr"
docdir = "share/doc/rustc-1.47.0"
[rust]
channel = "stable"
rpath = false
codegen-tests = false
endef CONFIG_TOML
export CONFIG_TOML
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