Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rustc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
rustc
Commits
8a5a8074
Commit
8a5a8074
authored
Aug 14, 2023
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added rustc.temporary target
parent
7988f7e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
Makefile
Makefile
+48
-0
No files found.
Makefile
View file @
8a5a8074
...
@@ -30,6 +30,54 @@ all: config-toml
...
@@ -30,6 +30,54 @@ all: config-toml
swapoff
swap
swapoff
swap
rm
-rf
swap
rm
-rf
swap
temporary
:
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/\/usr/\/build\/usr/"
|
sed
"s/TARGET/ARM/"
>
rustc-1.47.0-src/config.toml
;
\
elif
[
`uname
-m`
=
"aarch64"
];
then
\
echo
"$$CONFIG_TOML"
|
sed
"s/\/usr/\/build\/usr/"
|
sed
"s/TARGET/AArch64/"
>
rustc-1.47.0-src/config.toml
;
\
else
\
echo
"$$CONFIG_TOML"
|
sed
"s/\/usr/\/build\/usr/"
|
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"
];
then
\
cp
rustc-1.47.0-src/build/x86_64-unknown-linux-gnu/llvm/bin/*
/build/usr/bin
;
\
cp
rustc-1.47.0-src/build/x86_64-unknown-linux-gnu/llvm/lib/*
/build/usr/lib
;
\
elif
[
`uname
-m`
=
"aarch64"
];
then
\
cp
rustc-1.47.0-src/build/x86_64-unknown-linux-gnu/llvm/bin/*
/build/usr/bin
;
\
cp
rustc-1.47.0-src/build/x86_64-unknown-linux-gnu/llvm/lib/*
/build/usr/lib
;
\
else
\
cp
rustc-1.47.0-src/build/x86_64-unknown-linux-gnu/llvm/bin/*
/build/usr/bin
;
\
cp
rustc-1.47.0-src/build/x86_64-unknown-linux-gnu/llvm/lib/*
/build/usr/lib
;
\
rm
-rf
/lib64
;
\
fi
swapoff
swap
rm
-rf
swap
echo
"/build/usr/lib"
>>
/etc/ld.so.conf
ldconfig
clean
:
rm
-rf
rustc-home
rm
-rf
rustc-1.47.0-src
rm
-rf
/build/usr
rm
-f
/etc/bash_completion.d/cargo
sed
'/^\/build\/usr\/lib/d'
-i
/etc/ld.so.conf
ldconfig
config-toml
:
config-toml
:
define
CONFIG_TOML
define
CONFIG_TOML
[llvm]
[llvm]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment