swiftlang / swift-package-manager

The Package Manager for the Swift Programming Language
Apache License 2.0
9.7k stars 1.33k forks source link

Add a "why build" debug option #7887

Open rauhul opened 3 weeks ago

rauhul commented 3 weeks ago

Description

It would be helpful if SwiftPM provided a flag to emit diagnostic notes on why a particular target is getting run instead of being skipped.

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

owenv commented 3 weeks ago

The llbuild callbacks from https://github.com/swiftlang/swift-llbuild/pull/831 could be used as the foundation of a higher-level build system feature here

dschaefer2 commented 3 weeks ago

I'll take a look at this. I'm really curious what happening in Rauhul's https://github.com/swiftlang/swift-package-manager/issues/7886