]>
git.proxmox.com Git - rustc.git/blob - src/librustc_back/target/asmjs_unknown_emscripten.rs
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.
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.
11 use super::{Target, TargetOptions}
;
13 pub fn target() -> Result
<Target
, String
> {
14 let opts
= TargetOptions
{
15 linker
: "emcc".to_string(),
16 ar
: "emar".to_string(),
18 dynamic_linking
: false,
20 exe_suffix
: ".js".to_string(),
29 llvm_target
: "asmjs-unknown-emscripten".to_string(),
30 target_endian
: "little".to_string(),
31 target_pointer_width
: "32".to_string(),
32 target_os
: "emscripten".to_string(),
33 target_env
: "".to_string(),
34 target_vendor
: "unknown".to_string(),
35 data_layout
: "e-p:32:32-i64:64-v128:32:128-n32-S128".to_string(),
36 arch
: "asmjs".to_string(),