File tree 1 file changed +4
-3
lines changed
src/bootstrap/src/core/build_steps
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -385,9 +385,6 @@ impl Step for Llvm {
385
385
|| target. contains ( "apple-watchos" )
386
386
|| target. contains ( "apple-visionos" )
387
387
{
388
- // These two defines prevent CMake from automatically trying to add a MacOSX sysroot, which leads to a compiler error.
389
- cfg. define ( "CMAKE_OSX_SYSROOT" , "/" ) ;
390
- cfg. define ( "CMAKE_OSX_DEPLOYMENT_TARGET" , "" ) ;
391
388
// Prevent cmake from adding -bundle to CFLAGS automatically, which leads to a compiler error because "-bitcode_bundle" also gets added.
392
389
cfg. define ( "LLVM_ENABLE_PLUGINS" , "OFF" ) ;
393
390
// Zlib fails to link properly, leading to a compiler error.
@@ -703,6 +700,10 @@ fn configure_cmake(
703
700
//
704
701
// So for now we set it to "Darwin" on all Apple platforms.
705
702
cfg. define ( "CMAKE_SYSTEM_NAME" , "Darwin" ) ;
703
+
704
+ // These two defines prevent CMake from automatically trying to add a MacOSX sysroot, which leads to a compiler error.
705
+ cfg. define ( "CMAKE_OSX_SYSROOT" , "/" ) ;
706
+ cfg. define ( "CMAKE_OSX_DEPLOYMENT_TARGET" , "" ) ;
706
707
}
707
708
708
709
// Make sure that CMake does not build universal binaries on macOS.
You can’t perform that action at this time.
0 commit comments