diff options
author | David Malcolm <dmalcolm@redhat.com> | 2023-01-05 10:01:37 -0500 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2023-01-05 10:01:37 -0500 |
commit | b0edfa0ef02c0f4820cec0601a4fd85aba516428 (patch) | |
tree | 5856191623a287c1cd14ee441985e37fee4d16e6 | |
parent | bd96a6a8a6689ac8f65877b2173f48d231e9f4af (diff) | |
download | gcc-b0edfa0ef02c0f4820cec0601a4fd85aba516428.zip gcc-b0edfa0ef02c0f4820cec0601a4fd85aba516428.tar.gz gcc-b0edfa0ef02c0f4820cec0601a4fd85aba516428.tar.bz2 |
gccrs: add selftest-rust-gdb and selftest-rust-valgrind "make" targets
Add "make" targets to make it easy to run the rust selftests under gdb
and under valgrind via:
make selftest-rust-gdb
and
make selftest-rust-valgrind
respectively.
gcc/rust/ChangeLog:
* Make-lang.in (selftest-rust-gdb): New.
(selftest-rust-valgrind): New.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
-rw-r--r-- | gcc/rust/Make-lang.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/rust/Make-lang.in b/gcc/rust/Make-lang.in index 713582c..4d96d1d 100644 --- a/gcc/rust/Make-lang.in +++ b/gcc/rust/Make-lang.in @@ -279,6 +279,18 @@ s-selftest-rust: $(RUST_SELFTEST_DEPS) $(GCC_FOR_TARGET) $(RUST_SELFTEST_FLAGS) $(STAMP) $@ +# Convenience methods for running rust selftests under gdb: +.PHONY: selftest-rust-gdb +selftest-rust-gdb: $(RUST_SELFTEST_DEPS) + $(GCC_FOR_TARGET) $(RUST_SELFTEST_FLAGS) \ + -wrapper gdb,--args + +# Convenience methods for running rust selftests under valgrind: +.PHONY: selftest-rust-valgrind +selftest-rust-valgrind: $(RUST_SELFTEST_DEPS) + $(GCC_FOR_TARGET) $(RUST_SELFTEST_FLAGS) \ + -wrapper valgrind,--leak-check=full + # Install info documentation for the front end, if it is present in the source directory. This target # should have dependencies on info files that should be installed. rust.install-info: |