diff --git a/CMakeLists.txt b/CMakeLists.txt index 107e38cf2f..44940dd58d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -234,6 +234,9 @@ generate_scylla_version() option(Scylla_USE_PRECOMPILED_HEADER "Use precompiled header for Scylla" ON) add_library(scylla-precompiled-header STATIC exported_templates.cc) +target_include_directories(scylla-precompiled-header PRIVATE + "${CMAKE_CURRENT_SOURCE_DIR}" + "${scylla_gen_build_dir}") target_link_libraries(scylla-precompiled-header PRIVATE absl::headers absl::btree diff --git a/stdafx.hh b/stdafx.hh index 93cfd012d2..8101a6a7c3 100644 --- a/stdafx.hh +++ b/stdafx.hh @@ -400,4 +400,27 @@ #define ZSTD_STATIC_LINKING_ONLY #include +// Scylla internal headers included by most translation units +#include "bytes.hh" +#include "db/timeout_clock.hh" +#include "db_clock.hh" +#include "dht/token.hh" +#include "gc_clock.hh" +#include "gms/inet_address.hh" +#include "keys/keys.hh" +#include "locator/host_id.hh" +#include "locator/token_metadata_fwd.hh" +#include "locator/types.hh" +#include "mutation/mutation_fragment.hh" +#include "mutation/mutation_partition.hh" +#include "schema/schema.hh" +#include "schema/schema_fwd.hh" +#include "seastarx.hh" +#include "types/types.hh" +#include "utils/chunked_vector.hh" +#include "utils/fragment_range.hh" +#include "utils/managed_bytes.hh" +#include "utils/tagged_integer.hh" +#include "utils/UUID.hh" + #endif diff --git a/utils/gcp/object_storage.cc b/utils/gcp/object_storage.cc index 3c2ede29a4..d3cbf813d1 100644 --- a/utils/gcp/object_storage.cc +++ b/utils/gcp/object_storage.cc @@ -335,7 +335,7 @@ utils::gcp::storage::client::impl::send_with_retry(const std::string& path, cons } catch (...) { // just disregard the failure, we will retry below in the wrapped handler } - auto wrapped_handler = [this, handler = std::move(handler), &req, scope](const reply& rep, input_stream& in) -> future<> { + auto wrapped_handler = [this, handler = std::move(handler), &req, scope](const reply& rep, seastar::input_stream& in) -> future<> { auto _in = std::move(in); auto status_class = reply::classify_status(rep._status); /*