File tree 1 file changed +4
-1
lines changed
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 {
177
177
178
178
// Are we compiling for iOS/tvOS?
179
179
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.
180
181
cfg. define ( "CMAKE_OSX_SYSROOT" , "/" ) ;
181
182
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.
183
186
cfg. define ( "LLVM_ENABLE_ZLIB" , "OFF" ) ;
184
187
}
185
188
You can’t perform that action at this time.
0 commit comments