Skip to content

Doesn't compile on Windows #818

Open

Description

@Wallby

An error for this line:

https://github.com/swiftwasm/JavaScriptKit/blob/main/Plugins/PackageToJS/Sources/PackageToJSPlugin.swift#L584

... about stderr not being defined. Which it isn't it seems.

#if canImport(Darwin)
@preconcurrency import var Darwin.stderr
#elseif canImport(Glibc)
@preconcurrency import var Glibc.stderr
#elseif canImport(Musl)
@preconcurrency import var Musl.stderr
#elseif canImport(Android)
@preconcurrency import var Android.stderr
#endif

Though PackageToJS.swift does mention Windows. So it seems it should be supported:

import WinSDK

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions