Skip to content

move CLinuxHelpers in Linux target#232

Open
makleso6 wants to merge 8 commits into
Kitura:masterfrom
SugarAndCandy:CLinuxHelpers
Open

move CLinuxHelpers in Linux target#232
makleso6 wants to merge 8 commits into
Kitura:masterfrom
SugarAndCandy:CLinuxHelpers

Conversation

@makleso6

Copy link
Copy Markdown

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

Comment thread Package.swift Outdated

import PackageDescription

#if os(Linux)

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
Author

@djones6 can you update snapshot in this repo?

@CLAassistant

CLAassistant commented Sep 27, 2020

Copy link
Copy Markdown

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