Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang: Expose -mcpu flag #11

Open
arthurfabre opened this issue Apr 28, 2020 · 0 comments
Open

clang: Expose -mcpu flag #11

arthurfabre opened this issue Apr 28, 2020 · 0 comments

Comments

@arthurfabre
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant