Skip to content

Adding --verbose to swift build triggers a full rebuild instead of incremental #8690

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
kubamracek opened this issue May 18, 2025 · 1 comment
Open
1 task done
Labels

Comments

@kubamracek
Copy link

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

Run swift build. Run it again -- nothing is rebuilt. Run with --verbose and observe that you get a full rebuild. This is particularly annoying when working with macros / SwiftSyntax / Embedded Swift via Swift MMIO.

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

No response

Swift Package Manager version/commit hash

No response

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

No response

@kubamracek kubamracek added the bug label May 18, 2025
@dschaefer2
Copy link
Member

Yeah, unfortunately we're not differentiating which args need a full rebuild versus not. -v would be obvious though...

plemarquand added a commit to plemarquand/swift-package-manager that referenced this issue May 23, 2025
…cremental

Normalize any build parameters whose modifications do not need to cause
a recompilation. For instance, building with or without `--verbose`
should not cause a full rebuild.

Issue: swiftlang#8690
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants