File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1082,8 +1082,10 @@ impl Build {
1082
1082
cmd. args . push ( format ! ( "-O{}" , opt_level) . into ( ) ) ;
1083
1083
}
1084
1084
1085
- cmd. push_cc_arg ( "-ffunction-sections" . into ( ) ) ;
1086
- cmd. push_cc_arg ( "-fdata-sections" . into ( ) ) ;
1085
+ if !target. contains ( "-ios" ) {
1086
+ cmd. push_cc_arg ( "-ffunction-sections" . into ( ) ) ;
1087
+ cmd. push_cc_arg ( "-fdata-sections" . into ( ) ) ;
1088
+ }
1087
1089
if self . pic . unwrap_or ( !target. contains ( "windows-gnu" ) ) {
1088
1090
cmd. push_cc_arg ( "-fPIC" . into ( ) ) ;
1089
1091
}
@@ -1462,6 +1464,10 @@ impl Build {
1462
1464
1463
1465
cmd. args . push ( "-isysroot" . into ( ) ) ;
1464
1466
cmd. args . push ( sdk_path. trim ( ) . into ( ) ) ;
1467
+ cmd. args . push ( "-fembed-bitcode" . into ( ) ) ;
1468
+ if self . get_opt_level ( ) ? == "0" {
1469
+ cmd. args . push ( "-fembed-bitcode-marker" . into ( ) ) ;
1470
+ }
1465
1471
1466
1472
Ok ( ( ) )
1467
1473
}
You can’t perform that action at this time.
0 commit comments