Skip to content

Commit

Permalink
Allow building testgen without P4TEST enabled (p4lang#4078)
Browse files Browse the repository at this point in the history
  • Loading branch information
vlstill authored Jul 21, 2023
1 parent b6ad725 commit 284c924
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

#include <boost/multiprecision/cpp_int.hpp>

#include "backends/p4test/version.h"
#include "backends/p4tools/common/compiler/midend.h"
#include "backends/p4tools/common/lib/variables.h"
#include "frontends/common/options.h"
Expand Down Expand Up @@ -55,7 +54,6 @@ Restrictions loadExample(const char *curFile, bool flag) {
std::string includeDir = std::string(buildPath) + std::string("p4include");
auto *originalEnv = getenv("P4C_16_INCLUDE_PATH");
setenv("P4C_16_INCLUDE_PATH", includeDir.c_str(), 1);
options.compilerVersion = P4TEST_VERSION_STRING;
const IR::P4Program *program = nullptr;
options.file = sourcePath;
options.file += curFile;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <fstream>
#include <functional>

#include "backends/p4test/version.h"
#include "backends/p4tools/common/compiler/midend.h"
#include "frontends/common/options.h"
#include "frontends/common/parseInput.h"
Expand Down Expand Up @@ -61,7 +60,6 @@ ReturnedInfo loadExampleForReachability(const char *curFile) {
std::string includeDir = std::string(buildPath) + std::string("p4include");
auto *originalEnv = getenv("P4C_16_INCLUDE_PATH");
setenv("P4C_16_INCLUDE_PATH", includeDir.c_str(), 1);
options.compilerVersion = P4TEST_VERSION_STRING;
const IR::P4Program *program = nullptr;
options.file = sourcePath;
options.file += curFile;
Expand Down

0 comments on commit 284c924

Please sign in to comment.