summaryrefslogtreecommitdiff
path: root/src/buildtool/serve_api/remote/serve_api.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-06-14 10:23:41 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-06-18 12:05:10 +0200
commit26fdbae5f7269c06f95d3d087e657bb192b909d1 (patch)
tree37934b42e041106043cbf7eeee7617b63e00c367 /src/buildtool/serve_api/remote/serve_api.hpp
parentcd65196eec5d59498b239834c1069782879a1416 (diff)
downloadjustbuild-26fdbae5f7269c06f95d3d087e657bb192b909d1.tar.gz
Use ServeApi during bootstrap
...with a default implementation. Although it is not used directly, it will be needed for instantiation of std::optional.
Diffstat (limited to 'src/buildtool/serve_api/remote/serve_api.hpp')
-rw-r--r--src/buildtool/serve_api/remote/serve_api.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/buildtool/serve_api/remote/serve_api.hpp b/src/buildtool/serve_api/remote/serve_api.hpp
index a97b0bed..60de4d91 100644
--- a/src/buildtool/serve_api/remote/serve_api.hpp
+++ b/src/buildtool/serve_api/remote/serve_api.hpp
@@ -15,6 +15,10 @@
#ifndef INCLUDED_SRC_BUILDTOOL_SERVE_API_REMOTE_SERVE_API_HPP
#define INCLUDED_SRC_BUILDTOOL_SERVE_API_REMOTE_SERVE_API_HPP
+#ifdef BOOTSTRAP_BUILD_TOOL
+class ServeApi final {};
+#else
+
#include <memory>
#include <optional>
#include <string>
@@ -141,4 +145,6 @@ class ServeApi final {
ConfigurationClient const cc_;
};
+#endif // BOOTSTRAP_BUILD_TOOL
+
#endif // INCLUDED_SRC_BUILDTOOL_SERVE_API_REMOTE_SERVE_API_HPP