From cc1a2c8699b7812f74dd12c09fc7e38a1f2c6aa7 Mon Sep 17 00:00:00 2001 From: CohenArthur Date: Wed, 25 Aug 2021 13:53:16 +0200 Subject: expand: Add debug line for showing the path of an external module --- gcc/rust/expand/rust-macro-expand.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc') 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 -- cgit v1.1