Skip to content

Target x86-64-v2 to allow Hapi to run on older HW #213

@viblo

Description

@viblo

What feature would you like to see?

I have a home server, with a quite old CPU. Hapi cant start on it since it seems to be compiled with a too new CPU architecture as target.

The binary refuse to start with "Illegal instruction (core dumped)" on this machine.

I suspect it might be because Hapi targets x86-64-v3, but my server only supports x86-64-v2 (which basically is the various SSE versions but no AVX or later instructions).

Does it need to target these, or would it work equally good to target x86-64-v2?

I realize that it would make it somewhat less optimized for those with a more modern CPU, but I would have thought that Hapi wouldnt be very performance sensitive since much of the work is by OpenCode/Codex/Claude and ultimately the LLMs?

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions