diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2024-06-30 15:37:00 +0200 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2024-06-30 15:37:00 +0200 |
| commit | ef4b97490f356ff9feca61ebbc442a09a8d13742 (patch) | |
| tree | e91278730576c8310d37d373349e1de8bac2b540 /src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/build.rs | |
| parent | d8a74a2b60a1633afaae408ddd732616bf86c908 (diff) | |
| download | rust-ef4b97490f356ff9feca61ebbc442a09a8d13742.tar.gz rust-ef4b97490f356ff9feca61ebbc442a09a8d13742.zip | |
Move proc-macro-test test path fetching from include to env var
Diffstat (limited to 'src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/build.rs')
| -rw-r--r-- | src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/build.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/build.rs b/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/build.rs index 6a0ae362d88..fe1fce3da7e 100644 --- a/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/build.rs +++ b/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/build.rs @@ -121,6 +121,5 @@ fn main() { // This file is under `target_dir` and is already under `OUT_DIR`. let artifact_path = artifact_path.expect("no dylib for proc-macro-test-impl found"); - let info_path = out_dir.join("proc_macro_test_location.txt"); - fs::write(info_path, artifact_path.to_str().unwrap()).unwrap(); + println!("cargo::rustc-env=PROC_MACRO_TEST_LOCATION={}", artifact_path.display()); } |
