Skip to content

Commit

Permalink
Deprecate --univeral2 instead of universal2-apple-darwin target
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Feb 3, 2023
1 parent 1fb43e1 commit 14ec8e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Add Cargo compile targets configuration for filtering multiple bin targets in [#1339](https://github.com/PyO3/maturin/pull/1339)
* Respect `rustflags` settings in cargo configuration file in [#1405](https://github.com/PyO3/maturin/pull/1405)
* Bump MSRV to 1.63.0 in [#1407](https://github.com/PyO3/maturin/pull/1407)
* Deprecate `--univeral2` instead of `universal2-apple-darwin` target in [#1457](https://github.com/PyO3/maturin/pull/1457)

## [0.14.12] - 2023-01-31

Expand Down
6 changes: 6 additions & 0 deletions src/build_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,12 @@ impl BuildOptions {
let mut target_triple = self.target.clone();

let mut universal2 = self.universal2;
if universal2 {
eprintln!("⚠️ Warning: `--universal2` is deprecated, use `--target univeral2-apple-darwin` instead");
} else if target_triple.as_deref() == Some("universal2-apple-darwin") {
universal2 = true;
target_triple = None;
}
// Also try to determine universal2 from ARCHFLAGS environment variable
if let Ok(arch_flags) = env::var("ARCHFLAGS") {
let arches: HashSet<&str> = arch_flags
Expand Down

0 comments on commit 14ec8e3

Please sign in to comment.