Skip to content

Commit

Permalink
cmake: don't run cbindgen for build
Browse files Browse the repository at this point in the history
We vendor a `src/rustls.h` and prefer builds use this to avoid the need
for a nightly rust compiler.
  • Loading branch information
cpu committed Apr 19, 2024
1 parent 3dc23ef commit 376978a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ExternalProject_Add(
rustls-ffi
DOWNLOAD_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND cbindgen --lang C --output "${CMAKE_SOURCE_DIR}/src/rustls.h" "${CMAKE_SOURCE_DIR}"
BUILD_COMMAND ""
COMMAND cargo build --locked "$<IF:$<CONFIG:Release>,--release,-->"
# Rely on cargo checking timestamps, rather than tell CMake where every
# output is.
Expand Down

0 comments on commit 376978a

Please sign in to comment.