Skip to content

Commit

Permalink
Add env for using the bundled protoc for building tiflash-proxy (ping…
Browse files Browse the repository at this point in the history
  • Loading branch information
JaySon-Huang authored Mar 28, 2022
1 parent 759e416 commit 5af4530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/tiflash-proxy-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if(TIFLASH_LLVM_TOOLCHAIN AND USE_LIBCXX)
if(LINKER_NAME)
set(TIFLASH_RUSTFLAGS "-C link-arg=-fuse-ld=${LINKER_NAME} ${TIFLASH_RUSTFLAGS}")
endif()
set(TIFLASH_RUST_ENV CXXSTDLIB=c++ CMAKE=${CMAKE_COMMAND} CFLAGS=-w CXXFLAGS=-w RUSTFLAGS=${TIFLASH_RUSTFLAGS})
set(TIFLASH_RUST_ENV CXXSTDLIB=c++ CMAKE=${CMAKE_COMMAND} CFLAGS=-w CXXFLAGS=-w RUSTFLAGS=${TIFLASH_RUSTFLAGS} PROTOC=${Protobuf_PROTOC_EXECUTABLE} PROTOC_INCLUDE=${Protobuf_INCLUDE_DIR})
message(STATUS "enforce LLVM toolchain for rust: ${TIFLASH_RUST_ENV}")
endif()

Expand Down

0 comments on commit 5af4530

Please sign in to comment.