Skip to content

Commit 859b779

Browse files
committed
Speculatively try a different fix for LLVMCoverage linker issues.
We're still hitting undefined symbols on Linux. Hopefully this clears those up as well.
1 parent 50cf0db commit 859b779

File tree

12 files changed

+15
-11
lines changed

12 files changed

+15
-11
lines changed

lib/IRGen/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,6 @@ add_swift_library(swiftIRGen
4848
# FIXME: Clang should really export these in some reasonable manner.
4949
clangCodeGen
5050
clangAST
51+
52+
LLVMCoverage
5153
)

lib/Parse/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ add_swift_library(swiftParse
1212
Scope.cpp
1313
LINK_LIBRARIES
1414
swiftSIL
15-
swiftAST)
15+
swiftAST
16+
17+
LLVMCoverage
18+
)
1619

lib/SIL/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,8 @@ add_swift_library(swiftSIL
3333
TypeLowering.cpp
3434
LINK_LIBRARIES
3535
swiftSerialization
36-
swiftSema)
36+
swiftSema
37+
38+
LLVMCoverage
39+
)
3740

lib/SILGen/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,8 @@ add_swift_library(swiftSILGen
2626
SILGenProlog.cpp
2727
SILGenStmt.cpp
2828
SILGenType.cpp
29-
LINK_LIBRARIES swiftSIL)
29+
LINK_LIBRARIES
30+
swiftSIL
31+
32+
LLVMCoverage
33+
)

tools/driver/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ add_swift_executable(swift
44
autolink_extract_main.cpp
55
modulewrap_main.cpp
66
LINK_LIBRARIES
7-
LLVMCoverage
87
LLVMDebugInfoCodeView
98
swiftDriver
109
swiftFrontendTool

tools/lldb-moduleimport-test/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ add_swift_executable(lldb-moduleimport-test
22
lldb-moduleimport-test.cpp
33
LINK_LIBRARIES
44
swiftASTSectionImporter swiftFrontend swiftClangImporter
5-
LLVMCoverage
65
LLVMDebugInfoCodeView
76
)
87

tools/sil-extract/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ add_swift_executable(sil-extract
66
swiftSILOptimizer
77
swiftSerialization
88
swiftClangImporter
9-
LLVMCoverage
109
LLVMDebugInfoCodeView
1110
)
1211

tools/sil-opt/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ add_swift_executable(sil-opt
55
swiftIRGen
66
swiftSILGen
77
swiftSILOptimizer
8-
LLVMCoverage
98
LLVMDebugInfoCodeView
109
)
1110

tools/swift-ide-test/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ add_swift_executable(swift-ide-test
66
swiftDriver
77
swiftFrontend
88
swiftIDE
9-
LLVMCoverage
109
LLVMDebugInfoCodeView
1110
)
1211

tools/swift-llvm-opt/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ add_swift_executable(swift-llvm-opt
1111
clangBasic
1212
clangCodeGen
1313

14-
LLVMCoverage
1514
LLVMDebugInfoCodeView
1615
)
1716

tools/swift-remoteast-test/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ add_swift_executable(swift-remoteast-test
33
LINK_LIBRARIES
44
swiftFrontendTool
55
swiftRemoteAST
6-
LLVMCoverage
76
)
87

98
target_link_libraries(swift-remoteast-test edit)

unittests/Parse/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ target_link_libraries(SwiftParseTests
1010
swiftClangImporter
1111
swiftParse
1212
swiftAST
13-
LLVMCoverage
1413
)
1514

0 commit comments

Comments
 (0)