Skip to content

Commit 26996d5

Browse files
committed
Turn off creating the modulewrap object files.
Turns this off too when in prepare mode. Appears to be the default mode on Linux.
1 parent 348c08d commit 26996d5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ Package.resolved
1818
.docc-build
1919
.vscode
2020
Utilities/InstalledSwiftPMConfiguration/config.json
21+
.devcontainer

Sources/Build/BuildManifest/LLBuildManifestBuilder+Swift.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ extension LLBuildManifestBuilder {
537537

538538
private func addModuleWrapCmd(_ target: SwiftTargetBuildDescription) throws {
539539
// Add commands to perform the module wrapping Swift modules when debugging strategy is `modulewrap`.
540-
guard target.defaultBuildParameters.debuggingStrategy == .modulewrap else { return }
540+
guard target.defaultBuildParameters.debuggingStrategy == .modulewrap, !target.prepareForIndexing else { return }
541541
var moduleWrapArgs = [
542542
target.defaultBuildParameters.toolchain.swiftCompilerPath.pathString,
543543
"-modulewrap", target.moduleOutputPath.pathString,

0 commit comments

Comments
 (0)