diff options
| author | onur-ozkan <work@onurozkan.dev> | 2025-01-30 16:51:08 +0000 |
|---|---|---|
| committer | onur-ozkan <work@onurozkan.dev> | 2025-01-30 23:30:45 +0300 |
| commit | 139d6ba054a1a4cc5fe64981ad46fd5547bd4916 (patch) | |
| tree | 9879ebb2bbc2cc46f080731c132048b4450755d7 | |
| parent | 0cc4f4f7b81f88df6bdd54b41d4a0b1703fd014d (diff) | |
| download | rust-139d6ba054a1a4cc5fe64981ad46fd5547bd4916.tar.gz rust-139d6ba054a1a4cc5fe64981ad46fd5547bd4916.zip | |
set rustc dylib on manually constructed rustc command
Signed-off-by: onur-ozkan <work@onurozkan.dev>
| -rw-r--r-- | src/bootstrap/src/core/builder/cargo.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/builder/cargo.rs b/src/bootstrap/src/core/builder/cargo.rs index 1b413dcb07e..79a65aedd9e 100644 --- a/src/bootstrap/src/core/builder/cargo.rs +++ b/src/bootstrap/src/core/builder/cargo.rs @@ -653,7 +653,10 @@ impl Builder<'_> { // Build proc macros both for the host and the target unless proc-macros are not // supported by the target. if target != compiler.host && cmd_kind != Kind::Check { - let error = command(self.rustc(compiler)) + let mut rustc_cmd = command(self.rustc(compiler)); + self.add_rustc_lib_path(compiler, &mut rustc_cmd); + + let error = rustc_cmd .arg("--target") .arg(target.rustc_target_arg()) .arg("--print=file-names") @@ -661,6 +664,7 @@ impl Builder<'_> { .arg("-") .run_capture(self) .stderr(); + let not_supported = error .lines() .any(|line| line.contains("unsupported crate type `proc-macro`")); |
