Skip to content

Commit 0faa092

Browse files
Add a rust-toolchain.toml for the rule-preprocessor (#288)
As this crate requires the `rustc-dev` component, which is not bundled by default, we need to add it explicitly. Now, a user can just do `cargo build` on this crate.
1 parent c892f64 commit 0faa092

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ add_custom_command(
6060
OUTPUT "${RUST_STAMP_FILE}"
6161
COMMAND rustup toolchain install ${RUST_STABLE_VERSION} --component clippy --component rustfmt
6262
COMMAND rustup toolchain install ${RUST_NIGHTLY_VERSION} --component rustc-dev --component llvm-tools --component clippy --component rustfmt
63+
COMMAND rustup override set ${RUST_NIGHTLY_VERSION} --path ${PROJECT_SOURCE_DIR}/rule-preprocessor
6364
COMMAND ${CMAKE_COMMAND} -E touch "${RUST_STAMP_FILE}"
6465
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/cmake/rust-toolchain.cmake"
6566
USES_TERMINAL

0 commit comments

Comments
 (0)