Skip to content

Commit 4dac19f

Browse files
authored
Merge branch 'main' into fix-ctags-target
2 parents 43b528e + 4c8bf61 commit 4dac19f

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

BUILD.bazel

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ cc_library(
7171
"@boost.format",
7272
"@boost.multi_index",
7373
"@boost.multiprecision",
74-
"@googletest//:gtest",
74+
"@googletest//:gtest_prod",
7575
"@protobuf",
7676
],
7777
)
@@ -315,7 +315,7 @@ cc_binary(
315315
"backends/bmv2/simple_switch/main.cpp",
316316
"backends/bmv2/simple_switch/version.h",
317317
],
318-
data = [":p4include"],
318+
data = ["//p4include"],
319319
deps = [
320320
":ir_frontend_midend_control_plane",
321321
":lib",
@@ -387,7 +387,7 @@ cc_binary(
387387
"backends/dpdk/main.cpp",
388388
"backends/dpdk/version.h",
389389
],
390-
data = [":p4include"],
390+
data = ["//p4include"],
391391
deps = [
392392
":ir_frontend_midend_control_plane",
393393
":lib",
@@ -437,7 +437,7 @@ cc_binary(
437437
srcs = [
438438
"backends/graphs/p4c-graphs.cpp",
439439
],
440-
data = [":p4include"],
440+
data = ["//p4include"],
441441
deps = [
442442
":config_h",
443443
":ir_frontend_midend_control_plane",

backends/bmv2/common/options.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ limitations under the License.
2020
#include <getopt.h>
2121

2222
#include "frontends/common/options.h"
23+
#include "lib/options.h"
2324

2425
namespace P4::BMV2 {
2526

bazel/p4_library.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ p4_library = rule(
169169
cfg = "exec",
170170
),
171171
"_p4include": attr.label(
172-
default = Label("//:p4include"),
172+
default = Label("//p4include"),
173173
allow_files = [".p4", ".h"],
174174
),
175175
},
@@ -248,7 +248,7 @@ p4_graphs = rule(
248248
cfg = "exec",
249249
),
250250
"_p4include": attr.label(
251-
default = Label("//:p4include"),
251+
default = Label("//p4include"),
252252
allow_files = [".p4", ".h"],
253253
),
254254
},

frontends/p4/metrics/metricsStructure.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Structure definitions used by the code metric collection passes.
66
#define FRONTENDS_P4_METRICS_METRICSSTRUCTURE_H_
77

88
#include <string>
9+
#include <vector>
910

1011
#include "lib/cstring.h"
1112
#include "lib/ordered_map.h"

lib/exename.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ limitations under the License.
1717
#include "exename.h"
1818

1919
#include <array>
20+
#include <climits>
2021
#include <cstring>
2122
#include <filesystem>
2223
#include <system_error>
2324

24-
namespace P4 {
25-
26-
#include <climits>
2725
#ifdef __APPLE__
2826
#include <unistd.h>
2927

@@ -34,6 +32,8 @@ namespace P4 {
3432
#include <unistd.h>
3533
#endif
3634

35+
namespace P4 {
36+
3737
std::filesystem::path getExecutablePath() {
3838
#if defined(__APPLE__)
3939
std::array<char, PATH_MAX> buffer{};

0 commit comments

Comments
 (0)