Skip to content

Commit

Permalink
packaging: Detect centos/6 or centos/7 to turn off simdutf stuffs
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Oct 28, 2024
1 parent 36537a4 commit 34c3cf6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packaging/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,18 @@ fi
CMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX:-/opt/fluent-bit/}
# This is required to ensure we set the defaults to off for 1.9 builds
FLB_TD=${FLB_TD:-Off}
# This is provided for simplifying the build pipeline
FLB_UNICODE_ENCODER=${FLB_UNICODE_ENCODER:-On}

if [ "${FLB_DISTRO}" = "centos/6" ] || [ "${FLB_DISTRO}" = "centos/7" ]; then
FLB_UNICODE_ENCODER=Off
fi

echo "IMAGE_CONTEXT_DIR => $IMAGE_CONTEXT_DIR"
echo "CMAKE_INSTALL_PREFIX => $CMAKE_INSTALL_PREFIX"
echo "FLB_NIGHTLY_BUILD => $FLB_NIGHTLY_BUILD"
echo "FLB_JEMALLOC => $FLB_JEMALLOC"
echo "FLB_UNICODE_ENCODER => $FLB_UNICODE_ENCODER"

if [ "${DOCKER}" = "docker" ]; then
export DOCKER_BUILDKIT=1
Expand All @@ -90,6 +97,7 @@ if ! ${DOCKER} build \
--build-arg FLB_NIGHTLY_BUILD="$FLB_NIGHTLY_BUILD" \
--build-arg FLB_JEMALLOC="$FLB_JEMALLOC" \
--build-arg FLB_TD="$FLB_TD" \
--build-arg FLB_UNICODE_ENCODER="$FLB_UNICODE_ENCODER" \
$FLB_ARG \
-t "$MAIN_IMAGE" \
-f "$IMAGE_CONTEXT_DIR/Dockerfile" \
Expand Down

0 comments on commit 34c3cf6

Please sign in to comment.