Skip to content

Commit ced6bd9

Browse files
committed
build: shuffle library order
ELF is sensitive to library ordering. Ensure that `swiftClangImporter` comes after `swiftAST` as `swiftAST` has grown a dependency on `swiftClangImporter`. Adding this properly using `target_link_libraries` will cause a cyclic dependency so add this reordering here.
1 parent 005f8ad commit ced6bd9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

unittests/Driver/CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ add_swift_unittest(SwiftDriverTests
55
UnitTestSourceFileDepGraphFactory.cpp
66
)
77

8-
target_link_libraries(SwiftDriverTests
9-
PRIVATE
10-
swiftDriver
11-
swiftClangImporter
8+
target_link_libraries(SwiftDriverTests PRIVATE
129
swiftAST
13-
)
10+
swiftClangImporter
11+
swiftDriver)

0 commit comments

Comments
 (0)