File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -872,8 +872,14 @@ endif()
872872
873873# When we have the early SwiftSyntax build, we can include its parser.
874874if (SWIFT_PATH_TO_EARLYSWIFTSYNTAX_BUILD_DIR)
875- set (SWIFT_SWIFT_PARSER TRUE )
876- include (${SWIFT_PATH_TO_EARLYSWIFTSYNTAX_BUILD_DIR} /cmake/SwiftSyntaxTargets.cmake)
875+ set (SWIFT_PATH_TO_EARLYSWIFTSYNTAX_TARGETS
876+ ${SWIFT_PATH_TO_EARLYSWIFTSYNTAX_BUILD_DIR} /cmake/SwiftSyntaxTargets.cmake)
877+ if (NOT EXISTS "${SWIFT_PATH_TO_EARLYSWIFTSYNTAX_TARGETS} " )
878+ message (STATUS "Skipping Swift Swift parser integration due to missing early SwiftSyntax" )
879+ else ()
880+ set (SWIFT_SWIFT_PARSER TRUE )
881+ include (${SWIFT_PATH_TO_EARLYSWIFTSYNTAX_TARGETS} )
882+ endif ()
877883endif ()
878884
879885
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ function(add_swift_unittest test_dirname)
8181
8282 if (SWIFT_SWIFT_PARSER)
8383 _add_swift_runtime_link_flags(${test_dirname} "../../lib" "" )
84+ set_property (TARGET ${test_dirname} PROPERTY BUILD_WITH_INSTALL_RPATH OFF )
8485 endif ()
8586endfunction ()
8687
You can’t perform that action at this time.
0 commit comments