|
| 1 | +// Copyright 2015 The Rust Project Developers. See the COPYRIGHT |
| 2 | +// file at the top-level directory of this distribution and at |
| 3 | +// http://rust-lang.org/COPYRIGHT. |
| 4 | +// |
| 5 | +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or |
| 6 | +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license |
| 7 | +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your |
| 8 | +// option. This file may not be copied, modified, or distributed |
| 9 | +// except according to those terms. |
| 10 | + |
| 11 | +use super::{Target, TargetOptions}; |
| 12 | + |
| 13 | +pub fn target() -> Target { |
| 14 | + let opts = TargetOptions { |
| 15 | + linker: "".to_string(), |
| 16 | + ar: "".to_string(), |
| 17 | + |
| 18 | + cpu: "sm_20".to_string(), |
| 19 | + dynamic_linking: false, |
| 20 | + executables: false, |
| 21 | + no_compiler_rt: true, |
| 22 | + allow_asm: false, |
| 23 | + .. Default::default() |
| 24 | + }; |
| 25 | + Target { |
| 26 | + llvm_target: "nvptx-unknown-unknown".to_string(), |
| 27 | + target_endian: "little".to_string(), |
| 28 | + target_pointer_width: "32".to_string(), |
| 29 | + target_os: "none".to_string(), |
| 30 | + target_env: "".to_string(), |
| 31 | + target_vendor: "unknown".to_string(), |
| 32 | + data_layout: "e-p:32:32-i64:64-v16:16-v32:32-n16:32:64".to_string(), |
| 33 | + arch: "nvptx".to_string(), |
| 34 | + options: opts, |
| 35 | + } |
| 36 | +} |
0 commit comments