Skip to content
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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

makleso6
Copy link

I am using Kitura-NIO on iOS, and it no need to use CLinuxHelpers on Mac or iOS

Package.swift Outdated
@@ -18,6 +18,29 @@

import PackageDescription

#if os(Linux)
Copy link

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

Copy link
Author

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

@makleso6
Copy link
Author

@djones6 can you update snapshot in this repo?

@CLAassistant
Copy link

CLAassistant commented Sep 27, 2020

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants