Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Error while building library with Windows: "lld-link: error: subsystem must be defined" #310

Copy link
Copy link
Open
@cmcgee1024

Description

@cmcgee1024
Issue body actions

SwiftPM libraries are failing to build with the swiftbuild build system with this error when building on Windows x86.

Steps to reproduce:

  • Clone the latest SwiftPM on the main branch
  • Create a simple library package using the init function:
emptydir=$(mktemp -d)
(cd "$emptydir"; swift package init --type=library)
  • Build the project with the swiftbuild build system
swift run swift-build --package-path="$emptydir" --build-system=swiftbuild

Expected Result:
The package should build without error on Windows x86

Actual Result:
The package fails to build with the linker error: "lld-link: error: subsystem must be defined"

Metadata

Metadata

Assignees

No one assigned

    Labels

    windowsSupport for the Windows platformSupport for the Windows platform

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.