File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -911,6 +911,12 @@ function(add_swift_host_tool executable)
911
911
endif()
912
912
endif()
913
913
914
+ if(SWIFT_SWIFT_PARSER)
915
+ set_property(
916
+ TARGET ${executable}
917
+ APPEND PROPERTY INSTALL_RPATH " @executable_path/../lib ")
918
+ endif()
919
+
914
920
if(ASHT_THINLTO_LD64_ADD_FLTO_CODEGEN_ONLY)
915
921
string(CONCAT lto_codegen_only_link_options
916
922
" $< "
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ if (SWIFT_SWIFT_PARSER)
68
68
$< TARGET_OBJECTS:SwiftSyntax::SwiftCompilerSupport>
69
69
70
70
swiftAST
71
+ swift_CompilerPluginSupport
71
72
)
72
73
73
74
target_include_directories (swiftASTGen PUBLIC
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ list(APPEND LLVM_COMMON_DEPENDS swift-syntax-generated-headers)
17
17
list (APPEND LLVM_COMMON_DEPENDS swift-ast-generated-headers )
18
18
list (APPEND LLVM_COMMON_DEPENDS swift-parse-syntax-generated-headers )
19
19
20
+ add_subdirectory (CompilerPluginSupport )
20
21
add_subdirectory (APIDigester )
21
22
add_subdirectory (AST )
22
23
add_subdirectory (ASTGen )
@@ -57,4 +58,3 @@ add_subdirectory(SymbolGraphGen)
57
58
add_subdirectory (Syntax )
58
59
add_subdirectory (SyntaxParse )
59
60
add_subdirectory (Threading )
60
- add_subdirectory (CompilerPluginSupport )
Original file line number Diff line number Diff line change 6
6
function (add_swift_parser_link_libraries target )
7
7
if (SWIFT_SWIFT_PARSER )
8
8
target_link_libraries (${target}
9
- PRIVATE
10
- swift_CompilerPluginSupport swiftCore )
9
+ PRIVATE swiftCore )
11
10
endif ()
12
11
endfunction ()
13
12
@@ -68,11 +67,6 @@ target_link_libraries(swift-frontend
68
67
swiftCompilerModules )
69
68
70
69
add_swift_parser_link_libraries (swift-frontend )
71
- if (SWIFT_SWIFT_PARSER )
72
- set_property (
73
- TARGET swift-frontend
74
- APPEND PROPERTY INSTALL_RPATH "@executable_path/../lib" )
75
- endif ()
76
70
77
71
_add_swift_runtime_link_flags (swift-frontend "../../lib" "" )
78
72
You can’t perform that action at this time.
0 commit comments