Skip to content
This repository was archived by the owner on Feb 9, 2020. It is now read-only.

Commit ae61c97

Browse files
committed
Add more cuda cfg
1 parent e75e3db commit ae61c97

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/libstd/os/linux/raw.rs

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ pub use self::arch::{off_t, ino_t, nlink_t, blksize_t, blkcnt_t, stat, time_t};
3636
target_arch = "powerpc",
3737
target_arch = "arm",
3838
target_arch = "asmjs",
39+
target_arch = "nvptx64",
3940
target_arch = "wasm32"))]
4041
mod arch {
4142
use os::raw::{c_long, c_short, c_uint};

src/libstd/sys/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ cfg_if! {
6565
if #[cfg(any(unix, target_os = "redox"))] {
6666
// On unix we'll document what's already available
6767
pub use self::ext as unix_ext;
68-
} else if #[cfg(any(target_os = "cloudabi", target_arch = "wasm32"))] {
68+
} else if #[cfg(any(target_os = "cloudabi", target_os = "cuda", target_arch = "wasm32"))] {
6969
// On CloudABI and wasm right now the module below doesn't compile
7070
// (missing things in `libc` which is empty) so just omit everything
7171
// with an empty module
@@ -84,7 +84,7 @@ cfg_if! {
8484
if #[cfg(windows)] {
8585
// On windows we'll just be documenting what's already available
8686
pub use self::ext as windows_ext;
87-
} else if #[cfg(any(target_os = "cloudabi", target_arch = "wasm32"))] {
87+
} else if #[cfg(any(target_os = "cloudabi", target_os = "cuda", target_arch = "wasm32"))] {
8888
// On CloudABI and wasm right now the shim below doesn't compile, so
8989
// just omit it
9090
#[unstable(issue = "0", feature = "std_internals")]

0 commit comments

Comments
 (0)