diff options
| author | Denys Zariaiev <denys.zariaiev@gmail.com> | 2019-01-19 21:59:34 +0100 |
|---|---|---|
| committer | Denys Zariaiev <denys.zariaiev@gmail.com> | 2019-01-27 16:04:09 +0100 |
| commit | d3903d5f9c4e58cc3fa256ec5be52717b84e6308 (patch) | |
| tree | f605e94869041dbafa407c1cae38ef2acb84517c /src/bootstrap | |
| parent | 01af12008d63a64446a86d995e772f8a539a4202 (diff) | |
| download | rust-d3903d5f9c4e58cc3fa256ec5be52717b84e6308.tar.gz rust-d3903d5f9c4e58cc3fa256ec5be52717b84e6308.zip | |
Create `nvptx64-nvidia-cuda` target specification
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/lib.rs | 1 | ||||
| -rw-r--r-- | src/bootstrap/sanity.rs | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index 37451a74dfa..b0bbf2395e2 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -831,6 +831,7 @@ impl Build { !target.contains("msvc") && !target.contains("emscripten") && !target.contains("wasm32") && + !target.contains("nvptx") && !target.contains("fuchsia") { Some(self.cc(target)) } else { diff --git a/src/bootstrap/sanity.rs b/src/bootstrap/sanity.rs index fe547a6b151..ff4fb85bbfa 100644 --- a/src/bootstrap/sanity.rs +++ b/src/bootstrap/sanity.rs @@ -156,7 +156,7 @@ pub fn check(build: &mut Build) { panic!("the iOS target is only supported on macOS"); } - if target.contains("-none-") { + if target.contains("-none-") || target.contains("nvptx") { if build.no_std(*target).is_none() { let target = build.config.target_config.entry(target.clone()) .or_default(); @@ -165,7 +165,7 @@ pub fn check(build: &mut Build) { } if build.no_std(*target) == Some(false) { - panic!("All the *-none-* targets are no-std targets") + panic!("All the *-none-* and nvptx* targets are no-std targets") } } |
