It seems that even without that linux value, SwiftPM on linux happily builds the package. It seems to ignore the platforms directive.

Is the platforms directive only intended to describe the dependency on Apple environments?