mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Rollup merge of #136309 - onur-ozkan:133629, r=jieyouxu
set rustc dylib on manually constructed rustc command Fixes #133629
This commit is contained in:
commit
a24d859f19
@ -659,7 +659,10 @@ impl Builder<'_> {
|
|||||||
// Build proc macros both for the host and the target unless proc-macros are not
|
// Build proc macros both for the host and the target unless proc-macros are not
|
||||||
// supported by the target.
|
// supported by the target.
|
||||||
if target != compiler.host && cmd_kind != Kind::Check {
|
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")
|
||||||
.arg(target.rustc_target_arg())
|
.arg(target.rustc_target_arg())
|
||||||
.arg("--print=file-names")
|
.arg("--print=file-names")
|
||||||
@ -667,6 +670,7 @@ impl Builder<'_> {
|
|||||||
.arg("-")
|
.arg("-")
|
||||||
.run_capture(self)
|
.run_capture(self)
|
||||||
.stderr();
|
.stderr();
|
||||||
|
|
||||||
let not_supported = error
|
let not_supported = error
|
||||||
.lines()
|
.lines()
|
||||||
.any(|line| line.contains("unsupported crate type `proc-macro`"));
|
.any(|line| line.contains("unsupported crate type `proc-macro`"));
|
||||||
|
Loading…
Reference in New Issue
Block a user