]> git.lizzy.rs Git - rust.git/commitdiff
arm-musl targets now use cfg(env = "musl")
authorJorge Aparicio <japaricious@gmail.com>
Tue, 26 Jul 2016 21:17:14 +0000 (16:17 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Sat, 30 Jul 2016 20:39:13 +0000 (15:39 -0500)
.gitmodules
src/liballoc_jemalloc/lib.rs
src/liblibc
src/librustc_back/target/arm_unknown_linux_musleabi.rs
src/librustc_back/target/arm_unknown_linux_musleabihf.rs
src/librustc_back/target/armv7_unknown_linux_musleabihf.rs
src/libstd/rtdeps.rs
src/libstd/sys/unix/thread.rs

index 39288a7ae490753fa30c690b314e730c8ca6f582..61697a37960ebdaa6987a71f1cf1a3c86ec026c2 100644 (file)
@@ -16,4 +16,4 @@
        url = https://github.com/rust-lang/rust-installer.git
 [submodule "src/liblibc"]
        path = src/liblibc
-       url = https://github.com/rust-lang/libc.git
+       url = https://github.com/japaric/libc.git
index ccf3d978fe434c122030acc62e46fcae0f8aaa24..347e97e6ffc0a8ddd84e25b3a0637bf499d0ab8a 100644 (file)
@@ -36,9 +36,7 @@
 #[cfg_attr(target_os = "android", link(name = "gcc"))]
 #[cfg_attr(all(not(windows),
                not(target_os = "android"),
-               not(target_env = "musl"),
-               not(target_env = "musleabi"),
-               not(target_env = "musleabihf")),
+               not(target_env = "musl")),
            link(name = "pthread"))]
 #[cfg(not(cargobuild))]
 extern "C" {}
index b0d62534d48b711c8978d1bbe8cca0558ae7b1cb..23a5092adcecc8c755e7887337e52f357353cad7 160000 (submodule)
@@ -1 +1 @@
-Subproject commit b0d62534d48b711c8978d1bbe8cca0558ae7b1cb
+Subproject commit 23a5092adcecc8c755e7887337e52f357353cad7
index 906f60f1c9a18c829f1d5c125377158e8a09cb4e..f2dff16a2842fd61a68f5f0dd435fb98f5d9e455 100644 (file)
@@ -26,7 +26,7 @@ pub fn target() -> Target {
         data_layout: "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
         arch: "arm".to_string(),
         target_os: "linux".to_string(),
-        target_env: "musleabi".to_string(),
+        target_env: "musl".to_string(),
         target_vendor: "unknown".to_string(),
         options: base,
     }
index 3051721b8c21fc4a1094fc9c342ca37cc07c46fa..89da0213198b76f662924798fea24765ee2bb3b6 100644 (file)
@@ -26,7 +26,7 @@ pub fn target() -> Target {
         data_layout: "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
         arch: "arm".to_string(),
         target_os: "linux".to_string(),
-        target_env: "musleabi".to_string(),
+        target_env: "musl".to_string(),
         target_vendor: "unknown".to_string(),
         options: base,
     }
index 8732681fb4929dc196aa455ac4b3716613a8637b..3b9ac8e21f2e70eff4fe9726fb4f681aa5164fa1 100644 (file)
@@ -27,7 +27,7 @@ pub fn target() -> Target {
         data_layout: "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
         arch: "arm".to_string(),
         target_os: "linux".to_string(),
-        target_env: "musleabi".to_string(),
+        target_env: "musl".to_string(),
         target_vendor: "unknown".to_string(),
         options: base,
     }
index f23ac32f51c39b282871bc6c0358c6c404aec9e8..c2572dfa5e15294729c47b0c662d869fad1b80ac 100644 (file)
@@ -19,9 +19,7 @@
 //
 // On Linux, librt and libdl are indirect dependencies via std,
 // and binutils 2.22+ won't add them automatically
-#[cfg(all(target_os = "linux", not(any(target_env = "musl",
-                                       target_env = "musleabi",
-                                       target_env = "musleabihf"))))]
+#[cfg(all(target_os = "linux", not(any(target_env = "musl"))))]
 #[link(name = "dl")]
 #[link(name = "pthread")]
 extern {}
index 7f05aec4e6ea90927c258f2c2942b048027ee58f..65ebce0baa28b75fc52ad19502064954bd25ab0c 100644 (file)
@@ -171,9 +171,7 @@ fn drop(&mut self) {
     }
 }
 
-#[cfg(all(not(all(target_os = "linux", not(any(target_env = "musl",
-                                               target_env = "musleabi",
-                                               target_env = "musleabihf")))),
+#[cfg(all(not(all(target_os = "linux", not(any(target_env = "musl")))),
           not(target_os = "freebsd"),
           not(target_os = "macos"),
           not(target_os = "bitrig"),
@@ -187,9 +185,7 @@ pub unsafe fn init() -> Option<usize> { None }
 }
 
 
-#[cfg(any(all(target_os = "linux", not(any(target_env = "musl",
-                                           target_env = "musleabi",
-                                           target_env = "musleabihf"))),
+#[cfg(any(all(target_os = "linux", not(any(target_env = "musl"))),
           target_os = "freebsd",
           target_os = "macos",
           target_os = "bitrig",