summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/bazel_msg/bazel_common.hpp
blob: cc76541cf6c238abb912d833b48a1a51fb8de72a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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