Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: the FastFloat dependency in Folly (close #236) #242

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions build_katran.sh
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,26 @@ get_gflags() {
touch "${DEPS_DIR}/gflags_installed"
}

get_fast_float() {
if [ -f "${DEPS_DIR}/fast_float_installed" ]; then
export FASTFLOAT_INCLUDE_DIR="$DEPS_DIR/fast_float/include"
return
fi

FAST_FLOAT_DIR=$DEPS_DIR/fast_float
rm -rf "$FAST_FLOAT_DIR"
pushd .
echo -e "${COLOR_GREEN}[ INFO ] Cloning fast_float repo ${COLOR_OFF}"
git clone https://github.com/fastfloat/fast_float --depth 1 "$FAST_FLOAT_DIR"

echo -e "${COLOR_GREEN}Fast_float is set up. Include directory: ${FASTFLOAT_INCLUDE_DIR} ${COLOR_OFF}"
popd
touch "${DEPS_DIR}/fast_float_installed"

# Set the include directory
export FASTFLOAT_INCLUDE_DIR="$FAST_FLOAT_DIR/include"
}

get_folly() {
if [ -f "${DEPS_DIR}/folly_installed" ]; then
return
Expand Down Expand Up @@ -271,6 +291,7 @@ get_folly() {
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_PREFIX_PATH="$INSTALL_DIR" \
-DCMAKE_INSTALL_PREFIX="$INSTALL_DIR" \
-DFASTFLOAT_INCLUDE_DIR="$FASTFLOAT_INCLUDE_DIR" \
..
make -j "$NCPUS"
make install
Expand Down Expand Up @@ -623,6 +644,7 @@ get_dev_tools
get_required_libs
get_libevent
get_gflags
get_fast_float
get_folly
get_clang
get_gtest
Expand Down
Loading