Skip to content

Commit aa1fc7c

Browse files
committed
bug-fix : Check for clang build dependency when building ebpf
Signed-off-by: Abhishek Jha [email protected]>
1 parent df1bf13 commit aa1fc7c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,15 @@ endif()
11021102
if (FLB_IN_EBPF)
11031103
find_package(PkgConfig)
11041104

1105+
# Check for Clang compiler
1106+
find_program(CLANG_EXECUTABLE clang)
1107+
1108+
if (CLANG_EXECUTABLE)
1109+
message(STATUS "Clang found: ${CLANG_EXECUTABLE}")
1110+
else()
1111+
message(FATAL_ERROR "Clang not found! Please install Clang.")
1112+
endif()
1113+
11051114
# Check for libbpf with pkg-config
11061115
pkg_check_modules(LIBBPF libbpf>=0.5.0)
11071116

0 commit comments

Comments
 (0)