Skip to content

Commit

Permalink
Attempt to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Feb 24, 2022
1 parent 3068364 commit f797b76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/elf/compressed-debug-info-i386.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -x
export LANG=
set -e
CC="${CC:-cc}"
Expand All @@ -14,19 +14,19 @@ mkdir -p $t

which dwarfdump >& /dev/null || { echo skipped; exit; }

cat <<EOF | $CXX -c -o $t/a.o -g -gz=zlib-gnu -xc++ - -m32
cat <<EOF | $CXX -m32 -c -o $t/a.o -g -gz=zlib-gnu -xc++ -
int main() {
return 0;
}
EOF

cat <<EOF | $CXX -c -o $t/b.o -g -gz=zlib -xc++ - -m32
cat <<EOF | $CXX -m32 -c -o $t/b.o -g -gz=zlib -xc++ -
int foo() {
return 0;
}
EOF

$CC -B. -o $t/exe $t/a.o $t/b.o -m32
$CXX -B. -m32 -o $t/exe $t/a.o $t/b.o
dwarfdump $t/exe > /dev/null
readelf --sections $t/exe | fgrep -q .debug_info

Expand Down

0 comments on commit f797b76

Please sign in to comment.