Skip to content

Commit 583be3c

Browse files
Set a toolchain override for the rule-preprocessor crate
After installing the desired nightly toolchain we set the pinned nightly version, with the `rustc-dev` component as a directory override for the rule-preprocessor crate. Now, a user can just do `cargo build` on this crate.
1 parent fc5fe57 commit 583be3c

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)