Skip to content

Commit dd0d83f

Browse files
gnzlbgalexcrichton
authored andcommitted
[nvptx] enable nvptx only when all other targets are disabled (rust-lang#208)
Closes rust-lang#207 .
1 parent 4c53e76 commit dd0d83f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ pub mod vendor {
159159
#[cfg(target_arch = "aarch64")]
160160
pub use aarch64::*;
161161

162+
// FIXME: rust does not expose the nvptx and nvptx64 targets yet
163+
#[cfg(not(any(target_arch = "x86", target_arch = "x86_64",
164+
target_arch = "arm", target_arch = "aarch64")))]
162165
pub use nvptx::*;
163166

164167
#[cfg(any(
@@ -233,4 +236,7 @@ mod arm;
233236
#[cfg(target_arch = "aarch64")]
234237
mod aarch64;
235238

239+
// FIXME: rust does not expose the nvptx and nvptx64 targets yet
240+
#[cfg(not(any(target_arch = "x86", target_arch = "x86_64",
241+
target_arch = "arm", target_arch = "aarch64")))]
236242
mod nvptx;

0 commit comments

Comments
 (0)