-
Notifications
You must be signed in to change notification settings - Fork 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
move CLinuxHelpers in Linux target #232
base: master
Are you sure you want to change the base?
Conversation
Package.swift
Outdated
@@ -18,6 +18,29 @@ | |||
|
|||
import PackageDescription | |||
|
|||
#if os(Linux) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change will break cross-compilation. Generally in Package.swift
files there should be no #if os(...)
/#if arch(...)
etc. I think the right change would be to make CLinuxHelpers
compile on all OSes by using #if __linux
etc in the .c/.h files similar to what SwiftNIO does for its CNIOLinux
module: https://github.com/apple/swift-nio/tree/master/Sources/CNIOLinux
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you are right)
I rollback changes
@djones6 can you update snapshot in this repo? |
I am using Kitura-NIO on iOS, and it no need to use CLinuxHelpers on Mac or iOS