1
1
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:
Rui Ueyama 2022-05-11 17:30:02 +08:00
parent c054e3d197
commit 5e389f99d4
3 changed files with 0 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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