Skip to content

Commit 9193bbe

Browse files
wangrunji0408alexcrichton
authored andcommitted
Fix compile error on x86_64-unknown-uefi target (#331)
* fix compile error on x86_64-unknown-uefi target * Fix tests on nightly
1 parent 59b3eb7 commit 9193bbe

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/probestack.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ extern "C" {
5656
// emitted for the function.
5757
//
5858
// This is the ELF version.
59-
#[cfg(not(target_vendor = "apple"))]
59+
#[cfg(not(any(target_vendor = "apple", target_os = "uefi")))]
6060
macro_rules! define_rust_probestack {
6161
($body: expr) => {
6262
concat!(
@@ -76,7 +76,7 @@ macro_rules! define_rust_probestack {
7676
}
7777

7878
// Same as above, but for Mach-O.
79-
#[cfg(target_vendor = "apple")]
79+
#[cfg(any(target_vendor = "apple", target_os = "uefi"))]
8080
macro_rules! define_rust_probestack {
8181
($body: expr) => {
8282
concat!(

testcrate/tests/count_leading_zeros.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(compiler_builtins_lib)]
2-
31
extern crate compiler_builtins;
42

53
use compiler_builtins::int::__clzsi2;

testcrate/tests/generated.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(compiler_builtins_lib)]
21
#![feature(lang_items)]
32
#![allow(bad_style)]
43
#![allow(unused_imports)]

0 commit comments

Comments
 (0)