Skip to content

Commit 2ffb2e0

Browse files
cataphractclaude
andcommitted
Fix helper-rust cmake: also require rustc, not just cargo
Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
1 parent 123e7a1 commit 2ffb2e0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

appsec/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,11 @@ endif()
6161
if(DD_APPSEC_BUILD_HELPER)
6262
include ("cmake/helper.cmake")
6363
find_program(CARGO_EXECUTABLE cargo)
64-
if(CARGO_EXECUTABLE)
64+
find_program(RUSTC_EXECUTABLE rustc)
65+
if(CARGO_EXECUTABLE AND RUSTC_EXECUTABLE)
6566
include("cmake/helper_rust.cmake")
6667
else()
67-
message(STATUS "cargo not found; skipping helper-rust build")
68+
message(STATUS "cargo/rustc not found; skipping helper-rust build")
6869
endif()
6970
endif()
7071

0 commit comments

Comments
 (0)