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

gcc noclang take2 #28

Closed
wants to merge 2 commits into from
Closed

gcc noclang take2 #28

wants to merge 2 commits into from

Conversation

vjardin
Copy link
Contributor

@vjardin vjardin commented Aug 1, 2024

Assuming the pull request #27 is merged, then this pull request enables the usage of gcc for the bpf modules.

This pull request is currently a placeholder as a WIP.

vjardin added 2 commits August 2, 2024 01:21
It is 2024, so we can assume that both gcc and clang can support bpf.
Moreover, we can assume that all clang from any descent Linux shall
support a bpf output. So let's remove some checks which are complex to share
for gcc and clang.
note: gcc does not support:
 -Wno-unknown-warning-option’
 -Wno-gnu-variable-sized-type-not-at-end’
 -Wno-compare-distinct-pointer-types’

usage:
  CLANG=gcc make
   or
  LLC=gcc make

Should you need to compile using llc:
  LLC=llc-18 make -j $(nproc)

WARNING: currently, the tests fail on my ARM64 CPU with gcc.
@vjardin vjardin marked this pull request as draft August 1, 2024 23:48
@acassen acassen closed this Aug 2, 2024
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

Successfully merging this pull request may close these issues.

2 participants