File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -2976,13 +2976,21 @@ function(add_swift_target_executable name)
2976
2976
"-${SWIFT_SDK_${sdk} _LIB_SUBDIR}"
2977
2977
SWIFTEXE_TARGET_DEPENDS_with_suffix )
2978
2978
2979
+ # Note: we add ${swiftexe_link_libraries_targets} to the DEPENDS
2980
+ # below because when --bootstrapping=bootstrapping with
2981
+ # skip-early-swiftsyntax, the build system builds the Swift compiler
2982
+ # but not the standard library during the bootstrap, and then when
2983
+ # it tries to build swift-backtrace it fails because *the compiler*
2984
+ # refers to a libswiftCore.so that can't be found.
2985
+
2979
2986
_add_swift_target_executable_single (
2980
2987
${VARIANT_NAME}
2981
2988
${SWIFTEXE_TARGET_NOSWIFTRT_keyword}
2982
2989
${SWIFTEXE_TARGET_SOURCES}
2983
2990
DEPENDS
2984
2991
${SWIFTEXE_TARGET_DEPENDS_with_suffix}
2985
2992
${swiftexe_module_dependency_targets}
2993
+ ${swiftexe_link_libraries_targets}
2986
2994
SDK "${sdk} "
2987
2995
ARCHITECTURE "${arch} "
2988
2996
COMPILE_FLAGS
You can’t perform that action at this time.
0 commit comments