File: older-target-lexicon

package info (click to toggle)
rust-pyo3-build-config 0.27.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 404 kB
  • sloc: makefile: 4
file content (51 lines) | stat: -rw-r--r-- 2,325 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Index: pyo3-build-config/Cargo.toml
===================================================================
--- pyo3-build-config.orig/Cargo.toml
+++ pyo3-build-config/Cargo.toml
@@ -59,7 +59,7 @@ name = "pyo3_build_config"
 path = "src/lib.rs"
 
 [dependencies.target-lexicon]
-version = "0.13"
+version = "0.12"
 
 [build-dependencies.target-lexicon]
-version = "0.13"
+version = "0.12"
Index: pyo3-build-config/src/impl_.rs
===================================================================
--- pyo3-build-config.orig/src/impl_.rs
+++ pyo3-build-config/src/impl_.rs
@@ -975,8 +975,8 @@ impl CrossCompileConfig {
             && host.architecture == Architecture::X86_64;
 
         // Not cross-compiling to compile for x86-64 Python from macOS arm64 and vice versa
-        compatible |= matches!(target.operating_system, OperatingSystem::Darwin(_))
-            && matches!(host.operating_system, OperatingSystem::Darwin(_));
+        compatible |= matches!(target.operating_system, OperatingSystem::Darwin)
+            && matches!(host.operating_system, OperatingSystem::Darwin);
 
         !compatible
     }
Index: pyo3-build-config/src/lib.rs
===================================================================
--- pyo3-build-config.orig/src/lib.rs
+++ pyo3-build-config/src/lib.rs
@@ -64,7 +64,7 @@ pub fn add_extension_module_link_args()
 }
 
 fn _add_extension_module_link_args(triple: &Triple, mut writer: impl std::io::Write) {
-    if matches!(triple.operating_system, OperatingSystem::Darwin(_)) {
+    if matches!(triple.operating_system, OperatingSystem::Darwin) {
         writeln!(writer, "cargo:rustc-cdylib-link-arg=-undefined").unwrap();
         writeln!(writer, "cargo:rustc-cdylib-link-arg=dynamic_lookup").unwrap();
     } else if triple == &Triple::from_str("wasm32-unknown-emscripten").unwrap() {
@@ -99,7 +99,7 @@ fn _add_python_framework_link_args(
     link_libpython: bool,
     mut writer: impl std::io::Write,
 ) {
-    if matches!(triple.operating_system, OperatingSystem::Darwin(_)) && link_libpython {
+    if matches!(triple.operating_system, OperatingSystem::Darwin) && link_libpython {
         if let Some(framework_prefix) = interpreter_config.python_framework_prefix.as_ref() {
             writeln!(writer, "cargo:rustc-link-arg=-Wl,-rpath,{framework_prefix}").unwrap();
         }