microsoft / react-native-windows

A framework for building native Windows apps with React.
https://microsoft.github.io/react-native-windows/
Other
16.24k stars 1.14k forks source link

Support for ARM64EC platform in Desktop DLL #10870

Open JunielKatarn opened 1 year ago

JunielKatarn commented 1 year ago

Summary

Allow react-native-win32.dll to be built for ARM64EC (ARM64 with x64 host app compatibility).

Motivation

Known apps of react-native-win32.dll are not currently being fully built for raw native ARM64. They currently built for x64 and slowly providing ARM64EC ports.

In order to provide immediate compatibility for either platform on ARM64 devices, the most convenient method is building the RNW DLL for ARM64EC.

See https://learn.microsoft.com/en-us/windows/arm/arm64ec

Basic Example

No response

Open Questions

No response

jonthysell commented 1 year ago

While it may be true that Desktop needs ARM64EC, not clear that UWP needs it.

JunielKatarn commented 1 year ago

While it may be true that Desktop needs ARM64EC, not clear that UWP needs it.

Agreed. The branch I'm prototyping this on does not affect Universal projects.

While not impossible, it's very unlikely that an MSRN consumer/customer would be unable to build their app from source as ARM64.