runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Use System.Runtime.InteropServices.RuntimeInformation for checking architecture in Test

Open kyulee1 opened this issue 10 years ago • 3 comments

Currently we use environment variable to check target architecture. For instance: https://github.com/dotnet/coreclr/blob/master/tests/src/JIT/Directed/intrinsic/pow/pow1.cs#L25-L26 When this API is fully functional for all targets/platforms, we should use it instead for cross-platforms.

kyulee1 avatar Mar 01 '16 14:03 kyulee1

When this API is fully functional for all targets/platforms, we should use it instead for cross-platforms.

What "targets/platforms" is it missing?

stephentoub avatar Mar 01 '16 15:03 stephentoub

As commented here https://github.com/dotnet/coreclr/pull/3429, when I tried it for ARM64/Windows, I got null object.

kyulee1 avatar Mar 18 '16 20:03 kyulee1

stale; closing

BruceForstall avatar Dec 12 '19 22:12 BruceForstall