File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -177,9 +177,12 @@ impl Step for Llvm {
177177
178178 // Are we compiling for iOS/tvOS?
179179 if target. contains ( "apple" ) && !target. contains ( "darwin" ) {
180+ // These two defines prevent CMake from automatically trying to add a MacOSX sysroot, which leads to a compiler error.
180181 cfg. define ( "CMAKE_OSX_SYSROOT" , "/" ) ;
181182 cfg. define ( "CMAKE_OSX_DEPLOYMENT_TARGET" , "" ) ;
182- cfg. define ( "LLVM_ENABLE_PLUGINS" , "OFF" ) ; // Prevent cmake from adding -bundle to CFLAGS automatically.
183+ // Prevent cmake from adding -bundle to CFLAGS automatically, which leads to a compiler error because "-bitcode_bundle" also gets added.
184+ cfg. define ( "LLVM_ENABLE_PLUGINS" , "OFF" ) ;
185+ // Zlib fails to link properly, leading to a compiler error.
183186 cfg. define ( "LLVM_ENABLE_ZLIB" , "OFF" ) ;
184187 }
185188
You can’t perform that action at this time.
0 commit comments