File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -811,11 +811,6 @@ impl Build {
811
811
if target. contains ( "apple-darwin" ) {
812
812
base. push ( "-stdlib=libc++" . into ( ) ) ;
813
813
}
814
-
815
- // Required for LLVM to properly compile.
816
- if target. contains ( "apple-ios" ) {
817
- base. push ( "-miphoneos-version-min=10.0" . into ( ) ) ;
818
- }
819
814
820
815
// Work around an apparently bad MinGW / GCC optimization,
821
816
// See: http://lists.llvm.org/pipermail/cfe-dev/2016-December/051980.html
Original file line number Diff line number Diff line change @@ -420,6 +420,9 @@ fn configure_cmake(
420
420
if let Some ( ref s) = builder. config . llvm_cflags {
421
421
cflags. push_str ( & format ! ( " {}" , s) ) ;
422
422
}
423
+ if target. contains ( "apple-ios" ) {
424
+ cflags. push_str ( " -miphoneos-version-min=10.0" ) ;
425
+ }
423
426
cfg. define ( "CMAKE_C_FLAGS" , cflags) ;
424
427
let mut cxxflags = builder. cflags ( target, GitRepo :: Llvm ) . join ( " " ) ;
425
428
if builder. config . llvm_static_stdcpp && !target. contains ( "msvc" ) && !target. contains ( "netbsd" ) {
You can’t perform that action at this time.
0 commit comments