File: time64-025-exclude-i386.patch

package info (click to toggle)
rust-libc 0.2.175-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,900 kB
  • sloc: makefile: 4
file content (19 lines) | stat: -rw-r--r-- 567 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Index: libc/build.rs
===================================================================
--- libc.orig/build.rs
+++ libc/build.rs
@@ -303,6 +303,14 @@ fn set_cfg(cfg: &str) {
 }
 
 fn is_gnu_time64_abi() -> bool {
+    match env::var("CARGO_CFG_TARGET_ARCH") {
+        Ok(target_arch) => {
+            if target_arch == "x86" {
+                return false;
+            }
+        }
+        Err(_) => panic!("CARGO_CFG_TARGET_ARCH not set"),
+    }
     match env::var("CARGO_CFG_TARGET_ENV") {
         Ok(target_env) => {
             if target_env != "gnu" {