File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,15 @@ if(${BOOTSTRAPPING_MODE} MATCHES "BOOTSTRAPPING.*")
14
14
)
15
15
target_link_libraries (swift-frontend-bootstrapping0
16
16
PRIVATE
17
- swiftCore
18
17
swiftDriverTool
19
18
swiftCompilerStub )
20
19
20
+ if (SWIFT_SWIFT_PARSER )
21
+ target_link_libraries (swift-frontend-bootstrapping0
22
+ PRIVATE
23
+ swiftCore )
24
+ endif ()
25
+
21
26
swift_create_post_build_symlink (swift-frontend-bootstrapping0
22
27
SOURCE "swift-frontend${CMAKE_EXECUTABLE_SUFFIX} "
23
28
DESTINATION "swiftc${CMAKE_EXECUTABLE_SUFFIX} "
@@ -34,10 +39,15 @@ if(${BOOTSTRAPPING_MODE} MATCHES "BOOTSTRAPPING.*")
34
39
)
35
40
target_link_libraries (swift-frontend-bootstrapping1
36
41
PRIVATE
37
- swiftCore
38
42
swiftDriverTool
39
43
swiftCompilerModules-bootstrapping1 )
40
44
45
+ if (SWIFT_SWIFT_PARSER )
46
+ target_link_libraries (swift-frontend-bootstrapping1
47
+ PRIVATE
48
+ swiftCore )
49
+ endif ()
50
+
41
51
swift_create_post_build_symlink (swift-frontend-bootstrapping1
42
52
SOURCE "swift-frontend${CMAKE_EXECUTABLE_SUFFIX} "
43
53
DESTINATION "swiftc${CMAKE_EXECUTABLE_SUFFIX} "
@@ -51,10 +61,15 @@ add_swift_host_tool(swift-frontend
51
61
)
52
62
target_link_libraries (swift-frontend
53
63
PUBLIC
54
- swiftCore
55
64
swiftDriverTool
56
65
swiftCompilerModules )
57
66
67
+ if (SWIFT_SWIFT_PARSER )
68
+ target_link_libraries (swift-frontend
69
+ PRIVATE
70
+ swiftCore )
71
+ endif ()
72
+
58
73
_add_swift_runtime_link_flags (swift-frontend "../../lib" "" )
59
74
60
75
# Create a `swift-driver` executable adjacent to the `swift-frontend` executable
You can’t perform that action at this time.
0 commit comments