File tree 6 files changed +6
-27
lines changed
6 files changed +6
-27
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ Options:
89
89
Outputs a future incompatibility report at the end of the build (unstable)
90
90
91
91
-h, --help
92
- Print help information (use `-h` for a summary)
92
+ Print help (see a summary with '-h' )
93
93
```
94
94
95
95
## PEP 660 Editable Installs
Original file line number Diff line number Diff line change @@ -126,10 +126,6 @@ Options:
126
126
127
127
Make sure you installed zig with `pip install maturin[zig]`
128
128
129
- --universal2
130
- Control whether to build universal2 wheel for macOS or not. Only applies to macOS targets,
131
- do nothing otherwise
132
-
133
129
-q, --quiet
134
130
Do not print cargo log messages
135
131
@@ -190,7 +186,7 @@ Options:
190
186
Outputs a future incompatibility report at the end of the build (unstable)
191
187
192
188
-h, --help
193
- Print help information (use `-h` for a summary)
189
+ Print help (see a summary with '-h' )
194
190
```
195
191
196
192
### Cross Compiling
Original file line number Diff line number Diff line change @@ -185,11 +185,6 @@ pub struct BuildOptions {
185
185
#[ arg( long) ]
186
186
pub zig : bool ,
187
187
188
- /// Control whether to build universal2 wheel for macOS or not.
189
- /// Only applies to macOS targets, do nothing otherwise.
190
- #[ arg( long) ]
191
- pub universal2 : bool ,
192
-
193
188
/// Cargo build options
194
189
#[ command( flatten) ]
195
190
pub cargo : CargoOptions ,
@@ -510,13 +505,7 @@ impl BuildOptions {
510
505
511
506
let mut target_triple = self . target . clone ( ) ;
512
507
513
- let mut universal2 = self . universal2 ;
514
- if universal2 {
515
- eprintln ! ( "⚠️ Warning: `--universal2` is deprecated, use `--target universal2-apple-darwin` instead" ) ;
516
- } else if target_triple. as_deref ( ) == Some ( "universal2-apple-darwin" ) {
517
- universal2 = true ;
518
- target_triple = None ;
519
- }
508
+ let mut universal2 = target_triple. as_deref ( ) == Some ( "universal2-apple-darwin" ) ;
520
509
// Also try to determine universal2 from ARCHFLAGS environment variable
521
510
if let Ok ( arch_flags) = env:: var ( "ARCHFLAGS" ) {
522
511
let arches: HashSet < & str > = arch_flags
@@ -541,6 +530,9 @@ impl BuildOptions {
541
530
_ => { }
542
531
}
543
532
} ;
533
+ if universal2 {
534
+ target_triple = None ;
535
+ }
544
536
545
537
let target = Target :: from_target_triple ( target_triple) ?;
546
538
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ pub fn develop(
60
60
skip_auditwheel : false ,
61
61
#[ cfg( feature = "zig" ) ]
62
62
zig : false ,
63
- universal2 : false ,
64
63
cargo : CargoOptions {
65
64
target : target_triple,
66
65
..cargo_options
Original file line number Diff line number Diff line change @@ -56,10 +56,6 @@ Options:
56
56
57
57
Make sure you installed zig with `pip install maturin[zig]`
58
58
59
- --universal2
60
- Control whether to build universal2 wheel for macOS or not. Only applies to macOS targets,
61
- do nothing otherwise
62
-
63
59
-q, --quiet
64
60
Do not print cargo log messages
65
61
Original file line number Diff line number Diff line change @@ -90,10 +90,6 @@ Options:
90
90
91
91
Make sure you installed zig with `pip install maturin[zig]`
92
92
93
- --universal2
94
- Control whether to build universal2 wheel for macOS or not. Only applies to macOS targets,
95
- do nothing otherwise
96
-
97
93
-q, --quiet
98
94
Do not print cargo log messages
99
95
You can’t perform that action at this time.
0 commit comments