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 @@ -2981,13 +2981,21 @@ function(add_swift_target_executable name)
2981
2981
"-${SWIFT_SDK_${sdk} _LIB_SUBDIR}"
2982
2982
SWIFTEXE_TARGET_DEPENDS_with_suffix )
2983
2983
2984
+ # Note: we add ${swiftexe_link_libraries_targets} to the DEPENDS
2985
+ # below because when --bootstrapping=bootstrapping with
2986
+ # skip-early-swiftsyntax, the build system builds the Swift compiler
2987
+ # but not the standard library during the bootstrap, and then when
2988
+ # it tries to build swift-backtrace it fails because *the compiler*
2989
+ # refers to a libswiftCore.so that can't be found.
2990
+
2984
2991
_add_swift_target_executable_single (
2985
2992
${VARIANT_NAME}
2986
2993
${SWIFTEXE_TARGET_NOSWIFTRT_keyword}
2987
2994
${SWIFTEXE_TARGET_SOURCES}
2988
2995
DEPENDS
2989
2996
${SWIFTEXE_TARGET_DEPENDS_with_suffix}
2990
2997
${swiftexe_module_dependency_targets}
2998
+ ${swiftexe_link_libraries_targets}
2991
2999
SDK "${sdk} "
2992
3000
ARCHITECTURE "${arch} "
2993
3001
COMPILE_FLAGS
You can’t perform that action at this time.
0 commit comments