aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCohenArthur <arthur.cohen@epita.fr>2021-08-25 13:53:16 +0200
committerCohenArthur <arthur.cohen@epita.fr>2021-08-25 14:18:01 +0200
commitcc1a2c8699b7812f74dd12c09fc7e38a1f2c6aa7 (patch)
treef7494ab4c54b16bdfb1422afac18189c77729fd3
parentc3f146d98df60106138c4ca2f0775e7c713a57f3 (diff)
downloadgcc-cc1a2c8699b7812f74dd12c09fc7e38a1f2c6aa7.zip
gcc-cc1a2c8699b7812f74dd12c09fc7e38a1f2c6aa7.tar.gz
gcc-cc1a2c8699b7812f74dd12c09fc7e38a1f2c6aa7.tar.bz2
expand: Add debug line for showing the path of an external module
-rw-r--r--gcc/rust/expand/rust-macro-expand.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/expand/rust-macro-expand.cc b/gcc/rust/expand/rust-macro-expand.cc
index 4998dc8..316eb13 100644
--- a/gcc/rust/expand/rust-macro-expand.cc
+++ b/gcc/rust/expand/rust-macro-expand.cc
@@ -2039,6 +2039,8 @@ public:
else
{
std::string mod_file = module.get_filename ();
+ if (!mod_file.empty ())
+ rust_debug ("Module filename found: %s", mod_file.c_str ());
}
// strip items if required