File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1632,16 +1632,19 @@ impl Build {
1632
1632
}
1633
1633
} ;
1634
1634
1635
+ let min_version = std:: env:: var ( "IPHONEOS_DEPLOYMENT_TARGET" )
1636
+ . unwrap_or_else ( |_| "7.0" . into ( ) ) ;
1637
+
1635
1638
let sdk = match arch {
1636
1639
ArchSpec :: Device ( arch) => {
1637
1640
cmd. args . push ( "-arch" . into ( ) ) ;
1638
1641
cmd. args . push ( arch. into ( ) ) ;
1639
- cmd. args . push ( "-miphoneos-version-min=7.0" . into ( ) ) ;
1642
+ cmd. args . push ( format ! ( "-miphoneos-version-min={}" , min_version ) . into ( ) ) ;
1640
1643
"iphoneos"
1641
1644
}
1642
1645
ArchSpec :: Simulator ( arch) => {
1643
1646
cmd. args . push ( arch. into ( ) ) ;
1644
- cmd. args . push ( "-mios-simulator-version-min=7.0" . into ( ) ) ;
1647
+ cmd. args . push ( format ! ( "-mios-simulator-version-min={}" , min_version ) . into ( ) ) ;
1645
1648
"iphonesimulator"
1646
1649
}
1647
1650
} ;
You can’t perform that action at this time.
0 commit comments