Skip to content

Commit 6d16075

Browse files
Pass target option for modulewrap command invocation
1 parent 2548c5e commit 6d16075

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/Build/ManifestBuilder.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,12 @@ extension LLBuildManifestBuilder {
339339
private func addModuleWrapCmd(_ target: SwiftTargetBuildDescription) {
340340
// Add commands to perform the module wrapping Swift modules when debugging statergy is `modulewrap`.
341341
guard buildParameters.debuggingStrategy == .modulewrap else { return }
342-
let moduleWrapArgs = [
342+
var moduleWrapArgs = [
343343
target.buildParameters.toolchain.swiftCompiler.pathString,
344344
"-modulewrap", target.moduleOutputPath.pathString,
345345
"-o", target.wrappedModuleOutputPath.pathString
346346
]
347+
moduleWrapArgs += buildParameters.targetTripleArgs(for: target.target)
347348
manifest.addShellCmd(
348349
name: target.wrappedModuleOutputPath.pathString,
349350
description: "Wrapping AST for \(target.target.name) for debugging",

0 commit comments

Comments
 (0)