Skip to content

Add _Concurrency module. #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Sources/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ SPDX-License-Identifier: BSD-3
add_subdirectory(Runtime)
add_subdirectory(Core)
add_subdirectory(Onone)
add_subdirectory(_Concurrency)
19 changes: 19 additions & 0 deletions Sources/_Concurrency/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#[[
Copyright © 2018 Saleem Abdulrasool <[email protected]>.
All Rights Reserved.

SPDX-License-Identifier: BSD-3
#]]

add_library(swift_Concurrency
_Concurrency.swift)
set_target_properties(swift_Concurrency PROPERTIES
Swift_MODULE_NAME _Concurrency)
target_compile_options(swift_Concurrency PRIVATE
-parse-stdlib
-disallow-use-new-driver
"SHELL:-Xfrontend -enable-resilience")
target_link_libraries(swift_Concurrency PUBLIC
swiftCore)
target_link_options(swift_Concurrency PRIVATE
"SHELL:-Xclang-linker -nostdlib")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this is something that we should keep. We do want the dependency on other language runtimes once the code will be added.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't feel strongly, but it might be good future proofing. And it matches what we do everywhere else.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough, leaving this for now won't hurt anything.

Empty file.