Skip to content

Commit

Permalink
[ELF] Attempt to fix buildbots
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Jan 4, 2022
1 parent a5029d1 commit 285c9e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/elf/lto-gcc-fallback.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ mold="$(pwd)/mold"
t="$(pwd)/out/test/elf/$testname"
mkdir -p "$t"

which ld.bfd >& /dev/null || { echo skipped; exit 0; }

cat <<EOF | gcc -flto -c -o "$t"/a.o -xc -
#include <stdio.h>
int main() {
Expand Down
2 changes: 2 additions & 0 deletions test/elf/lto-llvm-fallback.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ mold="$(pwd)/mold"
t="$(pwd)/out/test/elf/$testname"
mkdir -p "$t"

which ld.lld >& /dev/null || { echo skipped; exit 0; }

cat <<EOF | clang -flto -c -o "$t"/a.o -xc -
#include <stdio.h>
int main() {
Expand Down

0 comments on commit 285c9e2

Please sign in to comment.