| { | ||
| "git": { | ||
| "sha1": "514e4d14e1ea5d063da565fdd902f6fe3519a406" | ||
| "sha1": "df67ed3948377535664362bac6ccb9ad6af4ee67" | ||
| }, | ||
| "path_in_vcs": "" | ||
| } |
+1
-1
@@ -13,3 +13,3 @@ # This file is automatically @generated by Cargo. | ||
| name = "cc" | ||
| version = "1.2.44" | ||
| version = "1.2.45" | ||
| dependencies = [ | ||
@@ -16,0 +16,0 @@ "find-msvc-tools", |
+1
-1
@@ -16,3 +16,3 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| name = "cc" | ||
| version = "1.2.44" | ||
| version = "1.2.45" | ||
| authors = ["Alex Crichton <alex@alexcrichton.com>"] | ||
@@ -19,0 +19,0 @@ build = false |
+7
-0
@@ -10,2 +10,9 @@ # Changelog | ||
| ## [1.2.45](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.44...cc-v1.2.45) - 2025-11-07 | ||
| ### Other | ||
| - Regenerate target info ([#1606](https://github.com/rust-lang/cc-rs/pull/1606)) | ||
| - Use a default check for the "env" variable in apple_sdk_name ([#1605](https://github.com/rust-lang/cc-rs/pull/1605)) | ||
| ## [1.2.44](https://github.com/rust-lang/cc-rs/compare/cc-v1.2.43...cc-v1.2.44) - 2025-10-31 | ||
@@ -12,0 +19,0 @@ |
+18
-10
@@ -6,12 +6,16 @@ use super::TargetInfo; | ||
| match (self.os, self.env) { | ||
| ("macos", "") => "macosx", | ||
| ("ios", "") => "iphoneos", | ||
| // The target_env variable, as written here: | ||
| // https://doc.rust-lang.org/reference/conditional-compilation.html#target_env | ||
| // is only really used for disambiguation, so we use a "default" case instead of | ||
| // checking for a blank string. | ||
| ("macos", _) => "macosx", | ||
| ("ios", "sim") => "iphonesimulator", | ||
| ("ios", "macabi") => "macosx", | ||
| ("tvos", "") => "appletvos", | ||
| ("ios", _) => "iphoneos", | ||
| ("tvos", "sim") => "appletvsimulator", | ||
| ("watchos", "") => "watchos", | ||
| ("tvos", _) => "appletvos", | ||
| ("watchos", "sim") => "watchsimulator", | ||
| ("visionos", "") => "xros", | ||
| ("watchos", _) => "watchos", | ||
| ("visionos", "sim") => "xrsimulator", | ||
| ("visionos", _) => "xros", | ||
| (os, _) => panic!("invalid Apple target OS {}", os), | ||
@@ -35,14 +39,18 @@ } | ||
| match (self.os, self.env) { | ||
| ("macos", "") => format!("-mmacosx-version-min={min_version}"), | ||
| ("ios", "") => format!("-miphoneos-version-min={min_version}"), | ||
| // The target_env variable, as written here: | ||
| // https://doc.rust-lang.org/reference/conditional-compilation.html#target_env | ||
| // is only really used for disambiguation, so we use a "default" case instead of | ||
| // checking for a blank string. | ||
| ("macos", _) => format!("-mmacosx-version-min={min_version}"), | ||
| ("ios", "sim") => format!("-mios-simulator-version-min={min_version}"), | ||
| ("ios", "macabi") => format!("-mtargetos=ios{min_version}-macabi"), | ||
| ("tvos", "") => format!("-mappletvos-version-min={min_version}"), | ||
| ("ios", _) => format!("-miphoneos-version-min={min_version}"), | ||
| ("tvos", "sim") => format!("-mappletvsimulator-version-min={min_version}"), | ||
| ("watchos", "") => format!("-mwatchos-version-min={min_version}"), | ||
| ("tvos", _) => format!("-mappletvos-version-min={min_version}"), | ||
| ("watchos", "sim") => format!("-mwatchsimulator-version-min={min_version}"), | ||
| ("watchos", _) => format!("-mwatchos-version-min={min_version}"), | ||
| // `-mxros-version-min` does not exist | ||
| // https://github.com/llvm/llvm-project/issues/88271 | ||
| ("visionos", "") => format!("-mtargetos=xros{min_version}"), | ||
| ("visionos", "sim") => format!("-mtargetos=xros{min_version}-simulator"), | ||
| ("visionos", _) => format!("-mtargetos=xros{min_version}"), | ||
| (os, _) => panic!("invalid Apple target OS {}", os), | ||
@@ -49,0 +57,0 @@ } |
@@ -25,2 +25,3 @@ //! This file is generated code. Please edit the generator in | ||
| ("aarch64-unknown-fuchsia", "aarch64-unknown-fuchsia"), | ||
| ("aarch64-unknown-helenos", "aarch64-unknown-helenos"), | ||
| ("aarch64-unknown-hermit", "aarch64-unknown-hermit"), | ||
@@ -127,2 +128,3 @@ ("aarch64-unknown-illumos", "aarch64-unknown-solaris2.11"), | ||
| ("i686-unknown-haiku", "i686-unknown-haiku"), | ||
| ("i686-unknown-helenos", "i686-unknown-helenos"), | ||
| ("i686-unknown-hurd-gnu", "i686-unknown-hurd-gnu"), | ||
@@ -172,2 +174,3 @@ ("i686-unknown-linux-gnu", "i686-unknown-linux-gnu"), | ||
| ("powerpc-unknown-freebsd", "powerpc-unknown-freebsd13.0"), | ||
| ("powerpc-unknown-helenos", "powerpc-unknown-helenos"), | ||
| ("powerpc-unknown-linux-gnu", "powerpc-unknown-linux-gnu"), | ||
@@ -223,2 +226,3 @@ ("powerpc-unknown-linux-gnuspe", "powerpc-unknown-linux-gnuspe"), | ||
| ("riscv64gc-unknown-openbsd", "riscv64-unknown-openbsd"), | ||
| ("riscv64gc-unknown-redox", "riscv64-unknown-redox"), | ||
| ("riscv64imac-unknown-none-elf", "riscv64"), | ||
@@ -230,2 +234,3 @@ ("riscv64imac-unknown-nuttx-elf", "riscv64"), | ||
| ("sparc-unknown-none-elf", "sparc-unknown-none-elf"), | ||
| ("sparc64-unknown-helenos", "sparc64-unknown-helenos"), | ||
| ("sparc64-unknown-linux-gnu", "sparc64-unknown-linux-gnu"), | ||
@@ -291,2 +296,3 @@ ("sparc64-unknown-netbsd", "sparc64-unknown-netbsd"), | ||
| ("x86_64-unknown-haiku", "x86_64-unknown-haiku"), | ||
| ("x86_64-unknown-helenos", "x86_64-unknown-helenos"), | ||
| ("x86_64-unknown-hermit", "x86_64-unknown-hermit"), | ||
@@ -293,0 +299,0 @@ ("x86_64-unknown-hurd-gnu", "x86_64-unknown-hurd-gnu"), |
Sorry, the diff of this file is not supported yet