Module: wine Branch: master Commit: b3895f55191aa52cecfa565c3394701d8cc04bcb URL: https://gitlab.winehq.org/wine/wine/-/commit/b3895f55191aa52cecfa565c3394701...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Nov 13 11:30:29 2023 +0100
winebuild: Include x86-64 entry points in ARM64EC builds.
---
tools/winebuild/parser.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/tools/winebuild/parser.c b/tools/winebuild/parser.c index eaf90a85966..959170e39b8 100644 --- a/tools/winebuild/parser.c +++ b/tools/winebuild/parser.c @@ -539,6 +539,10 @@ static const char *parse_spec_flags( DLLSPEC *spec, ORDDEF *odp, const char *tok token = GetToken(0); } while (token && *token == '-');
+ /* x86-64 implies arm64ec */ + if (odp->flags & FLAG_CPU(CPU_x86_64)) odp->flags |= FLAG_CPU(CPU_ARM64EC); + if (cpu_mask & FLAG_CPU(CPU_x86_64)) cpu_mask |= FLAG_CPU(CPU_ARM64EC); + if (cpu_mask) odp->flags |= FLAG_CPU_MASK & ~cpu_mask; return token; }