There can be multiple includes, so the opt should be a list
This commit is contained in:
parent
4614993e38
commit
cf0ba1ce69
|
@ -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);
|
||||
|
|
|
@ -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"));
|
||||
|
||||
|
|
Loading…
Reference in New Issue