XXH3 and Windows ARM builds #220
Labels
No labels
announcement
bug
build
CI
dependencies
documentation
duplicate
enhancement
experience feedback
feature request
github_actions
help wanted
install
invalid
Long-term
optimization
portability
question
target-specific
test issue
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-Cyan4973/xxHash#220
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have a problem with using
xxh3.hon Widows while building for an ARM architecture.The problem is that
__emuluis an x64/x86 only windows internal macro (MS Docs).Where it's defined only checks for an
_MSC_VERbefore using it. It would be very helpful if this could check architecture as well. Say either by not including it when ARM or only using it on x64/x86 processors. Thanks.Good point, thanks for notification @carstenskyboxlabs !
We should likely enforce that this code path is only valid for
x86/x64, since that's the target where__emuluinstruction is defined.Side note : it would be great if I could find a way to test Visual Studio compilation for ARM, and automate such a test into AppveyorCI. It would have caught this issue, and potential future ones.
Thanks for the response.
I'm not sure I've never used AppveyorCI, but I do know that VS/MSBuild does support UWP ARM builds.
When I run these steps using CMake and Visual Studio 2019:
cd cmake_unofficialmkdir buildcd buildcmake -G "Visual Studio 16 2019" -A ARM ..cmake --build .I get this error:
I don't have much experience with appveyor.yml, but following the existing pattern, I think this will let you generate and run for ARM:
Thanks @v-strob for the hint ! Worth trying !
This should probably work. It should fix ARM compilation, and it should improve x64 performance
Fixed in
devbranch