There can be multiple includes, so the opt should be a list

This commit is contained in:
Ivan Radanov Ivanov 2021-11-12 23:20:21 +09:00 committed by William Moses
parent 4614993e38
commit cf0ba1ce69
2 changed files with 0 additions and 11 deletions

View File

@ -5723,14 +5723,6 @@ static bool parseMLIR(const char *Argv0, std::vector<std::string> filenames,
chars[a.length()] = 0;
Argv.push_back(chars);
}
if (Include != "") {
auto a = "" + Include;
char *chars = (char *)malloc(a.length() + 1);
memcpy(chars, a.data(), a.length());
chars[a.length()] = 0;
Argv.push_back("-include");
Argv.push_back(chars);
}
if (MArch != "") {
auto a = "-march=" + MArch;
char *chars = (char *)malloc(a.length() + 1);

View File

@ -92,9 +92,6 @@ static cl::opt<std::string> Standard("std", cl::init(""),
static cl::opt<std::string> CUDAGPUArch("cuda-gpu-arch", cl::init(""),
cl::desc("CUDA GPU arch"));
static cl::opt<std::string> Include("include", cl::init(""),
cl::desc("Include a file at the top of the source"));
static cl::opt<std::string> CUDAPath("cuda-path", cl::init(""),
cl::desc("CUDA Path"));