Skip to content

Commit 8faffaa

Browse files
committed
Disable target mismatch check when precise compiler invocations are on (NFCish)
Precise compiler invocations already create a scratch context per module, so this fallback path doesn't add much there. rdar://109227800 (cherry picked from commit fbc7f32)
1 parent 490421d commit 8faffaa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lldb/source/Target/Target.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2929,7 +2929,9 @@ std::optional<SwiftScratchContextReader> Target::GetSwiftScratchContext(
29292929
}
29302930

29312931
// Opt into the per-module scratch context if we find incompatible triples.
2932-
if (!m_use_scratch_typesystem_per_module) {
2932+
if (!m_use_scratch_typesystem_per_module &&
2933+
!ModuleList::GetGlobalModuleListProperties()
2934+
.GetUseSwiftPreciseCompilerInvocation()) {
29332935
TargetSP target_sp = exe_scope.CalculateTarget();
29342936
if (lldb_module) {
29352937
auto module_arch = lldb_module->GetArchitecture();

0 commit comments

Comments
 (0)