We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3068364 commit f797b76Copy full SHA for f797b76
test/elf/compressed-debug-info-i386.sh
@@ -1,4 +1,4 @@
1
-#!/bin/bash
+#!/bin/bash -x
2
export LANG=
3
set -e
4
CC="${CC:-cc}"
@@ -14,19 +14,19 @@ mkdir -p $t
14
15
which dwarfdump >& /dev/null || { echo skipped; exit; }
16
17
-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++ -
18
int main() {
19
return 0;
20
}
21
EOF
22
23
-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++ -
24
int foo() {
25
26
27
28
29
-$CC -B. -o $t/exe $t/a.o $t/b.o -m32
+$CXX -B. -m32 -o $t/exe $t/a.o $t/b.o
30
dwarfdump $t/exe > /dev/null
31
readelf --sections $t/exe | fgrep -q .debug_info
32
0 commit comments