summary refs log tree commit diff
path: root/src/librustc_back
diff options
context:
space:
mode:
authorTim JIANG <p90eri@gmail.com>2015-08-09 13:15:50 +0800
committerOvermind JIANG <p90eri@gmail.com>2015-08-23 15:38:11 +0800
commita1b2deb33b3d8f8e77567afbebdb4a3d27ee97ff (patch)
treefe7a50dc54fd4d3525d5888fad69433ece2bede9 /src/librustc_back
parente617a17369ef403268adcebc5e3e32a0bb5cf04c (diff)
downloadrust-a1b2deb33b3d8f8e77567afbebdb4a3d27ee97ff.tar.gz
rust-a1b2deb33b3d8f8e77567afbebdb4a3d27ee97ff.zip
New cross target: i686-linux-android
- All the libstd tests are now passing in the optimized build against
  a Zenfone2 and the x86 Android simulator.
Diffstat (limited to 'src/librustc_back')
-rw-r--r--src/librustc_back/target/i686_linux_android.rs23
-rw-r--r--src/librustc_back/target/mod.rs1
2 files changed, 24 insertions, 0 deletions
diff --git a/src/librustc_back/target/i686_linux_android.rs b/src/librustc_back/target/i686_linux_android.rs
new file mode 100644
index 00000000000..1fb962d3c6c
--- /dev/null
+++ b/src/librustc_back/target/i686_linux_android.rs
@@ -0,0 +1,23 @@
+// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+use target::Target;
+
+pub fn target() -> Target {
+    Target {
+        llvm_target: "i686-linux-android".to_string(),
+        target_endian: "little".to_string(),
+        target_pointer_width: "32".to_string(),
+        arch: "x86".to_string(),
+        target_os: "android".to_string(),
+        target_env: "gnu".to_string(),
+        options: super::android_base::opts(),
+    }
+}
diff --git a/src/librustc_back/target/mod.rs b/src/librustc_back/target/mod.rs
index 542791ae904..847ab937b37 100644
--- a/src/librustc_back/target/mod.rs
+++ b/src/librustc_back/target/mod.rs
@@ -373,6 +373,7 @@ impl Target {
             aarch64_unknown_linux_gnu,
             x86_64_unknown_linux_musl,
 
+            i686_linux_android,
             arm_linux_androideabi,
             aarch64_linux_android,