[nvptx] enable nvptx only when all other targets are disabled (#208)

Closes #207 .
This commit is contained in:
gnzlbg 2017-11-21 22:05:05 +01:00 committed by Alex Crichton
parent 8356754fe7
commit 0129d3be76

View file

@ -159,6 +159,9 @@ pub mod vendor {
#[cfg(target_arch = "aarch64")]
pub use aarch64::*;
// FIXME: rust does not expose the nvptx and nvptx64 targets yet
#[cfg(not(any(target_arch = "x86", target_arch = "x86_64",
target_arch = "arm", target_arch = "aarch64")))]
pub use nvptx::*;
#[cfg(any(
@ -233,4 +236,7 @@ mod arm;
#[cfg(target_arch = "aarch64")]
mod aarch64;
// FIXME: rust does not expose the nvptx and nvptx64 targets yet
#[cfg(not(any(target_arch = "x86", target_arch = "x86_64",
target_arch = "arm", target_arch = "aarch64")))]
mod nvptx;