Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

should be able to be cross-compiled #16

@weissi

Description

@weissi

It's very important to not use any #if os(...)/#if arch(...) etc in Package.swift files. The problem with that is that Package.swift is evaluated on the compiling machine for the compiling machine. For cross-compilation however, the compiling machine and the target machine do not match.

https://github.com/ianpartridge/swift-backtrace/blob/f244ad10744fc8e1b9f012682df94a27672c7033/Package.swift#L20-L26

Instead of doing it in Package.swift, CBacktrace/Backtrace should check in the .swift/.c files what platform they're on because that will automatically evaluate to what the target machine is.

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