// Add the clang headers, which are relative to the clang binary.
void AddClangIncludePaths(const char *Argv0, InitHeaderSearch *Init) {
- if (nostdclanginc)
- return;
-
llvm::sys::Path MainExecutablePath =
llvm::sys::Path::GetMainExecutable(Argv0,
(void*)(intptr_t)AddClangIncludePaths);
Init.AddDefaultEnvVarPaths(Lang);
- AddClangIncludePaths(Argv0, &Init);
+ if (!nostdclanginc)
+ AddClangIncludePaths(Argv0, &Init);
if (!nostdinc)
Init.AddDefaultSystemIncludePaths(Lang, triple);