Skip to content

Commit f10eac3

Browse files
committed
Address review comment to #1216
1 parent 387ce43 commit f10eac3

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

Sources/SKSupport/SwitchableProcessResultExitStatus.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
// We need to import all of TSCBasic because otherwise we can't refer to Process.ExitStatus (rdar://127577691)
1413
import struct TSCBasic.ProcessResult
1514

1615
/// Same as `ProcessResult.ExitStatus` in tools-support-core but has the same cases on all platforms and is thus easier

Sources/SemanticIndex/UpdateIndexStoreTaskDescription.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,6 @@ public struct UpdateIndexStoreTaskDescription: IndexTaskDescription {
133133
logger.error("Not indexing \(uri.forLogging) because it has no compiler arguments")
134134
return
135135
}
136-
guard !buildSettings.isFallback else {
137-
// Only index with real build settings. Indexing with fallback arguments could result in worse results than not
138-
// indexing at all: If a file has been indexed with real build settings before, had a tiny modification made but
139-
// we don't have any real build settings when it should get re-indexed. Then it's better to have the stale index
140-
// from correct compiler arguments than no index at all.
141-
logger.error("Not updating index store for \(uri.forLogging) because it has fallback compiler arguments")
142-
return
143-
}
144136
guard let toolchain = await buildSystemManager.toolchain(for: uri, language) else {
145137
logger.error(
146138
"Not updating index store for \(uri.forLogging) because no toolchain could be determined for the document"

0 commit comments

Comments
 (0)