CalvinNeo / tics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TiFlash

Building TiFlash

Prerequisites

  • CMake 3.13.2+

Setup Compiler

  • (macOS) Apple Clang 12.0.0
  • (CentOS) GCC 7.3.0

Install gRPC Systemwise(skip if already have protoc 3.8.x and gRPC 1.26.0 installed)

You'd better remove any other protoc installation except 3.8.x to get a clean build.

You should use exact gRPC 1.26.0. Refer to gRPC document or our test settings example for how to do it.

Checkout Source Code

# WORKSPACE
$ git clone --recursive https://github.com/pingcap/tics.git

Build tiflash-proxy

# WORKSPACE/tics
$ pushd contrib/tiflash-proxy
$ make release
$ popd
$ mkdir -p libs/libtiflash-proxy 
$ cp contrib/tiflash-proxy/target/release/libtiflash_proxy* libs/libtiflash-proxy

Build TiFlash

# WORKSPACE/tics
$ rm -rf build
$ mkdir -p build
$ pushd build
$ cmake .. -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=1 # default build type: RELWITHDEBINFO
$ make tiflash
$ popd

Now you will get TiFlash binary under WORKSPACE/tics/build/dbms/src/Server/tiflash.

About

License:Other


Languages

Language:C++ 95.6%Language:Python 1.5%Language:CMake 1.1%Language:C 0.9%Language:Shell 0.9%Language:Groovy 0.1%Language:Makefile 0.0%Language:Assembly 0.0%Language:Vim Script 0.0%Language:Dockerfile 0.0%