elastic / ebpf

Elastic's eBPF
Other
67 stars 11 forks source link

Cleanup CMake usage #114

Closed rhysre closed 2 years ago

rhysre commented 2 years ago

This commit cleans up the cmake in this repository, removing a lot of vestigial stuff from when this repo was just host isolation and putting it in a state where it can be more cleanly built with endpoint.

Changes:

Note that to get this PR building with endpoint, one LLVM intrinsic has been commented out as the endpoint toolchain is currently using LLVM 11, which doesn't support bpf_core_enum_value_exists (see comment). This has been done to get reviews in early and will be removed when the toolchain is updated to LLVM 14. This PR should not be merged until the toolchain is updated and the commented-out code has been removed.