Skip to content

Conversation

@doozMen
Copy link
Contributor

@doozMen doozMen commented Oct 7, 2024

Followed instructions at https://www.swift.org/documentation/articles/static-linux-getting-started.html

This will make it possible to build static linux libs without dependency on swift

Copy link
Owner

@Zollerboy1 Zollerboy1 left a comment

Choose a reason for hiding this comment

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

Looks good to me overall. Please address these two minor issues.

Comment on lines +28 to +29
#elseif os(Windows)
let read = ucrt.read
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
#elseif os(Windows)
let read = ucrt.read

We are already in an #if !os(Windows) here.

Comment on lines +14 to +16
#elseif os(Windows)
import ucrt
#else
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
#elseif os(Windows)
import ucrt
#else
#elseif !os(Windows)

ucrt isn't used at all in this file.

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.

2 participants