Add debuginfo test

This commit is contained in:
bjorn3 2019-12-16 12:06:52 +01:00
parent 8edbbc45f7
commit 4826320680

View file

@ -31,11 +31,16 @@ $RUSTC example/mini_core.rs --crate-name mini_core --crate-type lib,dylib
echo "[BUILD] example"
$RUSTC example/example.rs --crate-type lib
JIT_ARGS="abc bcd" jit mini_core_hello_world example/mini_core_hello_world.rs
#JIT_ARGS="abc bcd" jit mini_core_hello_world example/mini_core_hello_world.rs
echo "[AOT] mini_core_hello_world"
$RUSTC example/mini_core_hello_world.rs --crate-name mini_core_hello_world --crate-type bin
$RUSTC example/mini_core_hello_world.rs --crate-name mini_core_hello_world --crate-type bin -g
./target/out/mini_core_hello_world abc bcd
if lldb -v; then
(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
fi
exit 1
echo "[AOT] arbitrary_self_types_pointers_and_wrappers"
$RUSTC example/arbitrary_self_types_pointers_and_wrappers.rs --crate-name arbitrary_self_types_pointers_and_wrappers --crate-type bin