Skip to content

Commit 42d97ed

Browse files
committed
Merge pull request #2279 from tfiala/SR-1109-fix
fix SR-1109: don't use the clang resource override dir for glibc
2 parents f450d09 + b89c37f commit 42d97ed

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -391,11 +391,7 @@ getNormalInvocationArguments(std::vector<std::string> &invocationArgStrs,
391391
// and is not included in the resource directory with the other implicit
392392
// module maps. It's at {freebsd|linux}/{arch}/glibc.modulemap.
393393
SmallString<128> GlibcModuleMapPath;
394-
if (!importerOpts.OverrideResourceDir.empty()) {
395-
GlibcModuleMapPath = importerOpts.OverrideResourceDir;
396-
} else if (!searchPathOpts.RuntimeResourcePath.empty()) {
397-
GlibcModuleMapPath = searchPathOpts.RuntimeResourcePath;
398-
}
394+
GlibcModuleMapPath = searchPathOpts.RuntimeResourcePath;
399395

400396
// Running without a resource directory is not a supported configuration.
401397
assert(!GlibcModuleMapPath.empty());

0 commit comments

Comments
 (0)