On intel mac systems, when doing a dual build, we can't run the arm64 tests. Modify the existing code that disables cross compiled tests to work for any non native build. This would cause win32 tests to not be able to be ran, however since we've removed win32 that is no longer a concern. We can always special case any builds in the future that would work. Technically we could allow m1 macs to run intel tests, but probably not worth doing so.
Uses a pre initialized interface both to reduce allocations, and ensure we don't break incremental builds.
On intel mac systems, when doing a dual build, we can't run the arm64 tests. Modify the existing code that disables cross compiled tests to work for any non native build. This would cause win32 tests to not be able to be ran, however since we've removed win32 that is no longer a concern. We can always special case any builds in the future that would work. Technically we could allow m1 macs to run intel tests, but probably not worth doing so.
Uses a pre initialized interface both to reduce allocations, and ensure we don't break incremental builds.
Tested on mac to know it works.