This is an automated email from the ASF dual-hosted git repository.
twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new 145a0119 chore(cmake): add c to language list of `project()` (#2738)
145a0119 is described below
commit 145a011939dfc6430e7c6f9f2d9f3299e03bffaf
Author: Twice <[email protected]>
AuthorDate: Sun Jan 26 14:27:59 2025 +0800
chore(cmake): add c to language list of `project()` (#2738)
---
.github/workflows/kvrocks.yaml | 6 ++++--
CMakeLists.txt | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/kvrocks.yaml b/.github/workflows/kvrocks.yaml
index f7bfcc00..ce1fd6ab 100644
--- a/.github/workflows/kvrocks.yaml
+++ b/.github/workflows/kvrocks.yaml
@@ -467,8 +467,9 @@ jobs:
run: |
dnf install -y epel-release
dnf config-manager --set-enabled powertools
- dnf install -y git gcc-toolset-12 autoconf automake libtool
libstdc++-static python3 python3-pip openssl-devel which cmake
+ dnf install -y git gcc-toolset-12 autoconf automake libtool python3
python3-pip openssl-devel which cmake
source /opt/rh/gcc-toolset-12/enable
+ update-alternatives --install /usr/bin/gcc gcc
/opt/rh/gcc-toolset-12/root/usr/bin/gcc 100
update-alternatives --install /usr/bin/g++ g++
/opt/rh/gcc-toolset-12/root/usr/bin/g++ 100
update-alternatives --install /usr/bin/cc cc
/opt/rh/gcc-toolset-12/root/usr/bin/gcc 100
update-alternatives --install /usr/bin/c++ c++
/opt/rh/gcc-toolset-12/root/usr/bin/g++ 100
@@ -479,8 +480,9 @@ jobs:
run: |
dnf install -y epel-release
dnf config-manager --set-enabled crb
- dnf install -y git gcc-toolset-12 autoconf automake libtool
libstdc++-static python3 python3-pip openssl-devel which cmake
+ dnf install -y git gcc-toolset-12 autoconf automake libtool python3
python3-pip openssl-devel which cmake
source /opt/rh/gcc-toolset-12/enable
+ update-alternatives --install /usr/bin/gcc gcc
/opt/rh/gcc-toolset-12/root/usr/bin/gcc 100
update-alternatives --install /usr/bin/g++ g++
/opt/rh/gcc-toolset-12/root/usr/bin/g++ 100
update-alternatives --install /usr/bin/cc cc
/opt/rh/gcc-toolset-12/root/usr/bin/gcc 100
update-alternatives --install /usr/bin/c++ c++
/opt/rh/gcc-toolset-12/root/usr/bin/g++ 100
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5f4f518d..bc415371 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,7 +18,7 @@
cmake_minimum_required(VERSION 3.16)
project(kvrocks
DESCRIPTION "NoSQL which is based on RocksDB and compatible with the
Redis protocol"
- LANGUAGES CXX)
+ LANGUAGES C CXX)
option(DISABLE_JEMALLOC "disable use of the jemalloc library" OFF)
option(ENABLE_ASAN "enable address sanitizer" OFF)