Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
b20bc53
ci: fix explanation why LLVM download is disabled for windows-gnu
mati865 Nov 20, 2024
56c6ffb
Use +secure-plt for powerpc-unknown-linux-gnu{,spe}
taiki-e Jan 27, 2025
139d6ba
set rustc dylib on manually constructed rustc command
onur-ozkan Jan 30, 2025
4d42046
CompileTest: Add Directives to Ignore `arm-unknown-*` Tests
veera-sivarajan Jan 31, 2025
56795fb
Add amdgpu target
Flakebi Jan 2, 2025
860476f
Update encode_utf16 to mention it is native endian
hkBst Jan 30, 2025
88260f4
bootstrap: only build `crt{begin,end}.o` when compiling to MUSL
japaric Jan 21, 2025
2c35bd0
`#[optimize(none)]` implies `#[inline(never)]`
clubby789 Jan 31, 2025
8e9422f
Make comma separated lists of anything easier to make for errors
estebank Jan 31, 2025
0751e90
Rework "long type names" printing logic
estebank Jan 31, 2025
24cdaa1
Rename `tcx.ensure()` to `tcx.ensure_ok()`
Zalathar Jan 30, 2025
9e4f10d
Rename `tcx.ensure_with_value()` to `tcx.ensure_done()`
Zalathar Jan 30, 2025
fef46f4
Rename `ensure_forwards_result_if_red` to `return_result_from_ensure_ok`
Zalathar Jan 30, 2025
3581512
Use an explicit type when discarding the result of `tcx.ensure_ok()`
Zalathar Jan 30, 2025
3ae0239
Mark the tcx-ensure wrapper types with `#[must_use]`
Zalathar Jan 30, 2025
01bf470
Rollup merge of #133266 - mati865:windows-gnu-llvm-download, r=Kobzol
jhpratt Feb 1, 2025
9931624
Rollup merge of #134740 - Flakebi:amdgpu-target, r=workingjubilee
jhpratt Feb 1, 2025
dcde19f
Rollup merge of #135836 - ferrocene:ja-gh135782-build-crt-only-for-mu…
jhpratt Feb 1, 2025
72af398
Rollup merge of #136154 - taiki-e:ppc-secure-plt, r=nikic
jhpratt Feb 1, 2025
5cbd797
Rollup merge of #136279 - Zalathar:ensure-ok, r=oli-obk
jhpratt Feb 1, 2025
993feb0
Rollup merge of #136283 - hkBst:patch-31, r=workingjubilee
jhpratt Feb 1, 2025
d5525f5
Rollup merge of #136309 - onur-ozkan:133629, r=jieyouxu
jhpratt Feb 1, 2025
a75511a
Rollup merge of #136328 - estebank:long-ty-path, r=jieyouxu,lqd
jhpratt Feb 1, 2025
c975c1f
Rollup merge of #136339 - veera-sivarajan:ignore-arm-unknown-headers,…
jhpratt Feb 1, 2025
dd685de
Rollup merge of #136358 - clubby789:opt-none-noinline, r=saethlin
jhpratt Feb 1, 2025
d34b025
Rollup merge of #136368 - estebank:listify, r=fee1-dead
jhpratt Feb 1, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
set rustc dylib on manually constructed rustc command
Signed-off-by: onur-ozkan <[email protected]>
  • Loading branch information
onur-ozkan committed Jan 30, 2025
commit 139d6ba054a1a4cc5fe64981ad46fd5547bd4916
6 changes: 5 additions & 1 deletion src/bootstrap/src/core/builder/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -653,14 +653,18 @@ 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")
.arg("--crate-type=proc-macro")
.arg("-")
.run_capture(self)
.stderr();

let not_supported = error
.lines()
.any(|line| line.contains("unsupported crate type `proc-macro`"));
Expand Down
Loading