[Lldb-commits] [lldb] [lldb][ClangExpressionParser] Set BuiltinHeadersInSystemModules depending on SDK version (PR #101778)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 5 10:11:22 PDT 2024


================
@@ -561,7 +562,85 @@ static void SetupLangOpts(CompilerInstance &compiler,
   lang_opts.NoBuiltin = true;
 }
 
-static void SetupImportStdModuleLangOpts(CompilerInstance &compiler) {
+// NOTE: should be kept in sync with sdkSupportsBuiltinModules in
+// Toolchains/Darwin.cpp
+static bool
+sdkSupportsBuiltinModulesImpl(const llvm::Triple &triple,
----------------
adrian-prantl wrote:

Can you move this into `XcodeSDK.h`?

https://github.com/llvm/llvm-project/pull/101778


More information about the lldb-commits mailing list