Skip to content

Commit 74b235e

Browse files
authored
Merge pull request #78158 from compnerd/across-the-aisle
Runtimes: Threading requires "compiler" headers
2 parents ef3f285 + fae4ec1 commit 74b235e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Runtimes/Core/Threading/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ add_library(swiftThreading OBJECT
88
"${SwiftCore_SWIFTC_SOURCE_DIR}/lib/Threading/Pthreads.cpp"
99
"${SwiftCore_SWIFTC_SOURCE_DIR}/lib/Threading/Win32.cpp")
1010
target_link_libraries(swiftThreading PRIVATE swiftShims)
11+
12+
# FIXME: We should split out the parts that are needed by the runtime
13+
# to avoid pulling in headers from the compiler.
14+
target_include_directories(swiftThreading PRIVATE
15+
"${SwiftCore_SWIFTC_SOURCE_DIR}/include")

0 commit comments

Comments
 (0)