From 0129d3be766beff85db7ae83c9347e0f8825e2de Mon Sep 17 00:00:00 2001 From: gnzlbg Date: Tue, 21 Nov 2017 22:05:05 +0100 Subject: [PATCH] [nvptx] enable nvptx only when all other targets are disabled (#208) Closes #207 . --- library/stdarch/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/library/stdarch/src/lib.rs b/library/stdarch/src/lib.rs index e137946e18fe..1d9345b99502 100644 --- a/library/stdarch/src/lib.rs +++ b/library/stdarch/src/lib.rs @@ -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;