File tree 2 files changed +6
-12
lines changed 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -624,14 +624,9 @@ function(_add_swift_host_library_single target)
624
624
PROPERTIES
625
625
INSTALL_RPATH "$ORIGIN:/usr/lib/swift/cygwin" )
626
626
elseif ("${SWIFT_HOST_VARIANT_SDK} " STREQUAL "ANDROID" )
627
- # Only set the install RPATH if cross-compiling the host tools, in which
628
- # case both the NDK and Sysroot paths must be set.
629
- if (NOT "${SWIFT_ANDROID_NDK_PATH} " STREQUAL "" AND
630
- NOT "${SWIFT_ANDROID_NATIVE_SYSROOT} " STREQUAL "" )
631
- set_target_properties ("${target} "
632
- PROPERTIES
633
- INSTALL_RPATH "$ORIGIN" )
634
- endif ()
627
+ set_target_properties ("${target} "
628
+ PROPERTIES
629
+ INSTALL_RPATH "$ORIGIN" )
635
630
endif ()
636
631
637
632
set_target_properties ("${target} " PROPERTIES BUILD_WITH_INSTALL_RPATH YES )
Original file line number Diff line number Diff line change @@ -958,10 +958,9 @@ function(_add_swift_target_library_single target name)
958
958
if (SWIFTLIB_SINGLE_TARGET_LIBRARY)
959
959
set_target_properties ("${target} " PROPERTIES NO_SONAME TRUE )
960
960
endif ()
961
- # Only set the install RPATH if cross-compiling the host tools, in which
962
- # case both the NDK and Sysroot paths must be set.
963
- if (NOT "${SWIFT_ANDROID_NDK_PATH} " STREQUAL "" AND
964
- NOT "${SWIFT_ANDROID_NATIVE_SYSROOT} " STREQUAL "" )
961
+ # Only set the install RPATH if the toolchain and stdlib will be in Termux
962
+ # or some other native sysroot on Android.
963
+ if (NOT "${SWIFT_ANDROID_NATIVE_SYSROOT} " STREQUAL "" )
965
964
set_target_properties ("${target} "
966
965
PROPERTIES
967
966
INSTALL_RPATH "$ORIGIN" )
You can’t perform that action at this time.
0 commit comments