Skip to content

Commit

Permalink
Add include directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
fruffy committed Mar 8, 2024
1 parent 7590c3d commit c4cd948
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,12 @@ cc_library(
],
copts = [
# Where p4c should look for p4include at runtime.
("-DCONFIG_PKGDATADIR=\\\"external/%s\\\"" % repository_name()),
# This will work only if the binary is executed by Bazel. For a general
# solution, we would need to make p4c aware of Bazel, specifically:
# https://github.com/bazelbuild/bazel/blob/master/tools/cpp/runfiles/runfiles_src.h
("-DCONFIG_PKGDATADIR=\\\"external/%s\\\"" % repository_name()),
# Abseil does not export its includes, we add them manually.
"-Iexternal/com_google_absl",
],
textual_hdrs = glob([
"ir/**/*.h",
Expand Down

0 comments on commit c4cd948

Please sign in to comment.