File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -860,15 +860,14 @@ function(swift_icu_variables_set sdk arch result)
860
860
endif ()
861
861
endfunction ()
862
862
863
- # ICU is provided through CoreFoundation on Darwin. On other hosts, assume that
864
- # we are compiling for the build as the host. In such a case, if the ICU
863
+ # ICU is provided through CoreFoundation on Darwin. On other hosts, if the ICU
865
864
# unicode and i18n include and library paths are not defined, perform a standard
866
865
# package lookup. Otherwise, rely on the paths specified by the user. These
867
866
# need to be defined when cross-compiling.
868
867
if (NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin" )
869
868
if (SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY )
870
- swift_icu_variables_set ("${SWIFT_HOST_VARIANT_SDK_default } "
871
- "${SWIFT_HOST_VARIANT_ARCH_default } "
869
+ swift_icu_variables_set ("${SWIFT_PRIMARY_VARIANT_SDK } "
870
+ "${SWIFT_PRIMARY_VARIANT_ARCH } "
872
871
ICU_CONFIGURED )
873
872
if ("${SWIFT_PATH_TO_LIBICU_BUILD} " STREQUAL "" AND NOT ${ICU_CONFIGURED} )
874
873
find_package (ICU REQUIRED COMPONENTS uc i18n )
You can’t perform that action at this time.
0 commit comments