#include "Util/ExtAPI.h"
#include "Util/SVFUtil.h"
#include "Util/Options.h"
#include "Util/config.h"
#include <ostream>
#include <sys/stat.h>
Go to the source code of this file.
◆ getFilePath()
Definition at line 97 of file ExtAPI.cpp.
100 if (path.compare(
"SVF_DIR") == 0)
102 char const* svfdir = getenv(
"SVF_DIR");
106 else if (path.compare(
"npm root") == 0)
109 bcFilePath.append(
"/SVF");
112 if (!bcFilePath.empty() && bcFilePath.back() !=
'/')
113 bcFilePath.push_back(
'/');
114 bcFilePath.append(SVF_BUILD_TYPE
"-build").append(
"/lib/extapi.bc");
static std::string GetStdoutFromCommand(const std::string &command)
◆ GetStdoutFromCommand()
Definition at line 73 of file ExtAPI.cpp.
78 FILE* pipe = popen(command.c_str(),
"r");
81 return "popen failed!";
92 result.erase(remove(result.begin(), result.end(),
'\n'), result.end());
char * fgets(char *str, int n, void *stream)