[wasm] Address TODO in pal_runtimeinformation.c (#40133)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Thu, 30 Jul 2020 16:04:37 +0000 (18:04 +0200)
committerGitHub <noreply@github.com>
Thu, 30 Jul 2020 16:04:37 +0000 (18:04 +0200)
commita07b70c7e381cf5092bd339c2f4a906c389cb164
treed6ed2214a87009c9e95fa01c3553374ccd3425b2
parent2892bd077eb340ee9a687d94a30a759615283b91
[wasm] Address TODO in pal_runtimeinformation.c (#40133)

The WASM architecture wasn't added there since we already hardcode the architecture to wasm in the managed layer.
For consistency we should still define it in the PAL though and address the TODO comment.

Also added a test that verifies we indeed get the correct wasm architecture on the Browser platform.
src/libraries/Common/src/Interop/Unix/System.Native/Interop.ProcessorArchitecture.cs
src/libraries/Native/Unix/System.Native/pal_runtimeinformation.c
src/libraries/Native/Unix/System.Native/pal_runtimeinformation.h
src/libraries/System.Runtime.InteropServices.RuntimeInformation/src/System/Runtime/InteropServices/RuntimeInformation/RuntimeInformation.Unix.cs
src/libraries/System.Runtime.InteropServices.RuntimeInformation/tests/CheckArchitectureTests.cs