Skip to content

Commit 4826320

Browse files
committed
Add debuginfo test
1 parent 8edbbc4 commit 4826320

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,16 @@ $RUSTC example/mini_core.rs --crate-name mini_core --crate-type lib,dylib
3131
echo "[BUILD] example"
3232
$RUSTC example/example.rs --crate-type lib
3333

34-
JIT_ARGS="abc bcd" jit mini_core_hello_world example/mini_core_hello_world.rs
34+
#JIT_ARGS="abc bcd" jit mini_core_hello_world example/mini_core_hello_world.rs
3535

3636
echo "[AOT] mini_core_hello_world"
37-
$RUSTC example/mini_core_hello_world.rs --crate-name mini_core_hello_world --crate-type bin
37+
$RUSTC example/mini_core_hello_world.rs --crate-name mini_core_hello_world --crate-type bin -g
3838
./target/out/mini_core_hello_world abc bcd
39+
if lldb -v; then
40+
(echo "break set -n main"; echo "run"; sleep 1; echo "si -c 21"; sleep 1; echo "frame variable") | lldb -- ./target/out/mini_core_hello_world abc bcd
41+
fi
42+
43+
exit 1
3944

4045
echo "[AOT] arbitrary_self_types_pointers_and_wrappers"
4146
$RUSTC example/arbitrary_self_types_pointers_and_wrappers.rs --crate-name arbitrary_self_types_pointers_and_wrappers --crate-type bin

0 commit comments

Comments
 (0)