diff options
| author | Oneirical <manchot@videotron.ca> | 2024-06-18 16:20:32 -0400 |
|---|---|---|
| committer | Oneirical <manchot@videotron.ca> | 2024-06-18 16:20:32 -0400 |
| commit | dff354e57fe030f8fa0467f092b75e8979a3cce9 (patch) | |
| tree | db2bdaa5047e18275e7d58f00d5f2fcbb6fb2185 /src | |
| parent | 9e2ace85f9d2a9fd24af197f2da81eb3a5db51b9 (diff) | |
| download | rust-dff354e57fe030f8fa0467f092b75e8979a3cce9.tar.gz rust-dff354e57fe030f8fa0467f092b75e8979a3cce9.zip | |
rewrite metadata-flag-frobs-symbols to rmake
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/run-make-support/src/rustc.rs | 6 | ||||
| -rw-r--r-- | src/tools/tidy/src/allowed_run_make_makefiles.txt | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/tools/run-make-support/src/rustc.rs b/src/tools/run-make-support/src/rustc.rs index 331e1a5ab8b..125f4b4bd62 100644 --- a/src/tools/run-make-support/src/rustc.rs +++ b/src/tools/run-make-support/src/rustc.rs @@ -73,6 +73,12 @@ impl Rustc { self } + /// Incorporate a hashed string to mangled symbols. + pub fn metadata(&mut self, meta: &str) -> &mut Self { + self.cmd.arg(format!("-Cmetadata={meta}")); + self + } + /// Add a suffix in each output filename. pub fn extra_filename(&mut self, suffix: &str) -> &mut Self { self.cmd.arg(format!("-Cextra-filename={suffix}")); diff --git a/src/tools/tidy/src/allowed_run_make_makefiles.txt b/src/tools/tidy/src/allowed_run_make_makefiles.txt index 4091cbbbcb8..691248ea260 100644 --- a/src/tools/tidy/src/allowed_run_make_makefiles.txt +++ b/src/tools/tidy/src/allowed_run_make_makefiles.txt @@ -119,7 +119,6 @@ run-make/macos-fat-archive/Makefile run-make/manual-link/Makefile run-make/many-crates-but-no-match/Makefile run-make/metadata-dep-info/Makefile -run-make/metadata-flag-frobs-symbols/Makefile run-make/min-global-align/Makefile run-make/mingw-export-call-convention/Makefile run-make/mismatching-target-triples/Makefile |
