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

[SR-13817] Usage of .windows in package manifest results in a crash #4477

Closed
swift-ci opened this issue Nov 3, 2020 · 3 comments
Closed
Assignees
Labels

Comments

@swift-ci
Copy link
Contributor

swift-ci commented Nov 3, 2020

Previous ID SR-13817
Radar rdar://problem/70998649
Original Reporter broadway_lamb (JIRA User)
Type Bug
Status Closed
Resolution Cannot Reproduce

Attachment: Download

Environment

macOS 10.15.7

Xcode 12.1 toolchain

Additional Detail from JIRA
Votes 1
Component/s Package Manager
Labels Bug
Assignee @neonichu
Priority Medium

md5: 82de3c2ef7f1b4d5f37e42853abb0a59

Issue Description:

I have the following Package.swift:

// swift-tools-version:5.3

import PackageDescription

let package = Package(
    name: "spm-windows",
    products: [
        .library(name: "spm-windows", targets: ["spm-windows"]),
    ],
    targets: [
        .target(
            name: "spm-windows",
            swiftSettings: [.define("Windows", .when(platforms: [.windows]))]
        ),
        .testTarget(
            name: "spm-windowsTests",
            dependencies: ["spm-windows"]
        ),
    ]
)

When running swift build, I get this:

[1]    51267 illegal hardware instruction  swift build

See the attached archive.

@typesanitizer
Copy link

@swift-ci create

@neonichu
Copy link
Member

neonichu commented Nov 4, 2020

This should already be fixed by #2941 which should be part of Xcode 12.2

@neonichu
Copy link
Member

neonichu commented Nov 4, 2020

Marking as Cannot Reproduce since this doesn't reproduce anymore with the very latest SwiftPM, but it is indeed reproducible with 12.1 as reported.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants