summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2015-10-26 20:33:24 +0000
committerSean Callanan <scallanan@apple.com>2015-10-26 20:33:24 +0000
commitdf0ac7038f6487de1a0c9fb4c047b0c3b9fd66fc (patch)
tree2e2ab951fc75af89465a5b8c268ef2a95c7e9b0c /lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
parentf3ecfd3af4b0200cf8c928abf4f29e41e83d881a (diff)
downloadbcm5719-llvm-df0ac7038f6487de1a0c9fb4c047b0c3b9fd66fc.tar.gz
bcm5719-llvm-df0ac7038f6487de1a0c9fb4c047b0c3b9fd66fc.zip
Clang module compilation options need to be per-platform.
On UNIX (but not Darwin) the username needs to be respected when creating a temporary module directory, so that different users don't pollute each others' module caches. llvm-svn: 251340
Diffstat (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp')
-rw-r--r--lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
index 05d8a320a5a..083efdc8c89 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
@@ -641,18 +641,7 @@ ClangModulesDeclVendor::Create(Target &target)
compiler_invocation_arguments.push_back(ModuleImportBufferName);
// Add additional search paths with { "-I", path } or { "-F", path } here.
-
- {
- llvm::SmallString<128> DefaultModuleCache;
- const bool erased_on_reboot = false;
- llvm::sys::path::system_temp_directory(erased_on_reboot, DefaultModuleCache);
- llvm::sys::path::append(DefaultModuleCache, "org.llvm.clang");
- llvm::sys::path::append(DefaultModuleCache, "ModuleCache");
- std::string module_cache_argument("-fmodules-cache-path=");
- module_cache_argument.append(DefaultModuleCache.str().str());
- compiler_invocation_arguments.push_back(module_cache_argument);
- }
-
+
FileSpecList &module_search_paths = target.GetClangModuleSearchPaths();
for (size_t spi = 0, spe = module_search_paths.GetSize(); spi < spe; ++spi)
OpenPOWER on IntegriCloud