Skip to content

Commit 8dd5e50

Browse files
committed
Build threading library
1 parent b95e3cb commit 8dd5e50

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Runtimes/Core/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ include_directories(include)
2525
add_subdirectory(LLVMSupport)
2626
add_subdirectory(SwiftShims/swift/shims)
2727
add_subdirectory(Demangling)
28+
add_subdirectory(Threading)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# TODO: I think we can build the one that actually matters based on the
2+
# platform we're building, rather than relying just on macro definitions
3+
# and linking empty objects.
4+
# https://github.com/swiftlang/swift/issues/77435
5+
add_library(swiftThreading OBJECT
6+
"${PROJECT_SOURCE_DIR}/../../lib/Threading/C11.cpp"
7+
"${PROJECT_SOURCE_DIR}/../../lib/Threading/Linux.cpp"
8+
"${PROJECT_SOURCE_DIR}/../../lib/Threading/Pthreads.cpp"
9+
"${PROJECT_SOURCE_DIR}/../../lib/Threading/Win32.cpp")
10+
target_link_libraries(swiftThreading PRIVATE swiftShims)

0 commit comments

Comments
 (0)