Skip to content

Commit 6c111c9

Browse files
committed
search for includes in share/p4c
Signed-off-by: Chris Dodd <[email protected]>
1 parent a6fdb43 commit 6c111c9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

frontends/common/parser_options.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,12 @@ std::vector<const char *> *ParserOptions::process(int argc, char *const argv[])
380380
this->exe_name = cstring(executablePath.stem().c_str());
381381

382382
searchForIncludePath(p4_14includePath,
383-
{"p4_14include"_cs, "../p4_14include"_cs, "../../p4_14include"_cs},
383+
{"p4_14include"_cs, "../p4_14include"_cs, "../../p4_14include"_cs,
384+
"../share/p4c/p4_14include"_cs},
384385
executablePath.c_str());
385-
searchForIncludePath(p4includePath, {"p4include"_cs, "../p4include"_cs, "../../p4include"_cs},
386+
searchForIncludePath(p4includePath,
387+
{"p4include"_cs, "../p4include"_cs, "../../p4include"_cs,
388+
"../share/p4c/p4include"_cs},
386389
executablePath.c_str());
387390

388391
auto *remainingOptions = Util::Options::process(argc, argv);

0 commit comments

Comments
 (0)