Backend and Frontend.
After this command executes succefully, the generated binary will be in output directory.
build FE/BE separately
You don’t need to build both FE and BE each time, you can build them separately. For example, you can only build BE byHow to run unit test
Unit tests of BE and FE are separted. In general, you can run BE test byHow to run BE UT in command line
Now, BE UT needs some dependency to run, and./run-be-ut.sh helps it. But it is not flexible enough. When you want to run UT in the command-line, you can execute
Build options
build with clang
You can build StarRocks byclang too
build with different linker
The default linker is slow, developer can specify different linker to speed up linking. For example, you can uselld, the LLVM-based linker.
You need to install lld firstly.
build different type
You can build StarRocks with different types with different BUILD_TYPE variable, the default BUILD_TYPE isRELEASE. For example, you can build StarRocks with ASAN type by