Skip to content

clang: Expose -mcpu flag #11

Description

@arthurfabre

By default clang uses -mcpu=probe, which attempts to probe the current kernel to detect what eBPF features it can use / will be accepted by the kernel verifier.

It can also explicitly be set to v1, v2 or v3. Expose this (or maybe a generic means of passing flags to clang) to allow users to set this. It's useful for those that compile eBPF on one machine, and run it on another.

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