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()
872
872
873
873
# When we have the early SwiftSyntax build, we can include its parser.
874
874
if (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 ()
877
883
endif ()
878
884
879
885
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ function(add_swift_unittest test_dirname)
81
81
82
82
if (SWIFT_SWIFT_PARSER )
83
83
_add_swift_runtime_link_flags (${test_dirname} "../../lib" "" )
84
+ set_property (TARGET ${test_dirname} PROPERTY BUILD_WITH_INSTALL_RPATH OFF )
84
85
endif ()
85
86
endfunction ()
86
87
You can’t perform that action at this time.
0 commit comments