about summary refs log tree commit diff
path: root/library/proc_macro/src/bridge
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-07-03 03:15:07 +0900
committerGitHub <noreply@github.com>2021-07-03 03:15:07 +0900
commit45470a3bcd9f26017bcdbf4d5ae07be0d922ce93 (patch)
tree29167ced0c208a4a3db02536ba335b05fb2a23ee /library/proc_macro/src/bridge
parent851c82e88ade86bfe3b4ee785d5e5ab1d954b61c (diff)
parent67e6a813159b5438507d4c24201e452a110a8284 (diff)
downloadrust-45470a3bcd9f26017bcdbf4d5ae07be0d922ce93.tar.gz
rust-45470a3bcd9f26017bcdbf4d5ae07be0d922ce93.zip
Rollup merge of #84029 - drahnr:master, r=petrochenkov
add `track_path::path` fn for usage in `proc_macro`s

Adds a way to declare a dependency on external files without including them, to either re-trigger the build of a file as well as covering the use case of including dependencies within the `rustc` invocation, such that tools like `sccache`/`cachepot` are able to handle references to external files which are not included.

Ref #73921
Diffstat (limited to 'library/proc_macro/src/bridge')
-rw-r--r--library/proc_macro/src/bridge/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/proc_macro/src/bridge/mod.rs b/library/proc_macro/src/bridge/mod.rs
index a2953b68564..b968d44fe48 100644
--- a/library/proc_macro/src/bridge/mod.rs
+++ b/library/proc_macro/src/bridge/mod.rs
@@ -55,6 +55,7 @@ macro_rules! with_api {
             FreeFunctions {
                 fn drop($self: $S::FreeFunctions);
                 fn track_env_var(var: &str, value: Option<&str>);
+                fn track_path(path: &str);
             },
             TokenStream {
                 fn drop($self: $S::TokenStream);