Skip to content

SPM does not control the swift driver invocation in all cases #6575

@compnerd

Description

@compnerd

Description

When building without the integrated swift driver and without swift module emission separated, SPM will rely on the LLBuild hardcoded swift driver invocation which does not take into account any of the flags when building code.

https://github.com/apple/swift-package-manager/blob/main/Sources/Build/LLBuildManifestBuilder.swift#L260-L276

The generated command invocation is embedded into LLBuild statically and does not evolve with SPM. As per @dmbryson this should not be relied upon.

Expected behavior

SPM would be able to control the formulation of the command line

Actual behavior

The command line is encoded into the LLBuild codebase.

Steps to reproduce

No response

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version ; uname -a)

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions