Skip to content

Commit 8e66096

Browse files
committed
Fix environment
1 parent 5ebbdaa commit 8e66096

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎CMakeLists.txt‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,11 @@ add_custom_target("index-cpp-rules" ALL DEPENDS ${CMAKE_BINARY_DIR}/rules_index/
309309
set(rust_rules_index_outputs ${CMAKE_BINARY_DIR}/rules_index/index_unsafe.json ${CMAKE_BINARY_DIR}/rules_index/index_refcount.json)
310310
add_custom_command(
311311
OUTPUT ${rust_rules_index_outputs}
312-
COMMAND ${PREPROCESSOR_BIN} --merge ${CMAKE_BINARY_DIR}/rules_index ${RULES_IR_DIR}
312+
COMMAND ${CARGO_ENV_RULE_PREPROCESSOR}
313+
RUSTUP_TOOLCHAIN=${RUST_NIGHTLY_VERSION}
314+
LD_LIBRARY_PATH=${NIGHTLY_SYSROOT}/lib
315+
DYLD_LIBRARY_PATH=${NIGHTLY_SYSROOT}/lib
316+
${PREPROCESSOR_BIN} --merge ${CMAKE_BINARY_DIR}/rules_index ${RULES_IR_DIR}
313317
DEPENDS ${rust_rules_ir_outputs} ${PREPROCESSOR_BIN}
314318
VERBATIM
315319
)

0 commit comments

Comments
 (0)