We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0eb2547 + 770d59c commit 53cfd44Copy full SHA for 53cfd44
utils/build-script-impl
@@ -792,6 +792,15 @@ function set_build_options_for_host() {
792
-DCMAKE_OSX_ARCHITECTURES="${architecture}"
793
)
794
795
+ # Avoid building the embedded stdlib and other embedded libraries when cross-compiling.
796
+ # Those are already provided by the local host build, and are identical and only cause
797
+ # trouble when lipo-ing if they are produced in cross-compile builds too.
798
+ if [[ $(is_cross_tools_host "${host}") ]] ; then
799
+ swift_cmake_options+=(
800
+ -DSWIFT_SHOULD_BUILD_EMBEDDED_STDLIB:BOOL=FALSE
801
+ )
802
+ fi
803
+
804
lldb_cmake_options+=(
805
-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING="${cmake_osx_deployment_target}"
806
-DCMAKE_OSX_SYSROOT:PATH="${cmake_os_sysroot}"
0 commit comments