diff options
Diffstat (limited to 'src/buildtool/execution_api/bazel_msg/bazel_common.hpp')
-rw-r--r-- | src/buildtool/execution_api/bazel_msg/bazel_common.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/buildtool/execution_api/bazel_msg/bazel_common.hpp b/src/buildtool/execution_api/bazel_msg/bazel_common.hpp new file mode 100644 index 00000000..cc76541c --- /dev/null +++ b/src/buildtool/execution_api/bazel_msg/bazel_common.hpp @@ -0,0 +1,21 @@ +#ifndef INCLUDED_SRC_BUILDTOOL_EXECUTION_API_BAZEL_MSG_BAZEL_COMMON_HPP +#define INCLUDED_SRC_BUILDTOOL_EXECUTION_API_BAZEL_MSG_BAZEL_COMMON_HPP + +/// \file bazel_common.hpp +/// \brief Common types and functions required by Bazel API. + +#include <cstdint> + +#include "src/utils/cpp/type_safe_arithmetic.hpp" + +// Port +struct PortTag : type_safe_arithmetic_tag<std::uint16_t> {}; +using Port = type_safe_arithmetic<PortTag>; + +struct ExecutionConfiguration { + int execution_priority{}; + int results_cache_priority{}; + bool skip_cache_lookup{}; +}; + +#endif // INCLUDED_SRC_BUILDTOOL_EXECUTION_API_BAZEL_MSG_BAZEL_COMMON_HPP |