normalize path in -I flag

This commit is contained in:
Jacob Dufault 2017-04-05 18:12:29 -07:00
parent ce736c84e0
commit 2f61e1b4f4

View File

@ -42,7 +42,6 @@ std::vector<CompilationEntry> LoadFromDirectoryListing(const std::string& projec
static const char *kValueArgs[] = {
"--param",
"-G",
"-I",
"-MF",
"-MQ",
"-MT",
@ -165,6 +164,11 @@ std::vector<CompilationEntry> LoadCompilationEntriesFromDirectory(const std::str
}
if (StartsWith(arg, "-I")) {
std::string path = directory + "/" + arg.substr(2);
path = NormalizePath(path);
arg = "-I" + path;
}
entry.args.push_back(arg);