File tree Expand file tree Collapse file tree 5 files changed +11
-9
lines changed
Expand file tree Collapse file tree 5 files changed +11
-9
lines changed Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff 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
2425namespace P4 ::BMV2 {
2526
Original file line number Diff line number Diff 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 },
Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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+
3737std::filesystem::path getExecutablePath () {
3838#if defined(__APPLE__)
3939 std::array<char , PATH_MAX> buffer{};
You can’t perform that action at this time.
0 commit comments