Way to exclude certain sources for specific architecture?

I’m designing a package for any mac (Intel & Apple Silicon). Some of my source files are written for the x86_64 architecture, how can I exclude them when building for arm64 architecture?

PackageDescription.Target.exclude is of type [String], so I’m not sure how to express the condition in the manifest.

Thanks :slightly_smiling_face:

Terms of Service

Privacy Policy

Cookie Policy