Skip to content

target-cpu shouldn't default to native when cross-compiling #374

Open
@kornelski

Description

The --mca option doesn't work on ARM due to assuming Intel asm syntax.

I've tried working around this by adding cross compilation --target=x86_64-apple-darwin, but this results in no output at all, except:

'apple-m3' is not a recognized processor for this target (ignoring processor)

I needed to add --target-cpu=skylake --mca-arg=-skip-unsupported-instructions=parse-failure to get it working.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions