Skip to content

Build unconditionally uses -march=native #26

Description

@spth

As stated in the README, the default build instructions "Build and test all Ascon C targets using release flags (-O2 -fomit-frame-pointer -march=native -mtune=native)".
This can result in the build failing: -march=native is not supported by all GCC targets, some use -mcpu=native instead. While it has been supported for amd64 for a long time, it e.g. only recently was introduced for aarch64 (in 2022 as an alias for -mcpu=native), and is not supported for powerpc64.
IMO, it would be better, if the build infrastructure uses flags suitable for the target architecture (e.g. -march=native for amd64, -mcpu=native for aarch64 and powerpc64).

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