Skip to content

Commit b89c37f

Browse files
author
Todd Fiala
committed
fix SR-1109: don't use the clang resource override dir for glibc
1 parent 622f49c commit b89c37f

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)