mirror of
https://github.com/rui314/mold.git
synced 2024-11-10 10:57:55 +03:00
Use mold to build mold
This commit is contained in:
parent
c054e3d197
commit
5e389f99d4
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -19,8 +19,6 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: rui314/setup-mold@staging
|
||||
with:
|
||||
make-default: false
|
||||
- name: apt-get
|
||||
run: sudo apt-get update && sudo apt-get install git build-essential libstdc++-10-dev cmake clang libssl-dev zlib1g-dev libtbb-dev git bsdmainutils dwarfdump
|
||||
- name: ccache
|
||||
|
@ -29,10 +29,6 @@ int main() {
|
||||
}
|
||||
EOF
|
||||
|
||||
clang -fuse-ld=bfd -o $t/exe $t/a.o
|
||||
readelf -p .comment $t/exe > $t/log
|
||||
! grep -q mold $t/log || false
|
||||
|
||||
LD_PRELOAD=`pwd`/mold-wrapper.so MOLD_PATH=`pwd`/mold \
|
||||
clang -o $t/exe $t/a.o -fuse-ld=/usr/bin/ld
|
||||
readelf -p .comment $t/exe > $t/log
|
||||
|
@ -27,10 +27,6 @@ int main() {
|
||||
}
|
||||
EOF
|
||||
|
||||
$GCC -fuse-ld=bfd -o $t/exe $t/a.o
|
||||
readelf -p .comment $t/exe > $t/log
|
||||
! grep -q mold $t/log || false
|
||||
|
||||
LD_PRELOAD=`pwd`/mold-wrapper.so MOLD_PATH=`pwd`/mold \
|
||||
$GCC -o $t/exe $t/a.o -B/usr/bin
|
||||
readelf -p .comment $t/exe > $t/log
|
||||
|
Loading…
Reference in New Issue
Block a user