Skip to content

Commit 597932c

Browse files
authored
Merge pull request #1303 from ahoppen/review-comments-1216
Address review comment to #1216
2 parents b30b972 + f10eac3 commit 597932c

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
@@ -118,14 +118,6 @@ public struct UpdateIndexStoreTaskDescription: IndexTaskDescription {
118118
logger.error("Not indexing \(uri.forLogging) because it has no compiler arguments")
119119
return
120120
}
121-
guard !buildSettings.isFallback else {
122-
// Only index with real build settings. Indexing with fallback arguments could result in worse results than not
123-
// indexing at all: If a file has been indexed with real build settings before, had a tiny modification made but
124-
// we don't have any real build settings when it should get re-indexed. Then it's better to have the stale index
125-
// from correct compiler arguments than no index at all.
126-
logger.error("Not updating index store for \(uri.forLogging) because it has fallback compiler arguments")
127-
return
128-
}
129121
guard let toolchain = await buildSystemManager.toolchain(for: uri, language) else {
130122
logger.error(
131123
"Not updating index store for \(uri.forLogging) because no toolchain could be determined for the document"

0 commit comments

Comments
 (0)