Skip to content

Commit

Permalink
Resolve a fixme
Browse files Browse the repository at this point in the history
  • Loading branch information
asl committed Jun 18, 2024
1 parent c53b0ce commit 97e4ca7
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ ConstraintsVector loadExample(const char *curFile, bool flag) {
setenv("P4C_16_INCLUDE_PATH", includeDir.c_str(), 1);
const IR::P4Program *program = nullptr;
options.file = std::filesystem::path(sourcePath) / curFile;
if (access(options.file.c_str(), 0) != 0) {
// Subpath for bf-p4c-compilers.
// FIXME: what is the logic behind here?
options.file = std::filesystem::path(sourcePath) / curFile;
}
program = P4::parseP4File(options);
if (originalEnv == nullptr) {
unsetenv("P4C_16_INCLUDE_PATH");
Expand Down

0 comments on commit 97e4ca7

Please sign in to comment.