Passing compilation flags to local Swift packages

To bring a bit of historical context here:

  1. There was already an idea of introducing package flavors
  2. and a note from one of the (past?) SwiftPM maintainters: