Skip to content

Commit

Permalink
Revert "3rd"
Browse files Browse the repository at this point in the history
This reverts commit 3f80573.
  • Loading branch information
acelyc111 committed Oct 10, 2023
1 parent 0da9243 commit 513a38d
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 39 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# specific language governing permissions and limitations
# under the License.

cmake_minimum_required(VERSION 3.11.0)
project(pegasus)
cmake_minimum_required(VERSION 3.11.0)

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
# require at least gcc 7.0.0
Expand Down
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function run_build()
fi

if [ "$(uname)" == "Darwin" ]; then
CMAKE_OPTIONS="${CMAKE_OPTIONS} -DMACOS_OPENSSL_ROOT_DIR=$(brew --prefix openssl@1.1)"
CMAKE_OPTIONS="${CMAKE_OPTIONS} -DMACOS_OPENSSL_ROOT_DIR=/usr/local/opt/openssl"
fi

if [ ! -z "${SANITIZER}" ]; then
Expand Down
4 changes: 0 additions & 4 deletions src/block_service/test/block_service_manager_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
// IWYU pragma: no_include <gtest/gtest-message.h>
// IWYU pragma: no_include <gtest/gtest-test-part.h>
#include <gtest/gtest.h>
#include <rocksdb/env.h>
#include <rocksdb/slice.h>
#include <rocksdb/status.h>
#include <cstdint>
#include <map>
#include <memory>
Expand All @@ -33,7 +30,6 @@
#include "block_service_mock.h"
#include "metadata_types.h"
#include "test_util/test_util.h"
#include "utils/env.h"
#include "utils/error_code.h"
#include "utils/filesystem.h"
#include "utils/test_macros.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
#include "utils/filesystem.h"
#include "utils/flags.h"
#include "utils/fmt_logging.h"
#include "utils/ports.h"

#define BOOST_NO_CXX11_SCOPED_ENUMS
#include <boost/filesystem/operations.hpp>
Expand Down
7 changes: 0 additions & 7 deletions src/replica/replica_http_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@ class replica_http_service : public http_server_base
deregister_http_call("replica/manual_compaction");
}

~replica_http_service()
{
deregister_http_call("replica/duplication");
deregister_http_call("replica/data_version");
deregister_http_call("replica/manual_compaction");
}

std::string path() const override { return "replica"; }

void query_duplication_handler(const http_request &req, http_response &resp);
Expand Down
1 change: 0 additions & 1 deletion src/replica/test/mutation_log_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

#include "replica/mutation_log.h"

#include <fcntl.h>
// IWYU pragma: no_include <ext/alloc_traits.h>
// IWYU pragma: no_include <gtest/gtest-message.h>
// IWYU pragma: no_include <gtest/gtest-param-test.h>
Expand Down
1 change: 1 addition & 0 deletions src/utils/alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#pragma once

#include <algorithm>
#include <cstddef>
#include <functional>
#include <memory>
Expand Down
33 changes: 9 additions & 24 deletions thirdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# under the License.
##############################################################################

cmake_minimum_required(VERSION 3.11.0)
project(pegasus_thirdparties)
cmake_minimum_required(VERSION 3.11.0)

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
# require at least gcc 7.0.0
Expand All @@ -33,11 +33,6 @@ if (APPLE)
endif()
endif()

# Avoid warning about DOWNLOAD_EXTRACT_TIMESTAMP in CMake 3.24:
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
cmake_policy(SET CMP0135 NEW)
endif()

include(ExternalProject)
include(CheckCXXCompilerFlag)

Expand Down Expand Up @@ -336,30 +331,20 @@ ExternalProject_Add(nlohmann_json
BUILD_IN_SOURCE 1
)

ExternalProject_Add(abseil
URL https://github.com/abseil/abseil-cpp/archive/refs/tags/20230802.1.tar.gz
URL_MD5 84665b6daa5dda7c9082b1a00057457a
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${TP_OUTPUT}
-DCMAKE_CXX_STANDARD=17
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
DEPENDS googletest
)

# TODO(yingchun): check necessary of 'PATCH_COMMAND patch -p0 < ${TP_DIR}/fix_s2_for_aarch64.patch'
ExternalProject_Add(s2geometry
URL https://github.com/google/s2geometry/archive/refs/tags/v0.10.0.tar.gz
URL_MD5 c68f3c5d326dde9255681b9201393a9f
DEPENDS abseil
URL ${OSS_URL_PREFIX}/s2geometry-e8d16637a467d9f096a92a6d81a50a9b747ca828.zip
https://github.com/neverchanje/s2geometry/archive/e8d16637a467d9f096a92a6d81a50a9b747ca828.zip
URL_MD5 75cc44c9c31382083d8a2d0e42590788
PATCH_COMMAND patch -p0 < ${TP_DIR}/fix_s2_for_aarch64.patch
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${TP_OUTPUT}
-DWITH_GFLAGS=OFF
-DWITH_GLOG=OFF
-DGTEST_ROOT=${googletest_SRC}/googletest
-DBUILD_SHARED_LIBS=OFF
-DBUILD_PYTHON=OFF
-DBUILD_TESTING=OFF
-DBUILD_EXAMPLES=OFF
-DWITH_PYTHON=OFF
-DCMAKE_CXX_STANDARD=17
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
DEPENDS googletest
)

option(USE_JEMALLOC "use jemalloc" OFF)
Expand Down

0 comments on commit 513a38d

Please sign in to comment.